GET /swaps

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/arkham/swapsCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing credits

DEX swap history, filterable and paginated.

2 credits per row returned; use limit to control spend.

Parameters

nameintypedescription
basequerystrrequiredAddress (0x…) or entity slug
example: binance
flowquerystr
in | out | all
optional
default: all
timeLastquerystr
1h | 24h | 7d | 30d
optional
limitqueryintoptional
default: 50
offsetqueryintoptional
default: 0

Response

type: object
data key: swaps
count key: count
pagination: offset
sample: {
  "swaps": "array[0]",
  "count": "int"
}

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/arkham/swaps?base=binance"