Tokens API
What was the first recorded price of this token, and when?
The earliest USD price on record for a token and when it was recorded; null when none is recorded. An asset tracked across chains carries its first price on any chain.
/api/external/token-analysis/first-price/{chain}/{mint}What it returns
The first USD price on record for the token and the moment it was recorded. A token tracked as one asset across several chains (a major stablecoin, for one) carries that asset's first price, which can predate the token's arrival on the chain asked about. A token with no price on record answers null for both priceUsd and timestamp; that does not say it never traded.
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/first-price/SOL/<mint>"
| Parameter | Description |
|---|---|
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. |
priceUsd | number | null | The first USD price on record; null when none is recorded. |
timestamp | integer | null | When that price was recorded, in unix seconds; null when none is recorded. |
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