GET /defi/quotation/v1/rank/{chain}/swaps/{interval}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/gmgn/defi/quotation/v1/rank/{chain}/swaps/{interval}Cache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Trending tokens ranked by swap activity, volume, or smart money count across chains

Parameters

nameintypedescription
chainpathstringrequiredBlockchain slug: sol, eth, base, bsc, tron
default: sol
example: sol
intervalpathstringrequiredTime window: 1m, 5m, 1h, 6h, 24h
default: 1h
example: 1h
orderbyquerystringoptionalSort column: swaps, volume, marketcap, liquidity, holder_count, smart_degen_count
default: swaps
example: swaps
directionquerystringoptionalSort order: desc or asc
default: desc
example: desc

Response

type: object
pagination: none
sample: {
  "rank": "list(100)"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/gmgn/defi/quotation/v1/rank/sol/swaps/1h?orderby=swaps&direction=desc"