What is a Query?
A query is a one-time request for data. You send a GraphQL query to the Codex API over HTTP, and you get back a response with the data you asked for. Queries are the standard way to fetch token prices, wallet stats, historical bars, holder lists, and everything else in the API. Every query you run counts as 1 request against your plan’s monthly limit.When to Use Queries
- Fetching current state — token prices, metadata, pair stats, wallet balances
- Historical data — OHLCV bars, trade events, wallet charts
- Paginated lists — filtering tokens, wallets, pairs, or events with cursor-based pagination
- One-time lookups — loading a page, responding to a user action, backfilling data
How It Works
Send aPOST request to https://graph.codex.io/graphql with your API key in the Authorization header.
To see a reference of all available queries, go to the API Reference.
Examples
Try it
Try it
SDK
SDK
Custom
Custom