# Polymarket — Look up tokens

Get Polymarket Token Lookup data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as token_id, and retrieve structured data including outcome token identifier, opposite outcome token identifier, market condition identifier, event identifier, and outcome label for receipt enrichment, and outcome navigation, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-look-up-tokens/6e426eab-01f1-4228-be01-083f95a66a1e/
API ID: 6e426eab-01f1-4228-be01-083f95a66a1e
Provider: Polymarket
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/v2/tokens
Page update time: 2026-12-03T02:49:29.608Z
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
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:29.290Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Token Lookup API

Use required token\_id as a comma-separated string of at most 50 distinct decimal token IDs. The data array relates each returned token to a condition, event, outcome and module. Keep long identifiers as strings and allow final\_price to be null.

## What You Can Build

- **Receipt enrichment**: Connect token identifiers with market and outcome metadata.
- **Outcome navigation**: Retain opposite-token and event identities for linked views.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data[].token_id` | Outcome token identifier |
| `data[].opposite_token_id` | Opposite outcome token identifier |
| `data[].condition_id` | Market condition identifier |
| `data[].event_id` | Event identifier |
| `data[].outcome` | Outcome label |
| `data[].module` | Token module identifier |
| `data[].resolved` | Resolution flag |
| `data[].final_price` | Final price; the value can be null |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Look up tokens 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": {
        "token_id": {
          "type": "string",
          "description": "Token id(s), comma-separated (at most 50 distinct values): decimal\nERC-1155 ids as they appear on receipts and on the `token_id` and\n`asset` fields of the other routes. Elements are trimmed, leading zeros\nstripped and duplicates collapsed to their first position. `token_ids`\nis an accepted alias. Exactly one of `token_id` and `condition` is\nrequired. This execution profile requires an explicit non-null value. The original optional/nullable OpenAPI declarations remain in officialOperation."
        },
        "condition": {
          "type": [
            "string",
            "null"
          ],
          "description": "Condition selector(s), comma-separated (at most 10 distinct values),\neach `0x` followed by 62 or 64 hex digits: a ConditionalTokens\ncondition id (for a market carried over to polymarket-v2, its whole\nfamily), a neg-risk market id (every market of the structure), a\npolymarket-v2 condition id (that condition only), the 66-character\ncondition id of a native polymarket-v2 market, or the on-chain event\nid of a polymarket-v2 neg-risk structure (every question of it).\nElements are trimmed, lower-cased and duplicates collapsed to their\nfirst position. `condition_id` and `conditionId` are accepted aliases.\nExactly one of `token_id` and `condition` is required."
        }
      },
      "required": [
        "token_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "clob_index": {
            "type": "integer"
          },
          "closed": {
            "type": "boolean"
          },
          "condition_id": {
            "type": "string"
          },
          "event_id": {
            "type": "integer"
          },
          "event_slug": {
            "type": "string"
          },
          "final_price": {
            "type": "null"
          },
          "market_slug": {
            "type": "string"
          },
          "module": {
            "type": "string"
          },
          "neg_risk": {
            "type": "boolean"
          },
          "neg_risk_market_id": {
            "type": "string"
          },
          "opposite_token_id": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "outcome_index": {
            "type": "integer"
          },
          "question_index": {
            "type": "integer"
          },
          "resolved": {
            "type": "boolean"
          },
          "structural_condition_id": {
            "type": "null"
          },
          "title": {
            "type": "string"
          },
          "token_id": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/v2/tokens?token_id=20006732765674855733524007935991362439352594042415161039767275461950712817548' \
  -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
{
  "data": [
    {
      "clob_index": 0,
      "closed": false,
      "condition_id": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
      "event_id": 81557,
      "event_slug": "who-will-be-the-next-prime-minister-of-israel-after-the-next-election",
      "final_price": null,
      "market_slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
      "module": "v1_ctf",
      "neg_risk": true,
      "neg_risk_market_id": "0x03c9c6d9f7b20aaa1f33f99bd24bd16e4e0e00cfa892dde097b800655490b200",
      "opposite_token_id": "54533569528927082430133047556849600511985191158927477533124630301934489498530",
      "outcome": "Yes",
      "outcome_index": 0,
      "question_index": 0,
      "resolved": false,
      "structural_condition_id": null,
      "title": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
      "token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
    }
  ]
}
```

## 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
### Can I look up tokens using only condition?
This OpenAny implementation requires token_id. The source describes mutually exclusive token and condition modes, so use the token mode here and do not combine both selectors.

### What format does token_id use?
Supply up to 50 distinct decimal ERC-1155 identifiers as one comma-separated string. The contract describes trimming, stripping leading zeros and collapsing duplicates. Keep identifiers as strings in your application.

### Are token_id, condition_id and event_id the same?
No. They identify an outcome token, its market condition and an event respectively. Keep their roles when joining records.

### How should I interpret final_price=null?
Preserve null and inspect the resolved flag separately. Do not substitute a zero final price or infer settlement from a missing value.

### 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-look-up-tokens/6e426eab-01f1-4228-be01-083f95a66a1e/

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