{"openapi":"3.1.0","info":{"title":"Polymarket Events and Markets (x402 & MCP)","version":"0.1.0","description":"Search Polymarket prediction events and markets with outcome prices, volume and liquidity, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/polymarket-com/v1/search":{"post":{"operationId":"polymarket_com_search","summary":"Polymarket Events and Markets: Search prediction events by keyword","description":"Compact event rows matching a search query, with representative outcome prices where available. Unit price: $0.002000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["polymarket-com","Finance"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.010000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search text for search mode, e.g. bitcoin or election. With Auto mode, filling only this field runs a search."},"locale":{"type":"string","description":"Language code for supported titles and links: en, zh, es, de, fr, pt, ru, ko or ja. Availability varies; this does not select a country or translate your search words.","default":"en","enum":["en","zh","es","de","fr","pt","ru","ko","ja"]},"maxResults":{"type":"integer","description":"Maximum Dataset rows for each tag, event slug/ID, query, series, sport, league, or comments parent. Default 70; larger values are collected in parts of up to 70. All emitted row types share that input's budget. The run also stops at your maximum total charge; free platform plans are capped at 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"query":"bitcoin","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_polymarket_com"},"example":{"jobId":"job_polymark_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","title":"example_title","slug":"example_slug","locale":"example_locale","volume24hr":10,"liquidity":10}],"meta":{"site":"polymarket-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":10000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/polymarket-com/v1/events":{"post":{"operationId":"polymarket_com_events","summary":"Polymarket Events and Markets: Browse prediction events or retrieve event details","description":"One compact event per row. Browse by tag or series, or choose event mode with an event slug or ID. No nested raw markets. Unit price: $0.002000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["polymarket-com","Finance"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.010000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Auto selects a mode from the fields you fill. A chosen mode is kept when its required target is present; otherwise another compatible mode or the example search may be selected.","default":"events","enum":["events","event"]},"tagSlug":{"type":"string","description":"Category tag for event lists, such as politics, crypto or sports. An unfamiliar tag is still tried and may produce a warning."},"tagSlugs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"description":"Collect events for each tag. Each tag gets its own maxItems row budget.","maxItems":20},"seriesSlug":{"type":"string","description":"Series identifier for event lists or series mode, such as nfl. Series-scoped events use offset pagination."},"sport":{"type":"string","description":"Sport code, such as nba or ufc. Filters sports mode or supplies an event category when no tag is provided."},"eventSlug":{"type":"string","description":"Event slug for event detail, comments or resolutions. Enter the slug, not the full URL."},"eventSlugs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":300},"description":"Up to 50 event slugs for event detail, comments or resolutions. Each input has its own maxItems allowance.","maxItems":50},"eventId":{"type":"string","description":"Polymarket event ID for event detail, comments or resolutions."},"eventIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"description":"Up to 50 Polymarket event IDs for event detail, comments or resolutions. Each input has its own maxItems allowance.","maxItems":50},"locale":{"type":"string","description":"Language code for supported titles and links: en, zh, es, de, fr, pt, ru, ko or ja. Availability varies; this does not select a country or translate your search words.","default":"en","enum":["en","zh","es","de","fr","pt","ru","ko","ja"]},"order":{"type":"string","description":"Sort field for event lists. Market lists do not apply this setting.","default":"volume24hr","enum":["volume24hr","volume","liquidity","competitive","startDate","endDate"]},"ascending":{"type":"boolean","description":"Use ascending order for event lists when true.","default":false},"closed":{"type":"boolean","description":"Request closed events or markets when true; false requests open entries where supported. Offset and series-scoped event lists do not enforce false.","default":false},"active":{"type":"boolean","description":"Filter events and markets by active status when set. Leave unset for no activity filter."},"featured":{"type":"boolean","description":"Filter event lists by featured status when set. Leave unset for no featured filter."},"maxResults":{"type":"integer","description":"Maximum Dataset rows for each tag, event slug/ID, query, series, sport, league, or comments parent. Default 70; larger values are collected in parts of up to 70. All emitted row types share that input's budget. The run also stops at your maximum total charge; free platform plans are capped at 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"tagSlug":"crypto","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_polymarket_com"},"example":{"jobId":"job_polymark_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","title":"example_title","slug":"example_slug","locale":"example_locale","volume24hr":10,"liquidity":10}],"meta":{"site":"polymarket-com","endpoint":"events","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":10000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/polymarket-com/v1/markets":{"post":{"operationId":"polymarket_com_markets","summary":"Polymarket Events and Markets: List prediction markets and outcome prices","description":"One prediction market per row, with outcome prices, volume and liquidity where available. Unit price: $0.002000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["polymarket-com","Finance"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.010000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","description":"Language code for supported titles and links: en, zh, es, de, fr, pt, ru, ko or ja. Availability varies; this does not select a country or translate your search words.","default":"en","enum":["en","zh","es","de","fr","pt","ru","ko","ja"]},"closed":{"type":"boolean","description":"Request closed events or markets when true; false requests open entries where supported. Offset and series-scoped event lists do not enforce false.","default":false},"active":{"type":"boolean","description":"Filter events and markets by active status when set. Leave unset for no activity filter."},"maxResults":{"type":"integer","description":"Maximum Dataset rows for each tag, event slug/ID, query, series, sport, league, or comments parent. Default 70; larger values are collected in parts of up to 70. All emitted row types share that input's budget. The run also stops at your maximum total charge; free platform plans are capped at 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"active":true,"closed":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_polymarket_com"},"example":{"jobId":"job_polymark_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","title":"example_title","slug":"example_slug","locale":"example_locale","volume24hr":10,"liquidity":10}],"meta":{"site":"polymarket-com","endpoint":"markets","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":10000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/polymarket-com/v1/health":{"get":{"operationId":"polymarket_com_health","summary":"Polymarket Events and Markets: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["polymarket-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_polymarket_com":{"type":"object","properties":{"recordType":{"type":["string","null"],"title":"Type"},"title":{"type":["string","null"],"title":"Title"},"slug":{"type":["string","null"],"title":"Slug"},"locale":{"type":["string","null"],"title":"Locale"},"volume24hr":{"type":["number","null"],"title":"Volume 24h"},"liquidity":{"type":["number","null"],"title":"Liquidity"},"marketCount":{"type":["number","null"],"title":"Markets"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"emails":{"type":["string","null"],"title":"Emails"},"org":{"type":["string","null"],"title":"Org"},"person":{"type":["string","null"],"title":"Person"},"scrapedAt":{"type":["string","null"],"title":"Scraped at"},"type":{"type":["string","number","boolean","object","array","null"]},"id":{"type":["string","number","boolean","object","array","null"]},"question":{"type":["string","number","boolean","object","array","null"]},"description":{"type":["string","number","boolean","object","array","null"]},"seriesSlug":{"type":["string","number","boolean","object","array","null"]},"volume":{"type":["string","number","boolean","object","array","null"]},"liquidityClob":{"type":["string","number","boolean","object","array","null"]},"volumeClob":{"type":["string","number","boolean","object","array","null"]},"negRisk":{"type":["string","number","boolean","object","array","null"]},"competitive":{"type":["string","number","boolean","object","array","null"]},"updatedAt":{"type":["string","number","boolean","object","array","null"]},"gameId":{"type":["string","number","boolean","object","array","null"]},"live":{"type":["string","number","boolean","object","array","null"]},"ended":{"type":["string","number","boolean","object","array","null"]},"closed":{"type":["string","number","boolean","object","array","null"]},"active":{"type":["string","number","boolean","object","array","null"]},"endDate":{"type":["string","number","boolean","object","array","null"]},"topOutcomes":{"type":["string","number","boolean","object","array","null"]}},"additionalProperties":true},"Response_polymarket_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_polymarket_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}