Nansen API
  • ✨Introduction
  • πŸ“ŒEndpoints Overview
  • πŸ”΄Rate Limits and Quotas
  • Getting Started
    • β˜‘οΈPrerequisites
    • 🌐API Structure & Base URL
    • πŸ”“Authentication
    • 🟒Understanding Responses and Handling Errors
    • ⛓️Chain Coverage
  • API
    • Smart Money
    • Profiler
      • Balances
      • Transactions
      • Counterparties
      • Trade Performance
    • Token God Mode
      • Token Overview
      • Holders
      • Flows
      • Transactions
      • PnL Leaderboard
  • Guides
    • πŸ’»Endpoint Showcase
    • πŸ™‹Frequently Asked Questions
  • πŸ”—Useful Links
Powered by GitBook
On this page
  • Prerequisites for Using the Nansen API
  • Sample Request: Smart Money Inflows Endpoint

Was this helpful?

Export as PDF
  1. Getting Started

Prerequisites

Prerequisites for Using the Nansen API

Before integrating with the Nansen API, ensure the following requirements are met:

  • Nansen API Subscription: You need an active subscription to Nansen’s Professional plan that includes API access.

  • API Key: Log in to your Nansen account to obtain your personal API key from the dashboard.

  • HTTPS Client: Be familiar with making HTTPS requests using tools like curl, or libraries like requests in Python, or axios/fetch in Node.js.

  • Development Environment: Set up a suitable environment for writing and executing code to interact with APIs.


Sample Request: Smart Money Inflows Endpoint

HTTPS Request

POST /api/beta/smart-money/inflows HTTP/1.1
Host: api.nansen.ai
apiKey: YOUR_API_KEY
Content-Type: application/json
Accept: */*

{
  "parameters": {
    "smFilter": [
      "180D Smart Trader",
      "Fund",
      "Smart Trader"
    ],
    "chains": [
      "ethereum",
      "solana"
    ],
    "includeStablecoin": true,
    "includeNativeTokens": true,
    "excludeSmFilter": []
  }
}

cURL Example

curl -L \
  --request POST \
  --url 'https://api.nansen.ai/api/beta/smart-money/inflows' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "parameters": {
      "smFilter": [
        "180D Smart Trader",
        "Fund",
        "Smart Trader"
      ],
      "chains": [
        "ethereum",
        "solana"
      ],
      "includeStablecoin": true,
      "includeNativeTokens": true,
      "excludeSmFilter": []
    }
  }'

Additional Notes

  • Always refer to the official API documentation for parameter options and rate limit details.

  • Ensure your API key remains confidential and is not shared in public repositories.

PreviousRate Limits and QuotasNextAPI Structure & Base URL

Last updated 23 days ago

Was this helpful?

β˜‘οΈ