> 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/readme.md).

# Introduction to the Nansen API

Query Nansen onchain data, wallet labels and analytics over the REST API, the CLI or MCP, and find where to start.

The Nansen API gives your code and your AI agents labeled onchain data: who is behind a wallet, what Smart Money is buying, token flows and holders, and wallet PnL across many chains.

New here? The [Quickstart](https://docs.nansen.ai/first-api-call.md) takes you from an API key to a first response.

### Choose how to connect <a href="#choose-how-to-connect" id="choose-how-to-connect"></a>

| What you want                                                       | Use                                                                             |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Call Nansen data from your own code or backend                      | REST API. Start with the [Quickstart](https://docs.nansen.ai/first-api-call.md) |
| Ask questions about onchain data in ChatGPT, Claude or Grok         | [Connectors](https://docs.nansen.ai/mcp/connectors.md)                          |
| Give a coding agent, IDE or custom MCP client the full tool catalog | [Manually connecting to Nansen MCP](https://docs.nansen.ai/mcp/connecting.md)   |
| Work from a terminal or scripts, set alerts, or trade               | [Nansen CLI](https://docs.nansen.ai/cli.md)                                     |
| Give an AI agent one page to read before its first call             | [Agent Cheat Sheet](https://docs.nansen.ai/skill.md)                            |

Only the API and the CLI can trade. Connectors and MCP are read-only.

#### Key Capabilities <a href="#key-capabilities" id="key-capabilities"></a>

* **Proprietary Data Labeling:** Nansen applies unique, human-readable labels to hundreds of millions of blockchain addresses. These labels identify specific entities such as exchanges, funds, market makers, notable individual investors that allows users to understand who is behind onchain activities, providing crucial context that raw, pseudonymous data lacks. Accessing this labelled data via the API is a core component of Nansen's offering.
* **Unique Datasets and Insights:** The API provides access to data points and analytics not readily available elsewhere, such as Smart Money analytics.
* **Comprehensive Multi-Chain Coverage:** The API consolidates data from multiple blockchain networks, allowing users to track assets and activities across different ecosystems through a single integration point.

These features collectively enable the API to deliver not just data, but contextualized intelligence, transforming raw onchain events into a clearer picture of market dynamics and participant behavior.

***

### Quick Links

| Need               | Page                                                                    |
| ------------------ | ----------------------------------------------------------------------- |
| API authentication | [Authentication](https://docs.nansen.ai/getting-started/authentication) |
| Rate limits        | [Rate Limits](https://docs.nansen.ai/getting-started/rate-limits)       |
| Error handling     | [Error Handling](https://docs.nansen.ai/getting-started/error-handling) |
| Supported chains   | [Supported Chains](https://docs.nansen.ai/reference/chains)             |
| Filter types       | [Filter Types](https://docs.nansen.ai/reference/filters)                |
| AI Agent Access    | [AI Agent Access](https://docs.nansen.ai/getting-started/agents)        |
| Agent cheat sheet  | [Agent Cheat Sheet](https://docs.nansen.ai/skill.md)                    |
| OpenAPI spec       | [api.nansen.ai/openapi.json](https://api.nansen.ai/openapi.json)        |

#### API Endpoints

| Category           | Page                                                              |
| ------------------ | ----------------------------------------------------------------- |
| Overview           | [Endpoints Overview](https://docs.nansen.ai/api/overview)         |
| Smart Money        | [Smart Money](https://docs.nansen.ai/api/smart-money)             |
| Profiler           | [Profiler](https://docs.nansen.ai/api/profiler)                   |
| Token Screener     | [Token God Mode](https://docs.nansen.ai/api/token-god-mode)       |
| Portfolio          | [Portfolio](https://docs.nansen.ai/api/portfolio)                 |
| Points             | [Points](https://docs.nansen.ai/api/points)                       |
| Hyperliquid        | [Hyperliquid](https://docs.nansen.ai/api/hyperliquid)             |
| Agent              | [Agent](https://docs.nansen.ai/api/agent)                         |
| Prediction Markets | [Prediction Market](https://docs.nansen.ai/api/prediction-market) |

#### Connectors & MCP

| Category                           | Page                                                                       |
| ---------------------------------- | -------------------------------------------------------------------------- |
| Overview                           | [Nansen MCP Overview](https://docs.nansen.ai/mcp/overview)                 |
| Connectors (ChatGPT, Claude, Grok) | [Connectors](https://docs.nansen.ai/mcp/connectors)                        |
| Manually Connecting to MCP         | [Manually connecting to Nansen MCP](https://docs.nansen.ai/mcp/connecting) |
| Full Tool Catalog                  | [Full tool catalog](https://docs.nansen.ai/mcp/connecting/tools)           |

#### Guides

| Tutorial                   | Page                                                                                 |
| -------------------------- | ------------------------------------------------------------------------------------ |
| Use cases and workflows    | [Use cases and workflows](https://docs.nansen.ai/guides/templates)                   |
| Data Redistribution Guides | [Data Redistribution Guidelines](https://docs.nansen.ai/guides/redistribution-guide) |


---

# 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/readme.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.
