POST /api/v1/token_prices
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/gmgn/api/v1/token_pricesCache executed live on every call — a read-only POST answer is never cachedCost per_call · weight 1 · standard rate classSource billing freeBatch USD spot prices for multiple token addresses
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chain | body | string | required | Chain slug in JSON body default: solexample: sol |
addresses | body | list[str] | required | List of token addresses default: ['DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263']example: ["DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"] |
Response
type: object
pagination: none
sample: {
"list": "list(1)"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/gmgn/api/v1/token_prices" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"chain": "sol", "addresses": ["DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"]}'