{"uid":"cap_oDKBWWfZ3N8sbbHduPv7V","slug":"codex-graphql-2dab4955","name":"Codex GraphQL API","description":"GraphQL query (token data, trades, liquidity, NFTs, wallets)","url":"https://graph.codex.io/graphql?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1,"description":"The GraphQL query string to execute"},"variables":{"type":"object","description":"Optional variables for the GraphQL operation","additionalProperties":true},"operationName":{"type":"string","description":"Optional name of the operation to execute when the query contains multiple operations"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","description":"The result of the GraphQL query","additionalProperties":true},"errors":{"type":"array","items":{"type":"object","required":["message"],"properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"integer"}]}},"message":{"type":"string"},"locations":{"type":"array","items":{"type":"object","properties":{"line":{"type":"integer"},"column":{"type":"integer"}}}},"extensions":{"type":"object"}}},"description":"Errors encountered during execution"}}},"example":{"request":{"query":"{ token(input: { address: \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\", networkId: 1 }) { id symbol name decimals } }"},"response":{"data":{"token":{"id":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48:1","name":"USDC","symbol":"USDC","decimals":6}}}},"exampleRequest":{"query":"{ token(input: { address: \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\", networkId: 1 }) { id symbol name decimals } }"},"tags":["graphql","defi","tokens","trades","nft","blockchain","data"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.33","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mRPnp4GDfjQsHE8z2B0Co","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"Codex","brandSlug":"codex","brandBaseUrl":"https://codex.io","brandDocsUrl":"https://docs.codex.io","whatItDoes":"Executes GraphQL queries against Codex's onchain data platform to retrieve token data, trades, liquidity, NFTs, and wallet analytics across 80+ blockchain networks","exampleAgentPrompt":"Can you pull the latest price, 24-hour trading volume, and recent trades for the token at address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum using Codex's GraphQL API?","exampleUseCases":null,"resultDescription":"Returns a data object containing the requested blockchain data (token prices, trade records, liquidity metrics, NFT info, wallet activity, etc.) matching the GraphQL query shape, plus an optional errors array describing any query or execution issues","failureModes":["Invalid GraphQL query syntax returns errors array with message and location info","Querying unsupported network or contract address returns null data fields","Missing required query field returns GraphQL validation error","Rate limiting or quota exceeded returns HTTP 429 or API error","Malformed variables object causes variable coercion errors","Requesting nonexistent operation name when multiple operations defined returns error"],"whenToPreferThis":"Choose this endpoint when you need flexible, multi-entity onchain data queries across 80+ blockchain networks with real-time prices, trades, liquidity, NFTs, or wallet analytics — especially when you need to combine multiple data types in a single request via GraphQL. Prefer over REST alternatives when query shape needs to be dynamic or when you need prediction market data alongside standard DeFi metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":6,"lastUsedAt":"2026-05-27T18:53:38.418Z","lastSuccessfullyRanAt":"2026-05-27T18:53:33.111Z","lastHealthCheckAt":"2026-10-13T00:35:49.278Z","isFirstParty":false,"canonicalSlug":"codex-graphql-2dab4955"}