{"uid":"cap_FjPYg3np-a2hBbBmBq_LQ","slug":"statepulse-api-prediction-market-odds-af11631e","name":"StatePulse API - Prediction Market Odds","description":"Retrieves live betting market prices and contract odds for global geopolitical events using PredictIt.","url":"https://statepulse-api.hahavoid0.workers.dev/prediction/odds","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"market_id":{"type":"number","examples":[12345],"description":"Optional Polymarket market ID"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"contracts":[{"name":"Democratic Party","price":0.52}],"market_name":"U.S. General Election Outcome"},"supported":true,"confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CCZInPMmiu2vfr99bIdHs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live prediction market contract prices and odds for a given political or event-based market query","exampleAgentPrompt":"What are the current live prediction market odds for the U.S. General Election — specifically the contract prices for each party and how confident the market is?","exampleUseCases":null,"resultDescription":"A JSON object containing the market name, an array of contracts each with a name and price (e.g. 0.52 = 52% implied probability), a 'supported' boolean indicating whether the query is handled, and a 'confidence' field (e.g. 'high') reflecting data reliability.","failureModes":["Market not supported: 'supported' field returns false with no contract data","Ambiguous query returns low-confidence results or empty contracts array","Malformed POST body causes 400 error","Payment not completed via x402 results in 402 Payment Required","Network timeout from Cloudflare Worker due to upstream data latency"],"whenToPreferThis":"Use this endpoint when an agent needs live, pay-per-call prediction market prices for political or event-based outcomes without requiring account setup. Ideal for single on-demand lookups via x402 micropayments on Base when you need implied probabilities and market confidence in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:34:05.870Z","isFirstParty":false}