> For the complete documentation index, see [llms.txt](https://docs.nansen.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nansen.ai/getting-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.nansen.ai/~gitbook/mcp).

# Getting Started

The basics every Nansen API integration needs: authentication, agent access, rate limits, credits, errors and paying per request.

New to the API? Start with the [Quickstart](https://docs.nansen.ai/first-api-call.md). It takes you from an API key to a first response in curl, Python or JavaScript.

The pages in this section cover what every integration needs after that first call:

| Page                                                                           | What it covers                                                                                            |
| ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
| [Authentication](https://docs.nansen.ai/getting-started/authentication.md)     | Getting an API key and sending it in the `apikey` header, or paying per request instead                   |
| [AI Agent Access](https://docs.nansen.ai/getting-started/agents.md)            | Connecting an AI agent to the API, and what agents can trade                                              |
| [Rate Limits](https://docs.nansen.ai/getting-started/rate-limits.md)           | Requests allowed per second and per minute on each plan, Inference API limits, and how to handle HTTP 429 |
| [Credits & Pricing Guide](https://docs.nansen.ai/getting-started/credits.md)   | What each plan includes and how many credits each endpoint costs per call                                 |
| [Error Handling](https://docs.nansen.ai/getting-started/error-handling.md)     | The HTTP status codes the API returns and how your client should handle each                              |
| [Agentic Payments](https://docs.nansen.ai/getting-started/agentic-payments.md) | Calling the API without an account or key by paying per request in USDC over x402 or MPP                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.nansen.ai/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
