GET /api/v1/rank/{chain}/swaps/{interval}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/gmgn/api/v1/rank/{chain}/swaps/{interval}Cache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeTrending memecoin swap rankings (v1) for sol, eth, base, bsc, or tron
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chain | path | string | required | Blockchain slug: sol, eth, base, bsc, tron default: solexample: sol |
interval | path | string | required | Time window: 1m, 5m, 1h, 6h, 24h default: 1hexample: 1h |
orderby | query | string | optional | Sort metric default: swapsexample: swaps |
direction | query | string | optional | Sort direction default: descexample: 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/api/v1/rank/sol/swaps/1h?orderby=swaps&direction=desc"