Agent
Ask the Nansen AI agent a research question and receive a streamed answer backed by on-chain data. The fast variant uses a lighter model optimised for low-latency responses.
What it helps to answer:
Which tokens are smart money accumulating right now?
What is the current narrative driving activity in DeFi?
Which wallets are connected to a specific address?
What is the on-chain story behind a recent price move?
SSE event types:
The response is a text/event-stream with the following JSON event types:
delta
{"type": "delta", "text": "…"}
Incremental text chunk of the agent's answer.
tool_call
{"type": "tool_call", "name": "…"}
Emitted once per unique Nansen tool the agent invokes.
finish
{"type": "finish", "conversation_id": "…", "tool_calls": [...]}
Final event. Contains the conversation_id for follow-up requests and the full list of tools used.
error
{"type": "error", "error": "…", "status_code": …}
Emitted if the upstream agent service is unavailable or times out.
The stream terminates with a data: [DONE] sentinel.
Fast vs Expert: Use /agent/fast for quick factual lookups and simple questions. Use /agent/expert when you need deeper multi-step analysis or synthesis across multiple data sources.
API key for authentication
Request model for Agent Research endpoints (fast and expert).
Research query or question for the Nansen AI agent.
Which tokens are whales accumulating on Ethereum this week?Optional conversation ID for multi-turn interactions. Returned in the finish event of a previous response. Omit to start a new conversation.
conv_abc123Server-Sent Events stream. Each event is a data: {json} line. See endpoint description for event schema.
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Unprocessable Content
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
POST /api/v1/agent/fast HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"text": "Which tokens are whales accumulating on Ethereum this week?",
"conversation_id": "conv_abc123"
}No content
Ask the Nansen AI agent a research question and receive a streamed answer backed by on-chain data. The expert variant uses a more capable model for deeper, multi-step analysis.
What it helps to answer:
Which tokens are smart money accumulating right now?
What is the current narrative driving activity in DeFi?
Which wallets are connected to a specific address?
What is the on-chain story behind a recent price move?
SSE event types:
The response is a text/event-stream with the following JSON event types:
delta
{"type": "delta", "text": "…"}
Incremental text chunk of the agent's answer.
tool_call
{"type": "tool_call", "name": "…"}
Emitted once per unique Nansen tool the agent invokes.
finish
{"type": "finish", "conversation_id": "…", "tool_calls": [...]}
Final event. Contains the conversation_id for follow-up requests and the full list of tools used.
error
{"type": "error", "error": "…", "status_code": …}
Emitted if the upstream agent service is unavailable or times out.
The stream terminates with a data: [DONE] sentinel.
Fast vs Expert: Use /agent/fast for quick factual lookups and simple questions. Use /agent/expert when you need deeper multi-step analysis or synthesis across multiple data sources.
API key for authentication
Request model for Agent Research endpoints (fast and expert).
Research query or question for the Nansen AI agent.
Which tokens are whales accumulating on Ethereum this week?Optional conversation ID for multi-turn interactions. Returned in the finish event of a previous response. Omit to start a new conversation.
conv_abc123Server-Sent Events stream. Each event is a data: {json} line. See endpoint description for event schema.
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Unprocessable Content
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
POST /api/v1/agent/expert HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"text": "Which tokens are whales accumulating on Ethereum this week?",
"conversation_id": "conv_abc123"
}No content
Last updated
Was this helpful?