Documentation

OpenAPI Hub reference

Everything on one page. Per-provider routes and parameters live on each provider page; unified CEX & PerpDEX markets on Markets; normalized explorer reads on Explorer; chains and methods on On-chain RPC.

Quick start

Choose a useful first result

Each recipe below is visible only while its exact route remains executable in the current registry.

Wallet research

Review a wallet

Get net worth and a per-chain balance breakdown in one read.

GET · debank

Market monitoring

Check a token market

Fetch the pools, price, liquidity and volume available for a token.

GET · dexscreener

Social research

Search recent X posts

Run a bounded recent-post search through the accepted X data route.

GET · x_unified_api

Prediction markets

Search prediction markets

Find active Polymarket events and markets matching a topic with live probabilities and volume.

GET · polymarket

Cross-chain routing

Get a cross-chain bridge quote

Request a read-only fee, output and fill-time quote for a cross-chain token transfer via Across.

GET · across

Entity intelligence

Look up an on-chain entity

Search attributed on-chain entities, labeled addresses and tokens through Arkham.

GET · arkham

Solana analytics

Check Solana token prices

Read real-time USD prices and decimals for one or more Solana mints via Jupiter Price v3.

GET · jupiter_portfolio

Connect once

  1. Get a key from openapihubot.
  2. Store it as API_HUB_KEY in the agent or runtime secret store.
  3. Open a recipe and copy its request or secret-free agent handoff.

For custom work, use OpenAPI, llms.txt or the provider catalog. Execution and /me/stats require X-Hub-Key.

Client execution limits

Limits apply per authenticated API key on execution routes. Documentation remains open.

scopelimit
Per API key sustained rate80 req/s
Per API key burst160 requests
Per API key in-flight60
Shared service in-flight (simultaneous across all clients; not per-second)200
Anonymous development fallback rate2 req/s
Anonymous development fallback burst4 requests
Anonymous development fallback in-flight2

These are OpenAPI Hub admission controls, not an upstream availability, latency, or throughput SLA. On a 429, reason=rate means slow your request rate, client_concurrency means reduce parallelism, and shared_concurrency means the whole service is saturated, so back off briefly.

Anonymous access

Development fallback only, disabled when API keys are configured: 2 req/s, burst 4, 2 in-flight.

Rate-limit responses

Admitted execution responses include X-RateLimit-Limit (sustained refill rate per second), X-RateLimit-Remaining (never greater than Limit), X-RateLimit-Burst-Remaining (current bucket tokens, which may exceed Limit because the burst capacity is larger), and X-RateLimit-Reset. A 429 includes Retry-After and reason set to rate, client_concurrency, shared_concurrency, or client_state_capacity; X search adds x_search_fairness (one admitted search per 120 seconds per key, shared by recent and all); wait for that interval before retrying.

Execution

Execute only endpoints listed in a provider's public schema. POST is available only for explicitly annotated read-only batch queries; mutations are structurally excluded.

Routes

methodroutepurpose
GET/run/{provider}/{path}?paramsRead a provider endpoint
POST/run/{provider}/{path}Read-only batch query with an explicitly annotated JSON body
POST/batch/tokensBatch token market snapshot for 1..50 token addresses (EVM & Solana)
POST/batch/poolsBatch DEX pool snapshot for 1..30 pool addresses (EVM & Solana)
GET/providers/{provider}/endpoint?method={M}&path={P}Compact ~1 KB single-endpoint schema card (instead of full OpenAPI)
POST/feedbackSubmit an issue report (X-Hub-Key, ≤ 1 KiB, 5/hour)

Batch snapshots (POST /batch/tokens & POST /batch/pools)

Collapse multi-token or multi-pool polling into one authenticated request (X-Hub-Key, max 64 KiB body). Accept either a single chain with addresses or heterogeneous tokens (1..50) / pools (1..30) arrays:

// POST /batch/tokens (1..50 addresses)
{"chain": "base", "addresses": ["0x4200000000000000000000000000000000000006"]}
// or: {"tokens": [{"chain": "base", "address": "0x..."}, {"chain": "solana", "address": "So111..."}]}

// POST /batch/pools (1..30 pools)
{"chain": "ethereum", "addresses": ["0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"]}
// or: {"pools": [{"chain": "ethereum", "address": "0x..."}]}

// Response envelope
{"status": 200, "plane": "batch", "serve_stale": false, "count": 1, "found": 1, "missing": 0, "partial": false, "upstream_calls": 1, "cache_hits": 0, "sources_used": ["geckoterminal"], "latency_ms": 42.1, "results": [{"chain": "base", "address": "0x...", "found": true, "price_usd": 0.0, "liquidity_usd": 0.0, "volume_24h_usd": 0.0}], "errors": []}

Report issues (POST /feedback)

Authenticated with X-Hub-Key, capped at 1 KiB JSON and 5 reports/hour per key (also available via MCP tool report_issue):

{"kind": "broken_route | missing_capability | wrong_schema | other", "summary": "concise description (<=600 chars)", "provider": "optional", "path": "optional", "request_id": "optional"}

GET response envelope

{
  "source": "polymarket",
  "path": "/markets",
  "params": {"limit": "2"},
  "status": 200,
  "data": [],
  "cached": false,
  "ttl": 10.0,
  "latency_ms": 0.0
}

  // a failure adds exactly one field — the failure cause (never on a 2xx):
  "error": "upstream 400: TOKEN_NOT_TRADABLE"
}

Cached GET responses carry their cache state and age (cached, ttl, age_s); quote routes are deliberately short-lived and never served stale. Read-only POST results are never cached — every response is a live upstream fetch, so cached is always false and X-Hub-Cache always reports miss.

Hub admission control 429s include reason and retry_after_s; the Retry-After header is unchanged. The hub limiter uses rate, client_concurrency, shared_concurrency, or client_state_capacity. X search adds x_search_fairness (one admitted search per 120 seconds per key, shared by recent and all). The shared service limit is simultaneous in-flight requests across all clients, not a per-second quota. See Limits.

The error cause exposes only a reviewed provider error class; free-form upstream text, headers and credentials are never returned.

Inspect the provider endpoint page for the contents of data, parameter requirements, examples, and pagination.

Your usage statistics

Send your key as X-Hub-Key to GET /me/stats to see your own totals: requests, successes, errors, cache hits, last-seen, top routes (path params normalized, query values stripped), and per-plane counters. The response also labels service-wide 404/401 reject totals separately; it never includes another caller's key-level usage.

Networks and exchanges

Use canonical slugs when an endpoint accepts a network or exchange parameter. Providers may support additional identifiers; inspect the endpoint schema for source-specific filters.

Canonical networks

slugchain idaliases
0g16661g0
abstract2741abs
apechain33139ape, apechain-mainnet
arbitrum42161arb, arbitrum-one, arbitrum_one, arbone
arbitrum_nova42170
aurora1313161554
avalanche43114avalanche-c, avax, avaxc
base8453
beam4336
berachain80094bera
bitlayer200901bitlayer-mainnet, btr
blast81457
bob60808bob-mainnet
boba288
botanix3637
bouncebit6001bb
bsc56binance-smart-chain, bnb, bnb-chain, bnbchain
bsquared223b2, b², b²-mainnet
celo42220
chiliz88888chz
citrea4114
conflux1030cfx
core1116
cronos25cro
cyber7560
dbk20240603dbk-chain
dogechain2000
duckchain5545
dymension1100
endurance648
ethereum1eth, evm-1
ethereum_classic61etc, ethereum-classic
etherlink42793ethlink
ethw10001ethereum-pow, ethereumpow
fantom250ftm
filecoin314
flare14flr
flowevm747flow
fraxtal252frax
fuse122
gnosis100gnosis-chain, xdai
goat_network2345
gravity1625gravity-alpha, gravity-alpha-mainnet
harmony1666600000one
hashkey177
hemi43111
hyperevm999hyper
immutable_zkevm13371immutable-zkevm, imx, itze
injective1776inj
ink57073
iotex4689
kaia8217kaia-network, klay, klaytn
katana747474
kava2222
kcc321
kiteai2366kite
lens232
linea59144
lisk1135
manta169manta-pacific, mantapacific
mantle5000mnt
matchain698
megaeth4326
merlin4200merlin-chain
metis1088
mezo31612
mode34443
monad143mon
moonbeam1284
moonriver1285movr
morph2818
neonevm245022934neo
nero1689
oasissapphire23294sapphire
opbnb204opbnb-mainnet
optimism10op, op-mainnet, optimism-mainnet
pharos1672
plasma9745xpl
plume98866
polygon137matic, poly
robinhood4663hood
ronin2020ron
rootstock30rsk
scroll534352scrl
sei1329sei-network, seiv2
soneium1868
sonic146
sophon50104
stable988
stepnetwork1234
story1514data-network
taiko167000
tempo4217
unichain130uni
vana1478
wemix1111
world_chain480world, world-chain
x_layer196x-layer, x1, xlayer
xdc50
zetachain7000zeta
zircuit48900
zkcandy320
zkfair42766
zklink810180
zksync324era, zksync-era
zora7777777

Canonical exchanges

binance bitfinex bybit coinbase ftx gemini huobi kraken mexc mt-gox okx robinhood upbit whitebit

Streaming: SSE, WebSocket, poll bridge

Two live transports and one bridged mode share the streaming plane.

SSE — GET /stream/{provider}{path}

Same authentication as /run/*: pass X-Hub-Key (401 invalid key; 503 when issued-key state is unavailable — fail-closed). Streaming is bounded separately: at most 2 concurrent streams per key and 20 across the service; overflow answers 429 with Retry-After. Idle timeout 30s, hard cap 10 minutes, disconnect closes the upstream; the TTL response cache is bypassed entirely.

X profile SSE delivers native push events for up to 100 unique profiles. Standard access allows 2 streams for 60 minutes; partner access allows 5 streams for 6 hours. New-username churn is 100/24h standard or 100/24h partner, with disconnect grace 120s/300s. Quota errors use profile_limit or profile_churn_limit (429); unavailable profile capacity returns 503.

WebSocket — GET /ws/{provider}{path}

Same auth contract; denials are normal HTTP responses (401/404/429/502/503) before any 101 Switching Protocols. One shared upstream socket serves every subscriber of the same route+params (fan-out). Each client drains a bounded 256-event ring with drop-oldest semantics: slower readers lose the oldest events. Lifetime guards mirror SSE (idle 30s, hard cap 10 min, 2/key, 20 service-wide). dYdX /trades keeps a bounded post-snapshot budget of 240s because quiet markets pause between trades; connect/subscribe and the snapshot keep the idle value above. Text frames only; client writes are never forwarded upstream.

After the upgrade the close frame carries the verdict: 1000 when the provider feed ended cleanly, 1011 with reason upstream stream failed when the provider feed itself failed (a refused connector, a mid-stream error). A 101 followed by an immediate close is therefore never silently reported as a normal end of feed.

Poll bridge — pollable routes on /stream/

Routes whose endpoint declares pollable=true stream via /stream/ even without a push connector: the hub polls the provider (bypassing the TTL cache — change detection needs upstream truth) and emits event: snapshot on subscribe, event: update only when the sha256 of the normalized body changes, and : heartbeat comments every 15s. poll_interval_s is clamped to [5, 60]s (default 15), then floored by the provider's own throttle config. One loop per route+params serves all subscribers; loops tear down 30s after the last subscriber leaves; at most 8 loops service-wide — further subscriptions get 503 with Retry-After.

GraphQL — GET /graphql

One GraphQL query fans out to any executable REST route in the hub. Read-only by policy: a Query root only (no Mutation, no Subscription) and a GET-only transport — POST answers 405. Authentication is exactly /run/*: pass X-Hub-Key; a bad key is 401, over-limit is 429, and every field execution is billed against your key like a /run call (rate, in-flight, usage and cache counters).

Transport

GET /graphql?query=<graphql>&variables=<json-object>&operationName=<name>

curl -G https://openapihub.dev/graphql \
  -H "X-Hub-Key: $API_HUB_KEY" \
  --data-urlencode 'query={ dex: provider(name: "dextools") { ... on DextoolsProvider { tokenData(chain: "ethereum", address: "0xdac17f958d2ee523a2206206994597c13d831ec7") } } geck: provider(name: "geckoterminal") { ... on GeckoterminalProvider { pools(network: "eth") } } }'

Two providers in ONE request. Each route field returns the hub envelope {"status", "data", "cached", "ttl", "latencyMs"} (+error when the upstream status is not 200) — resolvers never throw for upstream failures, so branch on status/error.

Schema discovery (introspection is on)

Query { providers: [Provider!]!, provider(name: String!): Provider }. Provider is an interface {name, routes: [RouteInfo!]!}; each provider has a concrete type (e.g. DextoolsProvider) with one camelCase field per executable GET route — path-derived names, collision-safe _2 suffixes. Field descriptions carry the mapped REST call (GET /run/{source}{path}). Spread concrete types to reach route fields:

{ provider(name: "dextools") { ... on DextoolsProvider { tokenData(chain: "ethereum", address: "0x...") } } }

List a provider's fields: { __type(name: "DextoolsProvider") { fields { name args { name } } } }

Limits

LimitValue
Max query depth8 nested field levels
Max fields per query64
Max query string16384 bytes
Max variables JSON4096 bytes
RejectionsHTTP 400, body {"errors":[{message, extensions.code="COMPLEXITY"}]}

Field executions run serially within one query; each is billed as one /run call and shares the identical response cache (same keys), so an equivalent /run call and a GraphQL field never double-fetch.

Agent guide

The shortest correct path for an automated client. Start from a verified task recipe, keep the credential outside the prompt, and expand through the registry-derived contract only when needed.

1. Authenticate

Read the credential from API_HUB_KEY in the environment or secret store and send it as X-Hub-Key. Never print it or put it in a prompt, URL, log, or source file. The execution planes (/run, /stream, /ws, /graphql, /rpc, /mcp) and /me/stats require the key; documentation and machine discovery are open. Wallet/SIWE is a separate browser account flow for issuing and controlling a key.

2. Discover

Start with GET /discover?q=<task>, llms.txt, or a verified task recipe before loading the full OpenAPI 3.1 contract. For custom work, read the provider catalog, then GET /providers/{provider}. Each single-endpoint card (GET /providers/{provider}/endpoint?method={M}&path={P}, ~1 KB) declares parameters (path/query/body), response shape, cache and cost metadata. Never guess paths.

3. Execute

GET /run/{provider}/{path}?query=params
X-Hub-Key: $API_HUB_KEY

GET and explicitly annotated read-only POST routes are executable, alongside multi-address batch endpoints POST /batch/tokens (1..50 tokens) and POST /batch/pools (1..30 pools). The response envelope carries source, path, params, status, data, cached, ttl, and latency_ms; failures also carry a sanitized error. Report broken routes or missing capabilities via POST /feedback (X-Hub-Key, ≤ 1 KiB, 5/hour, JSON: {"kind":"broken_route|missing_capability|wrong_schema|other","summary":"...","provider?":"...","path?":"...","request_id?":"..."}) or MCP report_issue.

4. Respect limits

Honor X-RateLimit-Limit, X-RateLimit-Remaining (never above Limit), X-RateLimit-Burst-Remaining (the larger token-bucket depth), and X-RateLimit-Reset. On 429, wait for Retry-After; reason=rate means slow the request rate, client_concurrency means reduce parallelism, and shared_concurrency means the service is saturated. These are Hub admission controls, not an upstream availability, latency, or throughput SLA. Repeated identical GETs within the endpoint's TTL may be served from cache.

5. Scope

The provider execution plane (/run, /stream, /ws) is read-only data retrieval — no order placement, no transfers. Signed-transaction writes are available on the RPC plane (POST /rpc/{chain}) to authorized principals only.

Connect via MCP

A remote, read-only MCP server exposes the same providers as a few task tools. Endpoint: https://openapihub.dev/mcp (Streamable HTTP). Send the same key as the X-Hub-Key header; get one from @openapihubot. Each provider call a tool makes counts against the same per-key limits as /run.

Claude Code:

claude mcp add --transport http openapi-hub https://openapihub.dev/mcp --header "X-Hub-Key: $API_HUB_KEY"

Clients configured with JSON (keep the key in the environment or a secret store, not in the file):

{
  "mcpServers": {
    "openapi-hub": {
      "url": "https://openapihub.dev/mcp",
      "headers": {
        "X-Hub-Key": "${env:API_HUB_KEY}"
      }
    }
  }
}
toolwhat it returns
discover_endpointsCall this first whenever you need to choose providers or endpoints for a user task (English or Russian).
list_providersList the data providers available here, each with a one-line description and the number of read-only routes (GET and read-only POST).
wallet_overviewPortfolio snapshot for one wallet.
token_marketFind DEX trading pairs for a token by symbol, name, token address or pair address.
derivatives_marketRead perpetual futures and options market data across Hyperliquid, dYdX v4 and Deribit in one call: mark price, funding rates, open interest and 24h volume for a symbol (such as BTC, ETH or SOL).
prediction_markets_searchSearch prediction markets by keyword across Polymarket, Kalshi, Limitless, Manifold and Myriad in one call.
bridge_quotesCompare cross-chain transfer quotes across LI.FI, Bungee (Socket), Across and deBridge (DLN) for the same transfer: expected output, fees and estimated duration.
entity_lookupOn-chain entity and address intelligence from Arkham: search entities, addresses and tokens, or inspect enriched address attribution and multi-chain balances for a specific address or entity id.
x_searchRead public X (Twitter) data: bounded recent-post search, profile lookup by username, recent posts from a user, or current trending topics.
rpc_callRun one read-only JSON-RPC method on 153 public blockchains: Ethereum and 120+ EVM networks (including archive reads and eth_getLogs), Solana, Bitcoin, Cosmos SDK chains, Tron, TON, Sui, Aptos, NEAR and more.
run_endpointCall any read-only GET or read-only POST route of a listed provider (including Hyperliquid /info/* routes and bridge quote routes).
report_issueSubmit a short structured report for a broken route, schema mismatch, missing capability or other issue (up to 5 reports per hour).
explorer_chainsList blockchains supported by the Unified Blockchain Explorer with chain family, native currency metadata and supported read capabilities.
explorer_address_txsRead normalized address history on any supported blockchain: transactions (`txs`), internal contract calls (`internal_txs`) or fungible and NFT token transfers (`token_transfers`) with cursor pagination.
explorer_address_tokensRead token balances held by an address across supported EVM, Solana, TON, TRON, Cosmos, Substrate, Move and other blockchains with decimals and token metadata.
explorer_tx_detailInspect a single transaction by hash on any supported chain: status, block, timestamp, fee, value, decoded method and optional token transfers, internal calls or event logs.
explorer_token_holdersRead top token holders and share breakdown for a token contract on supported blockchains with cursor pagination.
explorer_contract_abiRead verified smart-contract ABI (`abi`) or verified source code (`source`) for a contract address on supported blockchains.
markets_venuesList all 56 CEX and PerpDEX venues in Unified Markets with live spot pair counts, perpetual pair counts, network asset coverage, freshness and asset graph totals.
markets_tickersRead live normalized spot (`spot`) or perpetual (`perps`) tickers across 56 CEX and PerpDEX venues with bid/ask, 24h volume, mark/index price, open interest, funding rate and canonical asset binding.
markets_fundingRead live perpetual funding rates across CEX and PerpDEX venues sorted by absolute funding rate descending, with funding interval and next settlement timestamp.
markets_spreadsScan live cross-venue arbitrage spreads (`spot-spot`, `futures-futures`, `spot-futures`, `funding-spread`) across 57 CEX and PerpDEX venues with filters for `min_spread_pct`, `min_volume_usd`, `transferable` and `limit`.
markets_searchSearch spot and perpetual symbols across 57 CEX and PerpDEX venues ranked by exact match and 24h volume, returning price, 24h change, icon URLs and TradingView symbol.
markets_klinesFetch canonical OHLCV candlesticks across CEX, PerpDEX, on-chain DEX (`market=dex` supporting `1s`..`1w`) and automatic TradingView fallback for equities, FX and additional venues.
markets_orderbookRead normalized L2 orderbook snapshot (`bids`, `asks`, `mid`, `spread_bps` and 1% USD depth) for a spot or perpetual symbol on a CEX or PerpDEX venue.
markets_instrumentRead a full single-call instrument card: live ticker, funding, limits, canonical asset binding, trade/deposit/withdraw links, network availability, icons, TradingView symbol and direct WebSocket schema metadata.

Providers

providerexecution prefixendpoints
Across/run/across/...14
Token Price Feed/run/arbitron/...1
Arkham Intelligence/run/arkham/...169
Aster DEX/run/aster/...75
CoinMarketCap/run/cmc/...203
CoinGecko/run/coingecko/...73
CoinGlass/run/coinglass/...158
DeBank/run/debank/...48
deBridge (DLN)/run/debridge/...29
DefiLlama/run/defillama/...67
Deribit/run/deribit/...39
Dexscreener/run/dexscreener/...21
DexTools/run/dextools/...55
dYdX Chain (v4)/run/dydx/...14
DZap/run/dzap/...14
GeckoTerminal/run/geckoterminal/...44
GMGN/run/gmgn/...62
Hyperliquid/run/hyperliquid/...54
Jupiter Portfolio/run/jupiter_portfolio/...53
Kalshi/run/kalshi/...91
LI.FI (Jumper)/run/lifi/...40
Lighter DEX/run/lighter/...57
Limitless Exchange/run/limitless/...44
Manifold Markets/run/manifold/...65
Meteora/run/meteora/...70
Myriad Markets/run/myriad/...27
OKLink/run/oklink/...37
OKX Wallet/run/okxwallet/...23
Polymarket/run/polymarket/...121
Pump.fun/run/pumpfun/...73
Rango Exchange/run/rango/...13
Raydium/run/raydium/...42
Rubic/run/rubic/...14
Skip Go/run/skip_go/...4
Bungee (Socket)/run/socket/...13
Squid/run/squid/...6
Stargate (LayerZero)/run/stargate/...15
TradingView/run/tradingview/...34
OKX Web3/run/web3okx/...135
X Unified API/run/x_unified_api/...22