Polymarket Contract Full Detail
Retrieve full Polymarket contract odds, CLOB token IDs, bid/ask spread, 24h & total volume, liquidity, resolution rules, and timestamps by slug or ID.
curl -sG "https://api.agentapigate.ai/v1/prediction/polymarket/market_detail" \ --data-urlencode "slug_or_id=latest_active" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Polymarket Contract Full Detail (`prediction.polymarket.market_detail`) **found**: true · **id**: 2695678 · **slug**: will-pedro-sanchez-be-the-next-prime-minister-of-spain-20260625005710096 · **question**: Will Pedro Sánchez be the next Prime Minister of Spain? · **volume_total**: 4441557.548157 · **liquidity**: 290497.66985 ## outcomes - [1] Yes - [2] No ## outcome_prices - [1] 0.0045 - [2] 0.9955
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:prediction.polymarket.market_detail · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| slug_or_id | string | required | latest_active | Polymarket market slug, numeric market ID, or "latest_active" to inspect the #1 highest-volume active market |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | prediction_polymarket_market_detail | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 115 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1746t → 104t (-95%) | Partner credit: eligible |
More prediction.polymarket Sibling Endpoints
List and search active Polymarket event contracts ranked by 24h USD volume with outcome prices, implied probabilities, liquidity, and resolution dates.
Fetch ranked Polymarket traders by realized PnL or volume across DAY, WEEK, MONTH, or ALL windows.
Retrieve historical probability price ticks from Polymarket CLOB by clob_token_id, market slug, or "latest_active".
Frequently Asked Questions
How do I call Polymarket Contract Full Detail (prediction.polymarket.market_detail) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/prediction/polymarket/market_detail with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool prediction_polymarket_market_detail on https://mcp.agentapigate.ai/mcp.
What does prediction.polymarket.market_detail cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on prediction.polymarket.market_detail?
Passing ?format=md transforms the response into normalized Markdown (~104 tokens vs ~1746 raw tokens, saving 95% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only finance endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["prediction.polymarket.market_detail"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.