GET /web/feed/bars/{chainId}/{ammId}/{pairId}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dexscreener/web/feed/bars/{chainId}/{ammId}/{pairId}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical OHLCV candlestick bars for a DEX pair (decoded from feed.dexscreener.com Connect-RPC).

Parameters

nameintypedescription
chainIdpathstrrequiredNetwork name or alias (ethereum, eth, matic, 137, solana, …)
example: ethereum
ammIdpathstrrequiredAMM engine identifier (e.g. uniswap, solamm; returned by /web/feed/pair)
example: uniswap
pairIdpathstrrequiredPair address (preserve EIP-55 checksum for EVM pairs)
example: 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640
quoteTokenIdquerystrrequiredQuote token address (preserve EIP-55 checksum on EVM)
example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
resolutionquerystroptionalBar timeframe: 1s, 5s, 15s, 30s, 1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d, 1w
default: 1h
example: 1h
countBackqueryintoptionalNumber of candles to return (1..500)
default: 50
example: 50
barTypequerystroptionalCandle basis: price or market_cap
default: price
example: price

Response

type: object
data key: bars
pagination: none
sample: {
  "bars": "array[5]"
}

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/dexscreener/web/feed/bars/ethereum/uniswap/0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640?quoteTokenId=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&resolution=1h&countBack=50&barType=price"