← Back to marketplace

Nansen AI - Trade Everything Onchain with AI

external

Trade everything onchain with AI, powered by 500M+ labeled addresses. Track Smart Money, analyze any token, and execute instantly - all in one place.

by Nansen31 endpoints100% uptime161ms avg

Price

from $0.0100

up to $0.0500 per request

Network

base

Category

ai

On-chain txns

195

Uptime

100%

Avg latency

161ms

Checks

91

Status

Healthy

Base URL

https://api.nansen.ai

Endpoints (31)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/api/v1/profiler/address/counterparties
base$0.0500

Get Address Counterparties Data

POST/api/v1/profiler/address/current-balance
base$0.0100

Get Address Current Balance Data

POST/api/v1/profiler/address/historical-balances
base$0.0100

Get Address Historical Balances Data

POST/api/v1/profiler/address/pnl
base$0.0100

Retrieve address PnL data

POST/api/v1/profiler/address/pnl-summary
base$0.0100

Get Address PnL Summary Data

POST/api/v1/profiler/address/related-wallets
base$0.0100

Get Address Related Wallets Data

POST/api/v1/profiler/address/transactions
base$0.0100

Get Address Transactions Data

POST/api/v1/profiler/dex-trades
base$0.0100

Get Wallet DEX Trades

POST/api/v1/profiler/perp-positions
base$0.0100

Get Perpetual Positions Data

POST/api/v1/profiler/perp-trades
base$0.0100

Get Perpetual Trade Data

POST/api/v1/smart-money/dcas
base$0.0500

Get Smart Money DCAs Data

POST/api/v1/smart-money/dex-trades
base$0.0500

Get Smart Money DEX Trades Data

POST/api/v1/smart-money/historical-holdings
base$0.0100

Get Smart Money Historical Holdings Data

POST/api/v1/smart-money/holdings
base$0.0500

Get Smart Money Holdings Data

POST/api/v1/smart-money/netflow
base$0.0500

Get Smart Money Netflow Data

POST/api/v1/smart-money/perp-trades
base$0.0500

Get Smart Money Perpetual Trades Data

POST/api/v1/smart-money/pnl-leaderboard
base$0.0500

Get Smart Money PnL Leaderboard

POST/api/v1/tgm/dex-trades
base$0.0100

Get "Token God Mode" (TGM) DEX trades data

POST/api/v1/tgm/flow-intelligence
base$0.0100

Get "Token God Mode" (TGM) flow intelligence data

POST/api/v1/tgm/flows
base$0.0100

Get "Token God Mode" (TGM) flows data

POST/api/v1/tgm/holders
base$0.0500

Get "Token God Mode" (TGM) holders data

POST/api/v1/tgm/perp-positions
base$0.0500

Get "Token God Mode" (TGM) perp positions data

POST/api/v1/tgm/perp-trades
base$0.0100

Get "Token God Mode" (TGM) perp trades data

POST/api/v1/tgm/position-intelligence
base$0.0100

Get "Token God Mode" (TGM) position intelligence data

POST/api/v1/tgm/token-information
base$0.0100

Get "Token God Mode" (TGM) token information data

POST/api/v1/tgm/token-ohlcv
base$0.0100

Retrieve token OHLCV candle data

POST/api/v1/tgm/transfers
base$0.0100

Get "Token God Mode" (TGM) transfers data

POST/api/v1/tgm/who-bought-sold
base$0.0100

Get "Token God Mode" (TGM) who bought/sold data

POST/api/v1/transaction-with-token-transfer-lookup
base$0.0100

Get Transaction with Token Transfer Lookup Data

POST/api/v1beta1/profiler/historical-transaction-lookup
base$0.0500

Get Historical (Time-Travel) Transaction Lookup Data (Beta)

POST/api/v1beta1/tgm/historical-dex-trades
base$0.0500

Get historical "Token God Mode" (TGM) DEX trades (Beta)

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://api.nansen.ai \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://api.nansen.ai
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://api.nansen.ai", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.