Nansen Query Documentation
  • Introduction
  • Overview
    • 📍Getting Started
    • 📍Benefits of Curation
  • Data
    • 🗃️Data Sources
    • 🗃️Data Catalog
      • 🗃️Raw Events
      • 🗃️Aggregates
        • Entity Stats
        • Address Stats
        • Token Usage Stats
        • Transaction Stats
        • Address & Their Relationships
      • 🗃️Dex Trades
        • 🗃️Dex Trader P&L
        • 🗃️Dex Trader Use Cases
        • 🗃️Advanced Topics
        • 🗃️Trader P&L FAQ
      • 🗃️Decoded Contracts
      • 🗃️NFTs
      • 🗃️Governance
      • 🗃️Solana
        • 🗃️Solana Aggregates
    • 🗃️Repeated / Nested Fields
    • 🗃️Adding New Projects
    • 🗃️Data Marketplace
  • Web App
    • 🖥️Overview
    • 🖥️Getting Started: Web App
    • 🖥️My Queries
    • 🖥️Query Editor
    • 🖥️Visualizations
    • 🖥️Dashboards
    • 🖥️Dashboard Editor
    • 🖥️Refresh Schedules
    • ⚙️Custom Query APIs
      • ⚙️API Keys
      • ⚙️Execute A Query
      • ⚙️Get Query Results
  • Database Access
    • 📂Database Overview
    • 📂Getting Started: Database
    • 📂Sample Queries
      • 📂Wallet Examples
      • 📂Token Examples
      • 📂Trader P&L
      • 📂Project Examples
      • 📂Solana Queries
      • 📂Blockchain Examples
    • 📂Sample Python Code
      • 📂Wallet Examples
      • 📂Token Examples
    • 📂Cost Optimization
    • 📂Database FAQs
  • Other
    • ⁉️General FAQs
    • 🏷️Wallet Labels
Powered by GitBook
On this page

Last updated 10 months ago

The Custom Query API is a powerful and flexible tool that allows you to execute and read results from the queries you've created in Nansen Query. Transform any query into a versatile API endpoint and take advantage of Nansen's exceptional data and query capabilities in diverse applications.

Custom API Workflow

The Custom API works as follows: 1) Save a query in Nansen Query 2) A quest is made to run the saved query 3) The query will run in the background 4) Once the query has finished, a call is made to retrieve the final results

The process is asynchronous to accommodate larger queries and more complex use cases.

To get started, visit our three step process below:

API Keys

Learn how to retrieve your API keys in this section:

Execute Query

Follow this guide if you want to start a fresh query execution. Note that you'll need to retrieve the query result via "Get Query Result" step below.

Get Query Result

Get a cached result for a query:

  1. Web App

⚙️Custom Query APIs

PreviousRefresh SchedulesNextAPI Keys
API Keys
Execute A Query
Get Query Results
⚙️
⚙️
⚙️