GET /{network}/pools/{pool_address}/swaps

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/geckoterminal/{network}/pools/{pool_address}/swapsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Cursor-paged trade tape (older history than v2 trades' 24h window).

Page_after travels as page[after] (unix seconds; follow links.next). Rechecked 2026-10-07: missing cursor returns 400; a timestamp cursor returns a non-empty trade list. include=from_token,to_token side-loads the tokens; the pool-style base_token,quote_token,dex answers 500.

Parameters

nameintypedescription
networkpathstrrequiredNetwork name or alias (ethereum, eth, matic, 137, solana, …) — mapped internally
example: ethereum
pool_addresspathstrrequiredPool (pair) address; EVM addresses are lowercased
example: 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640
pair_idquerystrrequiredInternal numeric pair id of the pool (not present in v2 payloads — reuse the documented example per market)
example: 97292
page_afterqueryintrequiredRequired cursor: fetch swaps older than this unix timestamp (sent as page[after]); follow links.next
example: 1787536905
invertedqueryintoptionalInvert the pair direction in returned swap prices (0|1)
example: 0
includequerystroptionalRelated resources to include on the swap tape: from_token, to_token
example: from_token,to_token

Response

type: object
data key: data
cursor key: links.next
pagination: cursor
sample: {
  "data": "array[20]",
  "links": "object"
}

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/geckoterminal/ethereum/pools/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/swaps?pair_id=97292&page_after=1787536905&inverted=0&include=from_token%2Cto_token"