# Polymarket — Get market by slug

Get a Polymarket market by slug 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/polymarket/polymarket-get-market-by-slug/d8f5c209-ec14-49fa-8e18-aab29d5ed9b7/
API ID: d8f5c209-ec14-49fa-8e18-aab29d5ed9b7
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-market-by-slug-f8868a38/{slug}
Page update time: 2026-12-03T02:49:24.407Z
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:23.950Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Market by Slug API

Pass the market slug in the path. The result is one market object; preserve id, conditionId and slug separately. include\_tag is an optional boolean for requesting tag inclusion, while the selected response fields describe the market question and context.

## What You Can Build

- **Market detail views**: Show the question, rules and source context.
- **Research joins**: Keep market IDs, slugs and condition IDs in separate fields.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `id` | Market identifier |
| `question` | Market question |
| `slug` | Market URL slug |
| `conditionId` | Condition identifier |
| `description` | Market rules and description |
| `liquidity` | Reported liquidity value when available |
| `resolutionSource` | Resolution-source reference |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get market by slug 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": {
        "slug": {
          "type": "string",
          "description": "slug"
        }
      },
      "required": [
        "slug"
      ]
    },
    "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-slug-f8868a38/will-benjamin-netanyahu-be-the-next-prime-minister-of-israel' \
  -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": "725670.3591",
  "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.

## Common questions
### Can I pass conditionId or an outcome-token ID instead?
This implementation expects the market slug. Keep condition and outcome-token identities separate.

### How do I request tags?
Set the optional boolean include_tag. Read any included tags from the returned object, or use the dedicated market-tags route.

### Does this return an executable order or order book?
No. It is a market-detail lookup. Use the relevant pricing or order-book interface for that data.

### Is the market question the same as an event title?
A market represents a specific question, while an event can group related markets. Preserve the appropriate resource identity.

### 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-by-slug/d8f5c209-ec14-49fa-8e18-aab29d5ed9b7/

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