Tokens API
How much has this token's price changed over a chosen window?
A token's USD price change in percent over a chosen window (1h to 365d); null when no price is tracked for it.
GET
/api/external/token-analysis/price-change/{chain}/{mint}What it returns
The token's USD price change from the start of the chosen window to now, in percent (-12.5 is a 12.5% fall). changePct is null when no price is tracked for the token; that does not say the price was flat.
Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Base BASE
- Robinhood Chain RHC
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/token-analysis/price-change/SOL/<mint>?period=1h"
| Parameter | Description |
|---|---|
periodquery · string · required | The look-back window: h hours, d days.1h4h24h7d30d90d365d |
chainpath · string · required | The chain the token lives on. SOL, ETH, BNB, BASE and RHC are served; STABLE and ARC return 400. CELO, ARB, OP and SCROLL return 400 here. |
mintpath · string · required | The token mint address (Solana) or contract address (EVM). |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
chain | string | The chain asked about. |
token | string | The token asked about, as written. |
period | string | The window asked about. |
changePct | number | null | The USD price change over the window, in percent; null when no price is tracked for the token. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key