AgentAPIGate
Back to Catalog
GET /v1/prediction/polymarket/market_detailPack: finance·MCP Tool: prediction_polymarket_market_detail

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.

API Key Price:$0.0015 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Polymarket market slug, numeric market ID, or "latest_active" to inspect the #1 highest-volume active market
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-95% tokens
# 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
ParameterTypeReqSample / DefaultDescription
slug_or_idstringrequiredlatest_activePolymarket market slug, numeric market ID, or "latest_active" to inspect the #1 highest-volume active market
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0015 / call$0/mo · Balance never expires
Remote MCP Toolprediction_polymarket_market_detailOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency115 ms$0 billed on empty or 4xx/5xx
Token Economy1746t → 104t (-95%)Partner credit: eligible

More prediction.polymarket Sibling Endpoints

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.