> ## 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 unified marketplace for scraping and data APIs. Reach hundreds of
APIs through **one interface and one key**, pay per request in **real US dollars**,
and let AnyAPI normalize the response schema and fail over automatically when a
provider errors.

No per-provider signups, no monthly plans, no juggling credentials. Top up a
single wallet and start calling.

## Why AnyAPI

<CardGroup cols={2}>
  <Card title="One key, every API" icon="key">
    A single AnyAPI key unlocks the whole catalog. Add an API to your app without
    creating yet another account.
  </Card>

  <Card title="Pay per request, in USD" icon="dollar-sign">
    No subscriptions. You're billed the winning provider's price in real dollars,
    and only when a call succeeds.
  </Card>

  <Card title="Normalized responses" icon="shapes">
    Every API returns the same shape across providers, so your code doesn't change
    when the upstream does.
  </Card>

  <Card title="Automatic failover" icon="shield-check">
    If a provider fails, AnyAPI retries the next one under the same request.
    Failed calls are never charged.
  </Card>
</CardGroup>

## How it works

Every API is a single `POST` to `/v1/run/{sku}`: send the normalized input, get a
normalized result.

<Steps>
  <Step title="Send a request">
    Call `/v1/run/{sku}` with the SKU's normalized input and your API key.
  </Step>

  <Step title="AnyAPI routes it">
    We validate your input, then run it against the best provider — failing over
    to the next on error, all under one price reservation.
  </Step>

  <Step title="Get a normalized result">
    You receive `{ output, provider, costUsd, items }`. You're charged `costUsd`
    only on success.
  </Step>
</Steps>

## Pricing

Pricing is **pass-through** in USD, surfaced as `costUsd` on every response. There
are no subscriptions and no charge for failed calls — if every provider errors,
you pay nothing.

Most APIs are **priced per result**: a per-item rate for each result returned (a
few also add a small base fee), so a call that returns 5 results costs less than
one that returns 50. Set `limit` in
your input to cap how many results you get (and what you pay); the response
reports `items` — the count you were charged for. Catalog and `get_api` results
carry nested `pricing`: `pricing.from` is the cheapest complete flat or linear
offer, while `pricing.failoverMaxUsd` is the greatest fallback ceiling. Linear
offers name their billable `unit` and include `baseUsd`, `perUnitUsd`, and
`maxUsd`, so you can budget before making a call. Simple lookups are flat per
request.

## For AI agents

If you are an AI agent (or are setting one up), AnyAPI's whole catalog is available
through one [MCP server](/docs/mcp-server) — no per-API integration needed:

* **Endpoint:** `https://api.getanyapi.com/mcp` (Streamable HTTP)
* **Auth:** `Authorization: Bearer <ANYAPI_KEY>` — required for `run_api` and
  `get_balance`; `list_apis`, `search_apis`, and `get_api` (discovery) work without a key.
* **Tools:** `search_apis` → `get_api` → `run_api`. Find an API by keyword (or browse
  with `list_apis`), read its input JSON Schema, then execute it. Successful runs bill the
  wallet in USD (`costUsd`); failed runs are never charged. `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" }
    }
  }
}
```

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

## Get started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/docs/quickstart">
    Make your first call in under five minutes.
  </Card>

  <Card title="Connect over MCP" icon="robot" href="/docs/mcp-server">
    Give your AI agents the whole catalog through one MCP endpoint.
  </Card>

  <Card title="n8n community node" icon="diagram-project" href="/docs/n8n">
    Run any AnyAPI endpoint inside an n8n workflow on one credential.
  </Card>

  <Card title="API Reference" icon="code" href="/docs/api-reference/tiktok/tiktok-profile">
    Browse every API with typed request and response schemas.
  </Card>

  <Card title="Dashboard" icon="gauge" href="https://getanyapi.com/dashboard">
    Create keys, top up your wallet, and track usage.
  </Card>
</CardGroup>
