{"uid":"cap_vCwjVKu76ZusAsutAOhPM","slug":"x402-factory-historical-prediction-market-data-ba3c2834","name":"x402-factory Historical Prediction Market Data","description":"Paid data APIs for AI agents: prediction-market analytics, weather intelligence, weather×market edge signals, and SEC/gov data. Paid endpoints use the x402 protocol (HTTP 402 + USDC on Base): call without payment to receive requirements, retry with an X-PAYMENT header. Machine-readable catalog: /llms.txt. Per-endpoint docs: /docs/{id}.","url":"https://x402-factory.com/v1/history/%7Bslug%7D","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"],"type":"string"},"pathParams":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"queryParams":{"type":"object","required":[],"properties":{"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"granularity":{"enum":["hour","day"],"type":"string","default":"day"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Re3xPYinWuX7WfFbR7S49","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical probability or price data for a specific prediction market identified by slug, over an optional date range and granularity.","exampleAgentPrompt":"Pull the daily historical probability data for the 'trump-wins-2024' market from 2024-09-01 to 2024-11-05 so I can see how the odds moved leading up to election day.","exampleUseCases":[{"title":"Election odds trend analysis","prompt":"Get me the daily historical probability for the 'kamala-wins-presidency' prediction market from 2024-08-01 to 2024-11-05 so I can chart how her odds shifted over that period."},{"title":"Sports market backtesting","prompt":"Fetch the hourly history for the 'chiefs-win-super-bowl-2025' market between 2025-01-01 and 2025-02-09 — I want to see how the probability moved after each playoff game."},{"title":"Economic event probability review","prompt":"Show me the daily historical data for the 'fed-rate-cut-march-2025' prediction market from 2025-01-01 to 2025-03-20 so I can see how the market repriced after each CPI release."}],"resultDescription":"A time-series array of historical probability or price records for the specified prediction market slug, bucketed by the requested granularity (hourly or daily), covering the requested date range. Each data point typically includes a timestamp and the market probability or price at that time.","failureModes":["Invalid slug format (must match kebab-case pattern) returns a 400 or 404 error","Date range with malformed date strings returns a validation error","Calling without a valid X-PAYMENT header returns HTTP 402 with USDC payment requirements on Base","Slug not found in the catalog returns a 404","Very large date ranges or hourly granularity over long periods may return sparse or truncated data"],"whenToPreferThis":"Use this endpoint when you need historical time-series probability data for a specific prediction market event identified by its slug. It is the right choice for backtesting, charting probability trends over time, or correlating market movements with real-world events. Prefer this over the live-board endpoints when you need past data rather than current probabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:45:55.226Z","isFirstParty":false}