{"openapi":"3.1.0","info":{"title":"Codex GraphQL API","version":"1.0.0","description":"Real-time and historical blockchain data and prediction market analytics via GraphQL API for 80+ networks. Codex provides a unified GraphQL API for accessing token prices, trades, liquidity pools, wallet analytics, and prediction market data across EVM and non-EVM chains. Used by trading bots, portfolio trackers, analytics dashboards, DeFi applications, and AI agents.","guidance":"Use POST /graphql to execute GraphQL queries. Send a JSON body with a 'query' field containing your GraphQL query string, and optionally 'variables' and 'operationName'. Authentication is via Bearer token or MPP payment. Example query: { \"query\": \"{ getNetworks { name id } }\" }. Use introspection to discover the full schema."},"x-discovery":{"ownershipProofs":[]},"paths":{"/graphql":{"post":{"operationId":"graphql","summary":"GraphQL - Query blockchain data across 80+ networks","tags":["GraphQL"],"x-payment-info":{"pricingMode":"fixed","price":"0.001000","protocols":["mpp"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","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"}},"required":["query"]}}}},"responses":{"200":{"description":"Successful GraphQL response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"The result of the GraphQL query","additionalProperties":true},"errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"locations":{"type":"array","items":{"type":"object","properties":{"line":{"type":"integer"},"column":{"type":"integer"}}}},"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"integer"}]}},"extensions":{"type":"object"}},"required":["message"]},"description":"Errors encountered during execution"}}}}}},"402":{"description":"Payment Required"}}}}}}