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 freeHistorical OHLCV candlestick bars for a DEX pair (decoded from feed.dexscreener.com Connect-RPC).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | path | str | required | Network name or alias (ethereum, eth, matic, 137, solana, …) example: ethereum |
ammId | path | str | required | AMM engine identifier (e.g. uniswap, solamm; returned by /web/feed/pair) example: uniswap |
pairId | path | str | required | Pair address (preserve EIP-55 checksum for EVM pairs) example: 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 |
quoteTokenId | query | str | required | Quote token address (preserve EIP-55 checksum on EVM) example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
resolution | query | str | optional | Bar timeframe: 1s, 5s, 15s, 30s, 1m, 5m, 15m, 30m, 1h, 4h, 12h, 1d, 1w default: 1hexample: 1h |
countBack | query | int | optional | Number of candles to return (1..500) default: 50example: 50 |
barType | query | str | optional | Candle basis: price or market_cap default: priceexample: 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"