Data API
Blockchain and market data, one API
Real-time and historical prices, token balances, transfers and NFT data across major networks.
# Token balances for an address
curl https://api.Coinbase.example/v1/balances \
-H "Authorization: Bearer $YB_KEY" \
-d network=ethereum \
-d address=0x8f3a…c21e
What you get
Prices
Tick-level and OHLC candles.
Balances
Tokens and NFTs for any address.
History
Full transaction history, decoded.
Webhooks
Get notified of onchain events.
Popular endpoints
| Endpoint | Description |
|---|---|
GET /v1/prices/{pair} | Latest price for a trading pair |
GET /v1/candles/{pair} | Historical OHLC candles |
GET /v1/balances | Token balances for an address |
GET /v1/transfers | Decoded transfer history |
POST /v1/webhooks | Subscribe to onchain events |
Quickstart
- Step 1
Create an account
Sign up for a free developer account.
- Step 2
Generate API keys
Create keys with the scopes you need.
- Step 3
Install the SDK
npm, pip or go get, whichever you prefer.
- Step 4
Ship it
Test on testnet, then switch to mainnet.
Start building in minutes
Create a free developer account and get API keys instantly.