# Polymarket — Get market by id

Get a Polymarket market by numeric ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as Set, and retrieve structured data including market identifier, market question, market URL slug, condition identifier, and market rules and description for market detail views, and research joins.

Documentation: https://openany.si/market/apis/polymarket/polymarket-get-market-by-id/?offering=d924da90-c6b2-4a83-acde-46e4c2687f56
API ID: d924da90-c6b2-4a83-acde-46e4c2687f56
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-market-by-id-8bc925ee/{id}
Page update time: 2026-12-03T02:49:24.397Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:23.919Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get market by id request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "id"
        }
      },
      "required": [
        "id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "include_tag": {
          "type": "boolean",
          "description": "include_tag"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "conditionId": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "endDate": {
      "type": "string"
    },
    "icon": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "liquidity": {
      "type": "string"
    },
    "question": {
      "type": "string"
    },
    "resolutionSource": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "startDate": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-market-by-id-8bc925ee/682705' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "$schema": "https://gamma-api.polymarket.com/schemas/Market.json",
  "conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
  "description": "Legislative elections are schedule to be held in Israel on October 27, 2026. \n\nThis market will resolve to the next individual who is officially appointed and sworn in as Prime Minister of Israel following the 2026 parliamentary election. If an election is called early, this market will immediately resolve to the individual who is officially appointed and sworn in after that election.\n\nTo count for resolution, the individual must be formally sworn in. Any interim or caretaker Prime Minister will not count toward the resolution of this market.\n\nIf no such Prime Minister is sworn in by December ",
  "endDate": "2026-10-28T03:59:00Z",
  "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
  "id": "682705",
  "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
  "liquidity": "641697.8211",
  "question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
  "resolutionSource": "",
  "slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
  "startDate": "2025-11-15T00:27:02.243822Z"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- Polymarket: https://openany.si/market/apis/polymarket/polymarket-get-market-by-id/?offering=d924da90-c6b2-4a83-acde-46e4c2687f56

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
