# Polymarket — Get market prices (request body)

Get Polymarket Batch Side Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, configure supported query parameters and filters, and retrieve structured data including structured JSON records, identifiers, and response metadata for quote matrices, and multi-outcome comparisons, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-get-market-prices-request-body/391bac47-eef9-4064-b25d-634c2517efe9/
API ID: 391bac47-eef9-4064-b25d-634c2517efe9
Provider: Polymarket
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/prices
Page update time: 2026-12-03T02:49:27.672Z
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: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:26.969Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Batch Side Prices API

POST a root JSON array of objects with required token\_id strings. side is optional in this selected body schema; when supplied it must be BUY or SELL. Set the intended side explicitly for side-specific reads. The response is keyed by token ID and then by returned side.

## What You Can Build

- **Quote matrices**: Associate returned prices with token and side.
- **Multi-outcome comparisons**: Keep missing map entries distinct from zero prices.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `<token_id>` | Price map for an outcome token |
| `<token_id>.BUY` | Reported BUY price when returned |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get market prices (request body) 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": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "Get market prices (request body) — complete native JSON request body.",
      "examples": [
        [
          {
            "side": "BUY",
            "token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
          }
        ]
      ],
      "items": {
        "properties": {
          "side": {
            "description": "Order side (optional, not used for midpoint calculation)",
            "enum": [
              "BUY",
              "SELL"
            ],
            "example": "BUY",
            "type": "string"
          },
          "token_id": {
            "description": "Token ID (asset ID)",
            "example": "0xabc123def456...",
            "type": "string"
          }
        },
        "required": [
          "token_id"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "20006732765674855733524007935991362439352594042415161039767275461950712817548": {
      "type": "object",
      "properties": {
        "BUY": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/prices' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "side": "BUY",
    "token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
  }
]'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "20006732765674855733524007935991362439352594042415161039767275461950712817548": {
    "BUY": "0.45"
  }
}
```

## 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.

## Common questions
### Is the response an array in request order?
No. It is a map keyed by token ID and then by side. Join results using those keys.

### Which side values are accepted?
Use uppercase BUY or SELL when including side in a request item.

### Can I send a numeric token ID?
token_id is a string, including when its decimal representation is very long.

### Will every token contain both BUY and SELL?
Read the side keys actually returned. Do not assume both sides are present for every requested token.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-get-market-prices-request-body/391bac47-eef9-4064-b25d-634c2517efe9/

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