> ## Documentation Index
> Fetch the complete documentation index at: https://getanyapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Any API, one wallet, USD, no subscriptions.

AnyAPI is a marketplace for scraping and data APIs. You call hundreds of APIs with
**one key**, pay per request in **US dollars** from one wallet, and get a normalized
response. When a source errors, AnyAPI fails over to the next one automatically.

## Build from the API contract

To pick a SKU by eye, browse [the catalog](https://getanyapi.com/catalog). Each
platform page lists its endpoints, normalized schemas, and USD prices.

Before you write a request, fetch the selected SKU's contract:

```text theme={"dark"}
GET https://api.getanyapi.com/v1/apis/{sku}
```

With MCP, call `get_api` instead. Use only the fields declared in `inputSchema`.
Input fields are SKU-specific, so do not add names such as `limit`, `cursor`, `page`, or
`sort` unless that schema declares them. If the API returns `invalid_input`, compare the
request with the schema. Do not retry with guessed field names.

If you use a coding agent, give it the maintained AnyAPI instructions:

```text theme={"dark"}
Set up https://getanyapi.com/SKILL.md
```

## How it works

Every API is a single `POST` to `/v1/run/{sku}`.

**1. Send a request**

Call `/v1/run/{sku}` with the SKU's normalized input and your API key.

**2. AnyAPI routes it**

AnyAPI validates your input and runs it against the best source. On error it fails
over to the next source, all under one price reservation.

**3. Get a normalized result**

You receive `{ output, provider, costUsd, items }`. `costUsd` is what this call
cost you.

## Pricing

Prices are in USD, and every response reports its charge as `costUsd`. There are no
subscriptions.

* Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.
* A miss that the source did not bill is free.
* When AnyAPI asks more than one source for one request, each source that charged is
  billed at its price for that request. The total is capped at the API's published maximum.

Most APIs are **priced per result**: a per-item rate for each result returned, plus a
small base fee on a few. A call that returns 5 results costs less than one that returns 50.
Some input schemas declare a result cap such as `limit`; use it only when the selected
SKU's `inputSchema` declares it. The response reports `items`, the number of results
returned. Simple lookups are flat per request.

On a few APIs that mix per-result and per-request sources, a source can serve your request at
the price another source quoted for it. That price is fixed when you call: returning fewer
results, or none on a billed miss, does not lower it. A source serving at its own per-result
price still charges only for the results it returns.

Catalog and `get_api` results carry nested `pricing`. `pricing.from` is the cheapest
complete flat or linear offer, and `pricing.failoverMaxUsd` is the greatest fallback
ceiling. Linear offers name their billable `unit` and include `baseUsd`, `perUnitUsd`, and
`maxUsd`, so you can budget before a call.

### Every static price in two denominations

Every static discovery offer publishes its maximum twice:

| Field | What it means |
| - | - |
| `pricing.from.maxUsd` | The most one request can be billed |
| `pricing.from.maxPer1kUsd` | That same maximum per 1,000 requests |
| `pricing.failoverMaxUsd` | The greatest fallback ceiling for one request |
| `pricing.failoverMaxPer1kUsd` | That same fallback ceiling per 1,000 requests |

Lane-level `pricing` objects carry `maxPer1kUsd` too.

**AnyAPI quotes customers per 1,000 requests**, because most of the catalog costs a
fraction of a cent per call. When you show a catalog price to a person, read
`maxPer1kUsd` and label it `/1k req`: `$96.60/1k req`, not `$0.0966 per request`.

Read the published per-1k field instead of multiplying `maxUsd` yourself. Floating-point
multiplication drifts: in most languages `0.0966 * 1000` is `96.60000000000001`, and live
catalog prices hit that case.

`baseUsd` and `perUnitUsd` have **no** per-1k twin, because they are charged per billable
item inside one call.

Amounts for one specific call stay per request and are never scaled to 1,000: a price
quote's `maxCostUsd` and `minCostUsd`, the `costUsd` on a completed run, and your wallet
balance. Report those exactly as returned.

## For AI agents

The whole catalog is available through one [MCP server](https://getanyapi.com/docs/mcp-server.md):

* **Endpoint:** `https://api.getanyapi.com/mcp` (Streamable HTTP)
* **Auth:** `Authorization: Bearer <ANYAPI_KEY>`, required for `run_api` and
  `get_balance`. Discovery (`list_apis`, `search_apis`, `get_api`) works without a key.
* **Tools:** `search_apis` (or `list_apis` to browse), then `get_api` to read the input
  JSON Schema, then `run_api` to execute. Runs bill the wallet in USD (`costUsd`) under the
  [pricing rules](#pricing). `get_balance` returns the wallet's remaining USD.

```json theme={"dark"}
{
  "mcpServers": {
    "anyapi": {
      "url": "https://api.getanyapi.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_ANYAPI_KEY" }
    }
  }
}
```

The [MCP server page](https://getanyapi.com/docs/mcp-server.md) covers per-client setup (Claude Code, Claude Desktop,
Cursor, Codex) and the full tool reference. The official [agent skill](https://getanyapi.com/docs/agent-skills.md)
(`npx skills add getanyapi-com/skills`) teaches your agent this workflow, including
pricing and error semantics. Agents can also use REST: `GET /v1/apis?category=...` to
browse, `GET /catalog/search?q=...` to search, and `POST /v1/run/{sku}` to execute. See
the [API Reference](https://getanyapi.com/docs/api-reference/tiktok/tiktok-profile.md) and the public
[`/openapi.json`](https://api.getanyapi.com/openapi.json).

## Get started

> [card] [Quickstart](https://getanyapi.com/docs/quickstart.md)
>
> Make your first call.

> [card] [Connect over MCP](https://getanyapi.com/docs/mcp-server.md)
>
> Connect your AI agent to the catalog.

> [card] [n8n community node](https://getanyapi.com/docs/n8n.md)
>
> Run any AnyAPI endpoint inside an n8n workflow.

> [card] [API Reference](https://getanyapi.com/docs/api-reference/tiktok/tiktok-profile.md)
>
> Typed request and response schemas for every API.

> [card] [Dashboard](https://getanyapi.com/dashboard)
>
> Create keys, top up your wallet, and track usage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.