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
      • Labels
    • Token God Mode
      • Token Overview
      • Transactions
      • Holders
      • Exchanges
      • PnL Leaderboard
  • Other Endpoints
  • Guides
    • 💻Endpoint Showcase
    • 🙋Frequently Asked Questions
  • 🔗Useful Links
Powered by GitBook
On this page
  • Obtaining API Keys
  • Including Your API Key in Requests
  • Example API Request

Was this helpful?

Export as PDF
  1. Getting Started

Authentication

The Nansen API uses API key-based authentication. All requests must include an API key provided in the request header for successful authentication.

Obtaining API Keys

During the closed beta phase, API Keys can be obtained by contacting Nansen.

Including Your API Key in Requests

Add the following header to all API requests:

Header Name

Header Value

apikey

YOUR_API_KEY

Replace YOUR_API_KEY with your actual API key.

Example API Request

cURL Example:

curl -X POST 'https://api.nansen.ai/api/beta/smart-money/inflows' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
        "parameters": {
          "smFilter": ["Smart Trader"],
          "chains": ["ethereum"],
          "includeStablecoin": true
        }
      }'
PreviousAPI Structure & Base URLNextUnderstanding Responses and Handling Errors

Last updated 3 days ago

Was this helpful?

🔓