{"uid":"cap_K4Hvcm-rxQhWsw0ryTx3t","slug":"agentdiet-prediction-markets-data-endpoint-d7e163c1","name":"AgentDiet Prediction Markets Data Endpoint","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/prediction-markets?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"topic":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LIufCn2r4bbGWnqoilWxr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches distilled, token-optimized prediction market data by topic via a pay-per-call micro-payment API","exampleAgentPrompt":"Pull prediction market data on the topic 'US election 2026' from AgentDiet and give me the key probabilities — keep the context footprint small.","exampleUseCases":[{"title":"Political outcome market lookup","prompt":"What do prediction markets currently say about the probability of a US recession in 2025? Fetch me the latest odds, ideally in a compact format so it doesn't eat up my context."},{"title":"Crypto event probability check","prompt":"Can you query prediction markets about whether Ethereum will hit $5,000 before end of year and tell me the current market-implied probability?"},{"title":"AI regulation market sentiment","prompt":"What are prediction markets saying about AI regulation passing in the EU this year? Grab that data and summarize the key probabilities for me."}],"resultDescription":"A JSON object with a 'data' field containing prediction market information for the queried topic, a 'status' field ('ok' on success), and an 'roi_proof' object including a compression_ratio_pct value (e.g. 91.4%) confirming how much the response was token-optimized relative to raw source data.","failureModes":["Missing or invalid 'topic' query parameter may return empty or generic data","Payment failure (insufficient USDC balance) returns HTTP 402 Payment Required","Invalid HTTP method (not GET or POST) returns 400 Bad Request","Network timeout or upstream unavailability returns 5xx error","Topic not covered by available prediction market data returns empty data object"],"whenToPreferThis":"Choose this endpoint when an AI agent needs prediction market data on a specific topic and context window efficiency is a priority — the endpoint's built-in compression means you get actionable market probability data without consuming excessive tokens. It is particularly well-suited for agentic workflows that pay per API call via x402/USDC micro-payments and need deterministic, structured JSON responses rather than verbose scraped content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:28.466Z","isFirstParty":false,"canonicalSlug":"agentdiet-prediction-markets-data-endpoint-d7e163c1"}