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

# Choose an interface

> Match your task to REST API, WebSocket, Webhook Alerts, Bulk Exports, an SDK, the CLI, the MCP server, or the Agent skill.

## What to use for each task

| Task | Use |
| - | - |
| Request snapshots or history windows from code | [REST API](https://docs.0xarchive.io/rest-api.md) |
| Stream live books, trades, funding or open interest as they change | [WebSocket live subscriptions](https://docs.0xarchive.io/websocket/real-time.md) |
| Replay a stored window in order, for a backtest or a book rebuild | [WebSocket replay](https://docs.0xarchive.io/websocket/replay.md). It ends with `replay_completed` and does not follow new events |
| Receive an event without polling | [Webhook Alerts](https://docs.0xarchive.io/webhooks.md) |
| See signed Hyperliquid transactions before they land in a block | The [`mempool` channel](https://docs.0xarchive.io/websocket/mempool), from our node in Tokyo, Pro and above |
| Receive pending transactions on a Hyperliquid node you run | [Node peering](https://docs.0xarchive.io/peering.md) to our allowlisted Tokyo peer, mempool included. Your node writes what it receives |
| Accept x402 payments on a paid resource you run | The [x402 facilitator](https://docs.0xarchive.io/facilitator.md) verifies and settles exact EVM payments. Market-data requests still use your API key |
| Buy Parquet files for a market and date range | [Bulk Exports](https://docs.0xarchive.io/data-catalog.md), in the Data Catalog |
| Call the API from Python, TypeScript, or Rust | [SDKs](https://docs.0xarchive.io/sdks.md) |
| Run requests from a shell, cron job, notebook, or CI | [CLI](https://docs.0xarchive.io/cli.md), the `oxa` command |
| Ask Claude, ChatGPT, Cursor, or another MCP-capable client for market data | [MCP server](https://docs.0xarchive.io/mcp-server.md), hosted at `https://mcp.0xarchive.io/mcp` |
| Give a coding agent a reusable 0xArchive workflow | [Agent skill](https://docs.0xarchive.io/skill.md), a `SKILL.md` package |
| Generate a client, or check an exact path and schema | [OpenAPI](https://docs.0xarchive.io/openapi.md) |
| Give a chat assistant that cannot run code the right page | Any docs page as Markdown (add `.md` to its URL), or [`llms.txt`](https://docs.0xarchive.io/llms.txt) |

**Start where your work already happens**

Use an SDK inside application code or OAuth tools in your assistant. Keep streaming and file delivery as their own choices.

[Build with an SDK](https://docs.0xarchive.io/sdks.md)
[Connect your assistant](https://docs.0xarchive.io/mcp-server.md)

## How each one signs in

* **REST API, SDKs, Agent skill:** an API key in `OXARCHIVE_API_KEY`. REST sends it as `X-API-Key`.
* **WebSocket:** the same key, sent as `Authorization: Bearer` when the socket opens.
* **CLI:** the same key, in `OXA_API_KEY`.
* **MCP server:** OAuth through your client's built-in flow, with no 0xArchive API key. The authorization server is `https://auth.0xarchive.io`, and market data needs the `mcp:market.read` scope.
* **Webhook Alerts:** the dashboard, the REST routes with an API key, or the MCP server over OAuth.
* **Bulk Exports:** your dashboard account, in the browser.

Keep API keys in the environment or a secret store, never in browser code or prompts.

## When a call fails

* **`401` on an API-key interface:** check that the key is set in the variable that interface reads, and that it is active.
* **OAuth failure on the MCP server:** repeat the client's OAuth flow. Do not add an API key to the MCP URL.
* **`403`:** check the window against your plan's history, then the exact endpoint and key.
* **`404`:** check the namespace and symbol in [Venue coverage](https://docs.0xarchive.io/venue-coverage.md).
* **`429`:** read the `error_code`. Retry `rate_limited` within a bounded budget: after its `retry_after` seconds, or once an in-flight request finishes when it carries `max_concurrent`. Stop on `insufficient_credits`. [When you reach a limit](https://docs.0xarchive.io/rate-limits.md#when-you-reach-a-limit) has the full rule.

Moving a working request from one interface to another? Keep the same symbol, window, and depth, and compare the new result with the old one.

## Next step

**Try the interface you chose**

Copy a working request and take the first result into your shell, application, or agent workflow.

[Examples](https://docs.0xarchive.io/examples.md)


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