# Introduction

> Fous makes websites usable by agents and software. Run a method you pick with your own inputs, or send a query and get the result.

Source: https://docs.fous.com/
Index: https://docs.fous.com/llms.txt

A **method** is one thing a website can do, as an API call: it reads data there (`read`) or does something there (`write`). Each has a slug, a typed input and output, and a versioned [contract](https://docs.fous.com/guides/methods.md). Your organization stays on the version it first ran until it switches.

`bestbuy.com/search_products` (read): Searches Best Buy US products with an optional price range, sort order and page. Prices and availability come from public listings and may vary by location.

- Input: `query` (required), `max_price`, `min_price`, `sort`, `page`, `max_results`
- Output: `products[]` with `product_name`, `brand`, `price`, `regular_price`, `savings`, `star_rating`, `number_of_reviews`, `product_link` and 6 more fields

The request that runs it:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "bestbuy.com/search_products",
    "input": {
      "query": "noise cancelling headphones",
      "max_price": 300,
      "max_results": 3
    }
  }'
```

The response, cut to its first product and a few fields:

```json
{
  "id": "run_01m69bharefzksdegfx9r93fzd",
  "status": "completed",
  "method": { "slug": "bestbuy.com/search_products", "version": 1 },
  "data": {
    "products": [
      {
        "product_name": "Bose - QuietComfort Wireless Noise Cancelling Over-the-Ear Bluetooth Headphones - Sandstone",
        "price": 169,
        "regular_price": 359,
        "star_rating": 4.8
      }
    ]
  },
  "truncated": false,
  "cost": { "credits": 1 },
  "duration_ms": 451
}
```

A run returns an `id`, the method and version that ran, `data` in the shape of the output schema, and its cost: 1 credit.

## Manual and Auto

In **Manual** you pick the method: search, read the results, and run the one that fits with your own input. You get exactly that method's output.

Search, which is free:

```bash
curl --get https://api.fous.com/v1/search \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  --data-urlencode 'query=Noise-cancelling headphones under $300'
```

It returned `bestbuy.com/search_products`, `bhphotovideo.com/search_products`, `newegg.com/search_products`. Running the first with `query` "noise cancelling headphones", `max_price` 300, `max_results` 3 (the request above) returned 3 products in 451 ms for 1 credit:

- Bose - QuietComfort Wireless Noise Cancelling Over-the-Ear Bluetooth Headphones - Sandstone: $169, regularly $359
- JLab - JBuds Lux ANC Wireless Bluetooth Over-Ear Headphones with Active Noise Cancelling, Spatial Audio & 70+ Hour Battery - Graphite: $39.99, regularly $84.99
- Sony - WHCH720N Wireless Noise Cancelling Headphones - Black: $88, regularly $178

In **Auto** you describe what you want in plain words. Fous finds the methods, fills their inputs, runs up to three of them and returns one result, for 5 credits.

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "Driving directions from SFO to Stanford University" }'
```

The response, with each route cut to its summary, distance and time:

```json
{
  "id": "run_01m69bhbjcet2v1pbwa9qxn65v",
  "status": "completed",
  "data": {
    "start_address": "San Francisco International Airport, San Francisco, CA 94128",
    "end_address": "Stanford University, 450 Jane Stanford Way, Stanford, CA 94305",
    "routes": [
      { "summary": "US-101 S", "distance_miles": 21.4, "travel_time": "27 min" },
      {
        "summary": "US-101 S and Willow Rd",
        "distance_miles": 20.7,
        "travel_time": "27 min"
      },
      {
        "summary": "US-101 S, Willow Rd and Hawthorne Ave",
        "distance_miles": 20.7,
        "travel_time": "27 min"
      }
    ]
  },
  "truncated": false,
  "steps": [
    {
      "method": {
        "id": "mth_01m5m664a1epq988ybn6y9axv6",
        "slug": "google.com/get_directions",
        "version": 1
      },
      "input": {
        "origin": "San Francisco International Airport (SFO)",
        "destination": "Stanford University",
        "travel_mode": "driving",
        "avoid": "none"
      },
      "status": "completed"
    }
  ],
  "source": "methods",
  "cost": { "credits": 5 },
  "duration_ms": 4355
}
```

## Other terms

| Term | What it is |
| --- | --- |
| [Run](https://docs.fous.com/guides/runs.md) | One call of a method, or one query. Slow ones keep running; read them by `id`. |
| [Build](https://docs.fous.com/guides/builds.md) | Makes or changes a method from a request in plain words. |
| [Connection](https://docs.fous.com/guides/connections.md) | Your login on a site, or its API key, that its methods run with. |
| [Credits](https://docs.fous.com/guides/billing.md) | Pay for runs and queries. Search and contracts are free. |

## Where to start

[Connect an AI agent](https://docs.fous.com/guides/mcp.md) such as Claude Code, Codex or Cursor, follow the [Quickstart](https://docs.fous.com/quickstart.md) for the HTTP API, or try both modes without code in [Studio](https://app.fous.com).
