{
"error": "internal_error",
"message": "Failed to fetch data."
}
Discovery
Polymarket Market Details API
Get detailed information about a specific market by ID or slug.
Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.
GET
/
v1
/
markets
/
{id_or_slug}
Get market details
curl --request GET \ --url https://api.polyorderbooks.com/v1/markets/{id_or_slug} \ --header 'X-API-Key: <api-key>'
Which archive this row belongs to: crypto or sports.
Available options:
crypto,
sports
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PolyOrderbooks","description":"Historical Polymarket order books, prices, and liquidity — discovery and time-series APIs for crypto and sports markets.","colors":{"primary":"#F0B429","light":"#FFD56A","dark":"#D99A09"},"logo":{"light":"https://mintcdn.com/poly-orderbooks/7BBXEWU5dBg13Vkp/logo/light.svg?fit=max\u0026auto=format\u0026n=7BBXEWU5dBg13Vkp\u0026q=85\u0026s=0894efdc72a9f2f23d99ff14a39c3230","dark":"https://mintcdn.com/poly-orderbooks/7BBXEWU5dBg13Vkp/logo/dark.svg?fit=max\u0026auto=format\u0026n=7BBXEWU5dBg13Vkp\u0026q=85\u0026s=6274da672034000dea59a3ecf92f6c3b","href":"https://polyorderbooks.com"},"favicon":"https://mintcdn.com/poly-orderbooks/7BBXEWU5dBg13Vkp/favicon.svg?fit=max\u0026auto=format\u0026n=7BBXEWU5dBg13Vkp\u0026q=85\u0026s=fdd002790375549f8a476567fe32f112","api":{"mdx":{"auth":{"method":"key","name":"X-API-Key"}}},"background":{"decoration":"grid","color":{"light":"#F8FAFC","dark":"#0C0F14"}},"navbar":{"links":[{"href":"https://pypi.org/project/polyorderbooks/","label":"Python SDK"},{"href":"https://github.com/polyorderbookslabs/python-examples","label":"Examples"},{"href":"https://polyorderbooks.com/pricing","label":"Pricing"},{"href":"https://polyorderbooks.com/dashboard","label":"Dashboard"}],"primary":{"type":"button","label":"Get your API key","href":"https://polyorderbooks.com/signup"}},"footer":{"socials":{"x":"https://x.com/polyorderbooks","github":"https://github.com/polyorderbookslabs"},"links":[{"header":"Get the data","items":[{"label":"Free BTC 5-min sample","href":"https://polyorderbooks.com/datasets/polymarket-btc-5min-orderbook-sample"},{"label":"All free datasets","href":"https://polyorderbooks.com/datasets"},{"label":"Zenodo DOI (CC BY 4.0)","href":"https://doi.org/10.5281/zenodo.22084114"},{"label":"Coverage and markets","href":"https://polyorderbooks.com/polymarket-crypto-data"}]},{"header":"Pricing","items":[{"label":"Plans","href":"https://polyorderbooks.com/pricing"},{"label":"Is the Polymarket API free?","href":"https://polyorderbooks.com/polymarket-api-pricing"},{"label":"Data windows","href":"https://polyorderbooks.com/polymarket-historical-data"},{"label":"Enterprise","href":"mailto:contact@polyorderbooks.com?subject=Enterprise%20inquiry"}]},{"header":"Build","items":[{"label":"Get an API key","href":"https://polyorderbooks.com/signup"},{"label":"Python SDK","href":"https://pypi.org/project/polyorderbooks"},{"label":"Python examples","href":"https://github.com/polyorderbookslabs/python-examples"},{"label":"MCP server","href":"https://polyorderbooks.com/polymarket-mcp-server"}]}]},"seo":{"metatags":{"og:site_name":"PolyOrderbooks","og:type":"website","og:locale":"en_US","og:image":"https://polyorderbooks.com/og.png","og:image:width":"1200","og:image:height":"630","og:image:alt":"PolyOrderbooks — historical Polymarket order book and market data API","twitter:card":"summary_large_image","twitter:site":"@polyorderbooks","twitter:image":"https://polyorderbooks.com/og.png","keywords":"Polymarket API, Polymarket historical data, Polymarket order book API, prediction market data, L2 order book history"},"indexing":"all"},"banner":{"content":"**Start free:** pull 250ms-captured L2 order books from the [BTC 5-min sample dataset](https://polyorderbooks.com/datasets/polymarket-btc-5min-orderbook-sample) — no signup. Live 250ms history starts at $19/mo on [pricing](https://polyorderbooks.com/pricing).","dismissible":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"poly-orderbooks","hasAudioNarration":false,"actualSubdomain":"poly-orderbooks","customDomains":["docs.polyorderbooks.com"],"gitSource":{"type":"github","owner":"polyorderbookslabs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ac1ebd0592b6df283a65d11","collectionId":"739824ff-a55e-4566-8d93-95815896ce19","liveDeploymentHistoryId":"6ac1ebd0592b6df283a65d11","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ac1ebd0592b6df283a65d11","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Historical","count":9},{"language":"default","tag":"Getting started","count":7},{"language":"default","tag":"Discovery","count":6},{"language":"default","tag":"Backtest AI","count":1},{"language":"default","tag":"Reference","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#topbar-cta-button a>span[class*=bg-primary]{background:#f0b429!important;border-radius:9999px!important}#topbar-cta-button a:hover>span[class*=bg-primary]{background:#d99a09!important;opacity:1!important}#topbar-cta-button a .text-white,#topbar-cta-button a svg{color:#1a1408!important}"}],"page":{"pagePath":"api-reference/discovery/get-market-details","slug":"/api-reference/discovery/get-market-details","pageMetadata":{"title":"Polymarket Market Details API","description":"Get detailed information about a specific market by ID or slug.\n\nReturns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}","href":"/api-reference/discovery/get-market-details","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Get detailed information about a specific market by ID or slug.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Polymarket Market Details API","description":"Get detailed information about a specific market by ID or slug.\n\nReturns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}","href":"/api-reference/discovery/get-market-details","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Discovery"],"summary":"Get market details","description":"Get detailed information about a specific market by ID or slug.\n\nReturns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.","operationId":"get_market_detail_v1_markets__id_or_slug__get","parameters":["a6361165-a072-4717-bdc7-42770609f41a","17e6f712-befe-4547-84cb-574f1432e3c6"],"responses":{"200":"6bfa5e98-d747-4f0a-a092-0a7532a74b74","401":"094d0fa5-48d0-45a9-ad2a-d056fb350eff","404":"3d48c2c3-10d7-44e7-8440-6325db96095a","422":"45fa3f80-fc22-4839-98c3-2ca43cbb0f42","429":"467f82e5-e4ef-4c49-ac2b-e3c91e965b5e","500":"8b105655-1b22-4c3b-b2e9-b37824db6191"},"x-mint":{"metadata":{"title":"Polymarket Market Details API"}},"method":"get","type":"path","servers":["0fbe4030-08bf-4862-99a3-dd9d4fdb25e4"],"security":[],"path":"/v1/markets/{id_or_slug}","baseUrlOptions":["https://api.polyorderbooks.com"],"title":"Get market details","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a6361165-a072-4717-bdc7-42770609f41a":{"name":"id_or_slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Market ID or market slug.","examples":["618831"],"title":"Id Or Slug","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Market ID or market slug."},"17e6f712-befe-4547-84cb-574f1432e3c6":{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["crypto","sports"],"description":"Restrict results to one category. Omit to search every category this deployment holds.","title":"Category","isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Restrict results to one category. Omit to search every category this deployment holds."}},"responses":{"6bfa5e98-d747-4f0a-a092-0a7532a74b74":{"description":"Detailed market object with tokens and resolution metadata.","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"Id","description":"Unique market identifier.","examples":["618831"],"uniqueKey":"id","typeLabel":"string"},"slug":{"type":"string","title":"Slug","description":"Stable URL-friendly market slug.","examples":["will-candidate-x-win-2025"],"uniqueKey":"slug","typeLabel":"string"},"question":{"oneOf":[{"type":"string","title":"Question","description":"Human-readable market question.","example":"Will Candidate X win the 2025 election?","uniqueKey":"question.oneOf.0","typeLabel":"string"},{"type":"null","title":"Question","description":"Human-readable market question.","example":"Will Candidate X win the 2025 election?","uniqueKey":"question.oneOf.1","typeLabel":"null"}],"uniqueKey":"question","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","title":"Description","description":"Long-form market description, if available.","example":"Resolves to YES if Candidate X wins the 2025 election.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","description":"Long-form market description, if available.","example":"Resolves to YES if Candidate X wins the 2025 election.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"status":{"type":"string","title":"Status","description":"Current market status.","examples":["open"],"uniqueKey":"status","typeLabel":"string"},"start_date":{"oneOf":[{"type":"string","title":"Start Date","description":"Market start timestamp in ISO 8601 format.","format":"date-time","example":"2025-09-01T00:00:00Z","uniqueKey":"start_date.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Start Date","description":"Market start timestamp in ISO 8601 format.","example":"2025-09-01T00:00:00Z","uniqueKey":"start_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"start_date","typeLabel":"string\u003cdate-time> | null"},"end_date":{"oneOf":[{"type":"string","title":"End Date","description":"Market end timestamp in ISO 8601 format.","format":"date-time","example":"2025-11-05T23:59:59Z","uniqueKey":"end_date.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"End Date","description":"Market end timestamp in ISO 8601 format.","example":"2025-11-05T23:59:59Z","uniqueKey":"end_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"end_date","typeLabel":"string\u003cdate-time> | null"},"closed_at":{"oneOf":[{"type":"string","title":"Closed At","description":"Timestamp when the market was closed.","format":"date-time","example":"2025-11-06T03:00:00Z","uniqueKey":"closed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Closed At","description":"Timestamp when the market was closed.","example":"2025-11-06T03:00:00Z","uniqueKey":"closed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"closed_at","typeLabel":"string\u003cdate-time> | null"},"resolved_token_id":{"oneOf":[{"type":"string","title":"Resolved Token Id","description":"Winning token identifier when market is resolved.","example":"12345","uniqueKey":"resolved_token_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Resolved Token Id","description":"Winning token identifier when market is resolved.","example":"12345","uniqueKey":"resolved_token_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolved_token_id","typeLabel":"string | null"},"resolved_token_label":{"oneOf":[{"type":"string","title":"Resolved Token Label","description":"Winning token label when market is resolved.","example":"Yes","uniqueKey":"resolved_token_label.oneOf.0","typeLabel":"string"},{"type":"null","title":"Resolved Token Label","description":"Winning token label when market is resolved.","example":"Yes","uniqueKey":"resolved_token_label.oneOf.1","typeLabel":"null"}],"uniqueKey":"resolved_token_label","typeLabel":"string | null"},"tokens":{"items":{"properties":{"id":{"type":"string","title":"Id","description":"Unique token identifier.","examples":["12345"],"uniqueKey":"tokens.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","title":"Label","description":"Human-readable token label shown to users.","examples":["Yes"],"uniqueKey":"tokens.items.[INDEX].label","typeLabel":"string"}},"type":"object","title":"TokenInfo","description":"Token metadata for a market.","uniqueKey":"tokens.items.[INDEX]","typeLabel":"TokenInfo · object"},"type":"array","title":"Tokens","description":"All tokens for the market.","uniqueKey":"tokens","typeLabel":"TokenInfo · object[]"},"category":{"type":"string","enum":["crypto","sports"],"title":"Category","description":"Which archive this row belongs to: `crypto` or `sports`.","uniqueKey":"category","typeLabel":"enum\u003cstring>"}},"type":"object","title":"MarketDetailResponse","description":"Detailed response for `GET /markets/{id_or_slug}`.","example":{"description":"Resolves to YES if Candidate X wins the 2025 election.","end_date":"2025-11-05T23:59:59Z","id":"618831","question":"Will Candidate X win the 2025 election?","slug":"will-candidate-x-win-2025","start_date":"2025-09-01T00:00:00Z","status":"open","category":"crypto","tokens":[{"id":"12345","label":"Yes"},{"id":"12346","label":"No"}]},"uniqueKey":"","typeLabel":"MarketDetailResponse · object"},"examples":{"Example":{"title":"Example","value":{"description":"Resolves to YES if Candidate X wins the 2025 election.","end_date":"2025-11-05T23:59:59Z","id":"618831","question":"Will Candidate X win the 2025 election?","slug":"will-candidate-x-win-2025","start_date":"2025-09-01T00:00:00Z","status":"open","category":"crypto","tokens":[{"id":"12345","label":"Yes"},{"id":"12346","label":"No"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"094d0fa5-48d0-45a9-ad2a-d056fb350eff":{"description":"API key is missing, invalid, or expired.","content":{"application/json":{"example":{"error":"unauthorized","message":"Invalid or expired API key."},"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Stable machine-readable code. Branch on this, not on `message`.","examples":["bad_request","unauthorized","forbidden","not_found","rate_limited"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation, usually naming the offending value.","examples":["Unsupported resolution '30s'. Allowed: 250ms, 1s, 60s, 1m, 5m, 10m, 15m, 1h, 6h, 1d"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"type":"object","title":"ErrorResponse","description":"Error envelope returned for every 4xx and 5xx response.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"unauthorized","message":"Invalid or expired API key."}}},"exampleType":"examples"}},"exampleType":"examples"},"3d48c2c3-10d7-44e7-8440-6325db96095a":{"description":"Market ID/slug does not exist.","content":{"application/json":{"example":{"error":"not_found","message":"Market not found: nonexistent_market_id"},"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Stable machine-readable code. Branch on this, not on `message`.","examples":["bad_request","unauthorized","forbidden","not_found","rate_limited"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation, usually naming the offending value.","examples":["Unsupported resolution '30s'. Allowed: 250ms, 1s, 60s, 1m, 5m, 10m, 15m, 1h, 6h, 1d"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"type":"object","title":"ErrorResponse","description":"Error envelope returned for every 4xx and 5xx response.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","message":"Market not found: nonexistent_market_id"}}},"exampleType":"examples"}},"exampleType":"examples"},"45fa3f80-fc22-4839-98c3-2ca43cbb0f42":{"description":"Validation error for one or more request parameters.","content":{"application/json":{"example":{"detail":[{"loc":["query","limit"],"msg":"Input should be less than or equal to 1000","type":"less_than_equal"}]},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["query","limit"],"msg":"Input should be less than or equal to 1000","type":"less_than_equal"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"467f82e5-e4ef-4c49-ac2b-e3c91e965b5e":{"description":"Rate limit exceeded for the current API key.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Stable machine-readable code. Branch on this, not on `message`.","examples":["bad_request","unauthorized","forbidden","not_found","rate_limited"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation, usually naming the offending value.","examples":["Unsupported resolution '30s'. Allowed: 250ms, 1s, 60s, 1m, 5m, 10m, 15m, 1h, 6h, 1d"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"type":"object","title":"ErrorResponse","description":"Error envelope returned for every 4xx and 5xx response.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"example":{"error":"rate_limited","message":"Rate limit exceeded. Please try again later."},"examples":{"Example":{"title":"Example","value":{"error":"rate_limited","message":"Rate limit exceeded. Please try again later."}}},"exampleType":"examples"}},"exampleType":"examples"},"8b105655-1b22-4c3b-b2e9-b37824db6191":{"description":"Unexpected server-side error.","content":{"application/json":{"example":{"error":"internal_error","message":"Failed to fetch data."},"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Stable machine-readable code. Branch on this, not on `message`.","examples":["bad_request","unauthorized","forbidden","not_found","rate_limited"],"isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation, usually naming the offending value.","examples":["Unsupported resolution '30s'. Allowed: 250ms, 1s, 60s, 1m, 5m, 10m, 15m, 1h, 6h, 1d"],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"type":"object","title":"ErrorResponse","description":"Error envelope returned for every 4xx and 5xx response.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"internal_error","message":"Failed to fetch data."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"74a03abb-8c6e-49f1-a995-b3c588ec104f":{"Key":{"name":"X-API-Key","type":"apiKey","in":"header"}}},"servers":{"0fbe4030-08bf-4862-99a3-dd9d4fdb25e4":{"url":"https://api.polyorderbooks.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"X-API-Key","type":"apiKey","in":"header"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"Key","name":"X-API-Key"}],"title":"Key"}]},"originalFileLocation":"openapi.json"},"subdomain":"poly-orderbooks","siteName":"PolyOrderbooks","title":"Polymarket Market Details API - PolyOrderbooks","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T17:59:14.138Z","originalFileLocation":"api-reference/discovery/get-market-details.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get detailed information about a specific market by ID or slug. Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Polymarket API, Polymarket historical data, Polymarket order book API, prediction market data, L2 order book history\">\u003cmeta data-mint-head name=\"application-name\" content=\"PolyOrderbooks\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Polymarket Market Details API - PolyOrderbooks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get detailed information about a specific market by ID or slug. Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PolyOrderbooks\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://polyorderbooks.com/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Polymarket Market Details API - PolyOrderbooks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get detailed information about a specific market by ID or slug. Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://polyorderbooks.com/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/poly-orderbooks/RjSQhR206oCVU6b8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PolyOrderbooks\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F0B429\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"PolyOrderbooks — historical Polymarket order book and market data API\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/discovery/get-market-details.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.polyorderbooks.com/#organization\",\"name\":\"PolyOrderbooks\",\"url\":\"https://docs.polyorderbooks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/poly-orderbooks/7BBXEWU5dBg13Vkp/logo/light.svg?fit=max\u0026auto=format\u0026n=7BBXEWU5dBg13Vkp\u0026q=85\u0026s=0894efdc72a9f2f23d99ff14a39c3230\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.polyorderbooks.com#website\",\"name\":\"PolyOrderbooks\",\"url\":\"https://docs.polyorderbooks.com\",\"publisher\":{\"@id\":\"https://docs.polyorderbooks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details#webpage\",\"url\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details\",\"name\":\"Polymarket Market Details API\",\"description\":\"Get detailed information about a specific market by ID or slug. Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\",\"dateModified\":\"2026-10-02T17:59:14.138Z\",\"isPartOf\":{\"@id\":\"https://docs.polyorderbooks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Discovery\",\"item\":\"https://docs.polyorderbooks.com/discovery/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Polymarket Market Details API\",\"item\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details#apireference\",\"headline\":\"Polymarket Market Details API\",\"name\":\"Polymarket Market Details API\",\"description\":\"Get detailed information about a specific market by ID or slug. Returns full market information, including tokens, description, and resolution status. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.\",\"url\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details\",\"mainEntityOfPage\":{\"@id\":\"https://docs.polyorderbooks.com/api-reference/discovery/get-market-details#webpage\"},\"image\":\"https://polyorderbooks.com/og.png\",\"dateModified\":\"2026-10-02T17:59:14.138Z\",\"publisher\":{\"@id\":\"https://docs.polyorderbooks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.polyorderbooks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PolyOrderbooks\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PolyOrderbooks","nav":{"global":null,"groups":[{"group":"Getting started","pages":[{"title":"Polymarket API Documentation","sidebarTitle":"Overview","mode":"wide","href":"/index"},{"title":"Polymarket Python API Quickstart","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Polymarket MCP Server — Historical L2 Order Books","sidebarTitle":"MCP server","href":"/integrations/mcp"},{"title":"PolyOrderbooks for AI Agents","sidebarTitle":"AI agents","href":"/integrations/ai-agents"},{"title":"Polymarket API Authentication \u0026 API Keys","sidebarTitle":"Authentication","href":"/authentication"},{"title":"Polymarket API Plan Limits \u0026 Quotas","sidebarTitle":"Pricing \u0026 plans","href":"/pricing"},{"title":"Polymarket API Rate Limits","sidebarTitle":"Rate limits","href":"/rate-limits"},{"title":"Polymarket API Error Handling","sidebarTitle":"Error handling","href":"/error-handling"}]},{"group":"Discovery","pages":[{"title":"Polymarket Markets API — Search \u0026 Discovery","sidebarTitle":"Discovery overview","href":"/discovery/overview"},{"title":"Polymarket Series API — List Series","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/series","href":"/api-reference/discovery/list-series"},{"title":"Polymarket Events API — List Events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/events","href":"/api-reference/discovery/list-events"},{"title":"Polymarket Markets API — List Markets","description":"List bettable contracts/markets (e.g., \"Winner\", \"Total Points Over/Under\").\n\nSupports filtering by date ranges, text search, tags, and pagination.\nResults are sorted by the selected field (default: `updated_at desc`).\n\n**Pagination:** Use the `next_cursor` value from the response to fetch the next page. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets","href":"/api-reference/discovery/list-markets"},{"title":"Polymarket Market Details API","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}","href":"/api-reference/discovery/get-market-details"},{"title":"Polymarket Market Tags API","description":"List all unique event tags available for discovery filtering.\n\nTags are normalized to lowercase and sorted alphabetically.\nUse the returned tags with the `tags` parameter on series, events, and markets endpoints. Covers Polymarket crypto and sports markets from the PolyOrderbooks historical archive.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tags","href":"/api-reference/discovery/list-available-tags"}]},{"group":"Historical","pages":[{"title":"Polymarket Historical Data API — Prices, Metrics \u0026 L2 Order Books","sidebarTitle":"Historical overview","href":"/historical/overview"},{"title":"Polymarket API Pagination","sidebarTitle":"Pagination","href":"/historical/pagination"},{"title":"Polymarket Historical Data Resolutions","sidebarTitle":"Resolutions","href":"/historical/resolutions"},{"title":"Working with Polymarket L2 Order Book Data","sidebarTitle":"Working with order books","href":"/historical/order-books"},{"title":"Polymarket Market Price History API — All Tokens in One Market","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}/prices","href":"/api-reference/history/get-price-history-for-every-token-in-a-market"},{"title":"Polymarket Liquidity \u0026 Volume Metrics API","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}/metrics","href":"/api-reference/history/get-market-metrics-history"},{"title":"Polymarket Order Book API — L2 History","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{id_or_slug}/books","href":"/api-reference/history/get-market-order-book-history"},{"title":"Polymarket Single Token Price History API — By Token ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tokens/{token_id}/prices","href":"/api-reference/history/get-price-history-for-one-token-by-clob-token-id"},{"title":"Polymarket Token Order Book API — L2 History","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tokens/{token_id}/books","href":"/api-reference/history/get-token-order-book-history"}]},{"group":"Backtest AI","pages":[{"title":"Backtest AI","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ai/backtest","href":"/api-reference/backtest-ai/backtest-ai"}]},{"group":"Reference","pages":[{"title":"Polymarket API Usage \u0026 Quota","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage","href":"/api-reference/utility/get-usage-information"}]}]},"basePath":"","title":"Polymarket Market Details API - PolyOrderbooks","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-CX_qQQOL.js","dist-BTZUMDnx.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-xpJZXxdP.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","AssistantPageLink-DqdKa2R4.js"]}