OpenAny
Get API keyAPI Key
APICrypto & DeFi

polymarket logo
Polymarket Markets Keyset API

List Polymarket markets via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as closed, limit, and retrieve structured data including market identifier, market question, market URL slug, condition identifier, and reported outcome-label representation for market catalogs, and filtered research, ready for production pipelines and AI agent automation.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Polymarket Markets Keyset API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Polymarket Markets Keyset API

Polymarket Markets Keyset API

Read records from markets and continue by passing next_cursor as after_cursor. limit is 1–100; offset is prohibited. Preserve the exact filters and ordering when continuing. tag_id is an array on this route.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Optional limit (1–100), after_cursor, order/ascending and supported identity, tag, date, liquidity and volume filters.
Selected implementation polymarket · Polymarket — List markets (keyset pagination)
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Market catalogs: Display market questions with their identities.
  • Filtered research: Keep date and activity bounds attached to each result set.

Documented Response Fields

Field Meaning
markets[].id Market identifier
markets[].question Market question
markets[].slug Market URL slug
markets[].conditionId Condition identifier
markets[].outcomes Reported outcome-label representation
markets[].liquidity Reported liquidity context
next_cursor Opaque continuation cursor

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  "https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4" \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-urlencode closed=false \
  --data-urlencode limit=2

Request and Response Examples

The saved response is a published documentation example with abbreviated source content. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.

Published Polymarket Markets Keyset API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (30)
Maximum number of results to return (max 100)
Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num
Sort direction. Only used when order is set.
Opaque cursor token from a previous response's next_cursor
Not allowed. Returns 422 if provided.
id
slug
Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.
decimalized
clob_token_ids
condition_ids
question_ids
liquidity_num_min
liquidity_num_max
volume_num_min
volume_num_max
start_date_min
start_date_max
end_date_min
end_date_max
tag_id
related_tags
tag_match
cyom
rfq_enabled
uma_resolution_status
game_id
sports_market_types
When true, includes Tags relation on each market
locale

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
PolymarketCurrent
Polymarket — List markets (keyset pagination) · GET · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · PolymarketUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
limitURL query parametersqueryintegerNo

Maximum number of results to return (max 100)

minimum: 1 · maximum: 100

orderURL query parametersquerystringNo

Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num

ascendingURL query parametersquerybooleanNo

Sort direction. Only used when order is set.

after_cursorURL query parametersquerystringNo

Opaque cursor token from a previous response's next_cursor

offsetURL query parametersqueryintegerNo

Not allowed. Returns 422 if provided.

idURL query parametersqueryarrayNo

id

Nested fields and variants

query.id[] · Array item · integer

slugURL query parametersqueryarrayNo

slug

Nested fields and variants

query.slug[] · Array item · string

closedURL query parametersquerybooleanNo

Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.

decimalizedURL query parametersquerybooleanNo

decimalized

clob_token_idsURL query parametersqueryarrayNo

clob_token_ids

Nested fields and variants

query.clob_token_ids[] · Array item · string

condition_idsURL query parametersqueryarrayNo

condition_ids

Nested fields and variants

query.condition_ids[] · Array item · string

question_idsURL query parametersqueryarrayNo

question_ids

Nested fields and variants

query.question_ids[] · Array item · string

liquidity_num_minURL query parametersquerynumberNo

liquidity_num_min

liquidity_num_maxURL query parametersquerynumberNo

liquidity_num_max

volume_num_minURL query parametersquerynumberNo

volume_num_min

volume_num_maxURL query parametersquerynumberNo

volume_num_max

start_date_minURL query parametersquerystringNo

start_date_min

format: date-time

start_date_maxURL query parametersquerystringNo

start_date_max

format: date-time

end_date_minURL query parametersquerystringNo

end_date_min

format: date-time

end_date_maxURL query parametersquerystringNo

end_date_max

format: date-time

tag_idURL query parametersqueryarrayNo

tag_id

Nested fields and variants

query.tag_id[] · Array item · integer

related_tagsURL query parametersquerybooleanNo

related_tags

tag_matchURL query parametersquerystringNo

tag_match

cyomURL query parametersquerybooleanNo

cyom

rfq_enabledURL query parametersquerybooleanNo

rfq_enabled

uma_resolution_statusURL query parametersquerystringNo

uma_resolution_status

game_idURL query parametersquerystringNo

game_id

sports_market_typesURL query parametersqueryarrayNo

sports_market_types

Nested fields and variants

query.sports_market_types[] · Array item · string

include_tagURL query parametersquerybooleanNo

When true, includes Tags relation on each market

localeURL query parametersquerystringNo

locale

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • $schemastring
  • marketsobject[]
    • conditionIdstring
    • descriptionstring
    • endDatestring
    • iconstring
    • idstring
    • imagestring
    • liquiditystring
    • outcomesstring
    • questionstring
    • resolutionSourcestring
    • slugstring
    • startDatestring
  • next_cursorstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 30

    Review these request fields before running. Keep the published provider and request method unchanged.

    limit
    Maximum number of results to return (max 100)
    order
    Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num
    ascending
    Sort direction. Only used when order is set.
    after_cursor
    Opaque cursor token from a previous response's next_cursor
    offset
    Not allowed. Returns 422 if provided.
    id
    id
    slug
    slug
    closed
    Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.
    decimalized
    decimalized
    clob_token_ids
    clob_token_ids
    condition_ids
    condition_ids
    question_ids
    question_ids
    liquidity_num_min
    liquidity_num_min
    liquidity_num_max
    liquidity_num_max
    volume_num_min
    volume_num_min
    volume_num_max
    volume_num_max
    start_date_min
    start_date_min
    start_date_max
    start_date_max
    end_date_min
    end_date_min
    end_date_max
    end_date_max
    tag_id
    tag_id
    related_tags
    related_tags
    tag_match
    tag_match
    cyom
    cyom
    rfq_enabled
    rfq_enabled
    uma_resolution_status
    uma_resolution_status
    game_id
    game_id
    sports_market_types
    sports_market_types
    include_tag
    When true, includes Tags relation on each market
    locale
    locale
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4?closed=false&limit=2' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "$schema": "https://gamma-api.polymarket.com/schemas/MarketsKeysetListResponse.json",
      "markets": [
        {
          "conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
          "description": "This market will resolve to \"Yes\" if China's General Secretary of the Communist Party, Xi Jinping, is removed from power for any length of time between July 3, 2025, and December 31, 2026, 11:59 PM ET. Otherwise, this market will resolve to \"No\".\n\nCCP General Secretary Xi Jinping will be considered removed from power if he announces his resignation from his role as General Secretary, or is otherwise dismissed, detained, disqualified, or otherwise loses his position or is prevented from fulfilling his duties as General Secretary within this market's timeframe.\n\nThe primary resolution source for",
          "endDate": "2027-01-01T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/xi-jinping-out-in-2025-EjF4SM20eaa3.jpg",
          "id": "559651",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/xi-jinping-out-in-2025-EjF4SM20eaa3.jpg",
          "liquidity": "376789.27736",
          "outcomes": "[\"Yes\", \"No\"]",
          "question": "Xi Jinping out before 2027?",
          "resolutionSource": "",
          "slug": "xi-jinping-out-before-2027",
          "startDate": "2025-07-03T20:37:00.228Z"
        },
        {
          "conditionId": "0x0f49db97f71c68b1e42a6d16e3de93d85dbf7d4148e3f018eb79e88554be9f75",
          "description": "This market will resolve to “Yes” if the named individual wins and accepts the 2028 nomination of the Democratic Party for U.S. president. Otherwise, this market will resolve to “No”.\n\nThe resolution source for this market will be a consensus of official Democratic Party sources.\n\nAny replacement of the democratic nominee before election day will not change the resolution of the market.",
          "endDate": "2028-11-08T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-gavin-newsom-win-the-2028-us-presidential-election-x9lPL7_gXn--.png",
          "id": "559652",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-gavin-newsom-win-the-2028-us-presidential-election-x9lPL7_gXn--.png",
          "liquidity": "556617.52098",
          "outcomes": "[\"Yes\", \"No\"]",
          "question": "Will Gavin Newsom win the 2028 Democratic presidential nomination?",
          "resolutionSource": "",
          "slug": "will-gavin-newsom-win-the-2028-democratic-presidential-nomination-568",
          "startDate": "2025-07-11T18:35:56.805Z"
        }
      ],
      "next_cursor": "bjZlbp--Id8uILt2O_myoOvX-CNl-MzVGdWQ_udL8nt7InYiOjEsImsiOiJtYXJrZXRzIiwib2giOiI0ZjUzY2RhMThjMmJhYTBjMDM1NGJiNWY5YTNlY2JlNWVkMTJhYjRkOGUxMWJhODczYzJmMTExNjEyMDJiOTQ1Iiwia2V5cyI6W3sidCI6InN0cmluZyIsInYiOiI1NTk2NTIifV19"
    }

Common questions

Can I send offset on this route?

No. The keyset route rejects any supplied offset with 422. Use after_cursor.

How should I read outcomes?

The saved example encodes outcome labels as a JSON string. Inspect the returned type and parse a string representation deliberately rather than assuming an array.

Can I substitute a condition ID for a token ID?

Keep numeric market IDs, condition IDs, question IDs and outcome-token IDs in their separate filters.

Is tag_id scalar or an array?

It is an array on this keyset implementation.

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.

Use Polymarket Markets Keyset API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.