{"uid":"cap_mp49L4ofNy-hfvi8NtNem","slug":"speraxos-erc-8004-subgraph-query-api-23bfbca4","name":"SperaxOS ERC-8004 Subgraph Query API","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/tools/erc8004/querySubgraph?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"first":{"type":"number","default":10,"maximum":100,"description":"Number of results to return (max 100)"},"where":{"type":"string","description":"Optional filter as JSON string (e.g., {\"owner\": \"0x...\"} or {\"agentId\": \"5\"})"},"entity":{"enum":["agents","transfers","feedbacks","stats"],"type":"string","description":"The subgraph entity to query: agents (registered agents), transfers (ownership changes), feedbacks (reputation feedback events), stats (aggregate protocol statistics)"},"orderBy":{"type":"string","description":"Field to order results by (e.g., createdAt, score, tokenId)"},"orderDirection":{"enum":["asc","desc"],"type":"string","default":"desc","description":"Sort direction: asc or desc"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l2LQZ1wvOjZ5QDrcnLCJj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Queries the ERC-8004 on-chain agent registry subgraph to retrieve data about registered agents, ownership transfers, reputation feedback, and aggregate protocol statistics.","exampleAgentPrompt":"Show me the 10 most recently registered ERC-8004 agents on SperaxOS, sorted by creation date descending — query the agents entity with a limit of 10.","exampleUseCases":[{"title":"Discover top-rated on-chain AI agents","prompt":"Pull the top 20 ERC-8004 agents from SperaxOS ranked by their reputation score in descending order so I can see which agents have the best community feedback."},{"title":"Audit ownership transfers for a wallet","prompt":"Find all ERC-8004 ownership transfer events where the owner is 0xABC123... and sort them by createdAt descending so I can see the most recent transfers first."},{"title":"Check ERC-8004 protocol statistics","prompt":"Fetch the aggregate protocol stats from the ERC-8004 subgraph on SperaxOS — I want to see total agents registered, total transfers, and overall protocol activity."}],"resultDescription":"Returns a list of on-chain records matching the query — either agent registration objects (tokenId, owner, metadata, createdAt), transfer events (from, to, tokenId, timestamp), reputation feedback entries (agentId, score, comment, submitter), or aggregate protocol stats — filtered, sorted, and paginated according to the request parameters.","failureModes":["Invalid entity enum value returns a validation error","Malformed JSON string in the where filter causes a parse error","Requesting more than 100 results returns a max-limit error","Unknown orderBy field may return an empty or unordered result set","Payment of 0.001 USDC via x402 not completed results in HTTP 402 response"],"whenToPreferThis":"Choose this endpoint when you need to query the ERC-8004 on-chain agent registry specifically — including agent discovery, ownership history, reputation feedback, or protocol-wide statistics on Base. Prefer this over general blockchain explorers when you want structured, filterable subgraph data without writing raw GraphQL queries, and when you want per-request micropayment access without managing API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:44:30.797Z","isFirstParty":false,"canonicalSlug":"speraxos-erc-8004-subgraph-query-api-f83c8909"}