APICrypto & DeFi

Polymarket — List events (keyset pagination)

Retrieve events using cursor-based (keyset) pagination for stable, efficient paging through large result sets with the Polymarket API. The sample response includes titles. Request fields include next-page cursor (after_cursor), result limit (limit), result offset (offset). Use it for on-chain or crypto market research. The GET request schema also lists order, ascending. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Polymarket — List events (keyset pagination)

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Playground

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

Request parameters
Optional parameters (41)
Maximum number of results to return (max 100)
Comma-separated list of JSON field names to order by
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 includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422. Import profile accepts the boolean branch only; other union branches are not exposed.
live
featured
cyom
title_search
liquidity_min
liquidity_max
volume_min
volume_max
start_date_min
start_date_max
end_date_min
end_date_max
start_time_min
start_time_max
tag_id
tag_slug
Tag IDs to exclude. Cannot overlap with tag_id.
related_tags
tag_match
series_id
game_id
event_date
event_week
featured_order
recurrence
created_by
parent_event_id
include_children
When set, external_partners are attached to matching events
When true, includes Chats and Series.Chats relations
When true, includes Templates relation
When true, includes BestLines relation
locale

Sample response

"$schema": "https://gamma-api.polymarket.com/schemas/EventsKeysetListResponse.json"
events [2]
[0] {}
"active": true
"creationDate": "2024-12-31T19:05:45.901361Z"
descriptionString · text preview
events[0].description
This market will resolve to "Yes" if Kraken (US-based cryptocurrency exchange) completes an Initial Public Offering (IPO) by December 31, 2025, 11:59 PM ET, as confirmed by official company announcements or credible news sources. The IPO refers to the first sale of stock by Kraken to the public on any recognized stock exchange.

If Kraken merges with another entity, is acquired, or ceases to exist before the market resolves, the market will also resolve to "No".

This market will resolve early if Kraken completes an IPO by December 31, 2025, 11:59 PM ET.

The resolution source for this market 
"endDate": "2028-01-01T04:59:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg"
"id": "16183"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg"
"resolutionSource": ""
"slug": "kraken-ipo-in-2025"
"startDate": "2024-12-31T19:05:45.901363Z"
"ticker": "kraken-ipo-in-2025"
"title": "Kraken IPO by ___ ?"
[1] {}
"active": true
"creationDate": "2025-01-03T19:35:04.095064Z"
descriptionString · text preview
events[1].description
This market will resolve to "Yes" if Emmanuel Macron ceases to be President of France for any length of time between January 2 and December 31, 2025, 11:59 PM ET (inclusive). Otherwise, this market will resolve to "No".

If Macron departs from office before the expiry date, the market should resolve immediately.

The primary resolution source for this market will be information from the government of France, however a consensus of credible reporting will also be used.
"endDate": "2027-01-01T04:59:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg"
"id": "16263"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg"
"resolutionSource": ""
"slug": "macron-out-in-2025"
"startDate": "2025-01-03T19:35:04.095066Z"
"ticker": "macron-out-in-2025"
"title": "Macron out by...?"
"next_cursor": "0d4LIEDhFKhyUMngKj_M_BNmjH7Ab0CJV7KSPSbHdqd7InYiOjEsImsiOiJldmVudHMiLCJvaCI6IjRmNTNjZGExOGMyYmFhMGMwMzU0YmI1ZjlhM2VjYmU1ZWQxMmFiNGQ4ZTExYmE4NzNjMmYxMTE2MTIwMmI5NDUiLCJrZXlzIjpbeyJ0Ijoic3RyaW5nIiwidiI6IjE2MjYzIn1dfQ"

Response result

Response structure

Inferred from examples
  • $schemastring
  • eventsobject[]
    • activeboolean
    • creationDatestring
    • descriptionstring
    • endDatestring
    • iconstring
    • idstring
    • imagestring
    • resolutionSourcestring
    • slugstring
    • startDatestring
    • tickerstring
    • titlestring
  • next_cursorstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
PolymarketCurrent
Polymarket — List events (keyset pagination) · GET · View API reference
$0 / call—
—successP50—
Loading...
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: 3. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a?closed=false&limit=2' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

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

ParameterLocationTypeRequiredDescription
limitURL query parametersqueryintegerNoMaximum number of results to return (max 100)

minimum: 1 · maximum: 100

orderURL query parametersquerystringNoComma-separated list of JSON field names to order by
ascendingURL query parametersquerybooleanNoSort direction. Only used when order is set.
after_cursorURL query parametersquerystringNoOpaque cursor token from a previous response's next_cursor
offsetURL query parametersqueryintegerNoNot allowed. Returns 422 if provided.
idURL query parametersqueryarrayNoid
Nested fields and variants

query.id[] · Array item · integer

slugURL query parametersqueryarrayNoslug
Nested fields and variants

query.slug[] · Array item · string

closedURL query parametersquerybooleanNoFilter by closed state. Omitted includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422. Import profile accepts the boolean branch only; other union branches are not exposed.
liveURL query parametersquerybooleanNolive
featuredURL query parametersquerybooleanNofeatured
cyomURL query parametersquerybooleanNocyom
title_searchURL query parametersquerystringNotitle_search
liquidity_minURL query parametersquerynumberNoliquidity_min
liquidity_maxURL query parametersquerynumberNoliquidity_max
volume_minURL query parametersquerynumberNovolume_min
volume_maxURL query parametersquerynumberNovolume_max
start_date_minURL query parametersquerystringNostart_date_min

format: date-time

start_date_maxURL query parametersquerystringNostart_date_max

format: date-time

end_date_minURL query parametersquerystringNoend_date_min

format: date-time

end_date_maxURL query parametersquerystringNoend_date_max

format: date-time

start_time_minURL query parametersquerystringNostart_time_min

format: date-time

start_time_maxURL query parametersquerystringNostart_time_max

format: date-time

tag_idURL query parametersqueryarrayNotag_id
Nested fields and variants

query.tag_id[] · Array item · integer

tag_slugURL query parametersquerystringNotag_slug
exclude_tag_idURL query parametersqueryarrayNoTag IDs to exclude. Cannot overlap with tag_id.
Nested fields and variants

query.exclude_tag_id[] · Array item · integer

related_tagsURL query parametersquerybooleanNorelated_tags
tag_matchURL query parametersquerystringNotag_match
series_idURL query parametersqueryarrayNoseries_id
Nested fields and variants

query.series_id[] · Array item · integer

game_idURL query parametersqueryarrayNogame_id
Nested fields and variants

query.game_id[] · Array item · integer

event_dateURL query parametersquerystringNoevent_date

format: date-time

event_weekURL query parametersqueryintegerNoevent_week
featured_orderURL query parametersquerybooleanNofeatured_order
recurrenceURL query parametersquerystringNorecurrence
created_byURL query parametersqueryarrayNocreated_by
Nested fields and variants

query.created_by[] · Array item · string

parent_event_idURL query parametersqueryintegerNoparent_event_id
include_childrenURL query parametersquerybooleanNoinclude_children
partner_slugURL query parametersquerystringNoWhen set, external_partners are attached to matching events
include_chatURL query parametersquerybooleanNoWhen true, includes Chats and Series.Chats relations
include_templateURL query parametersquerybooleanNoWhen true, includes Templates relation
include_best_linesURL query parametersquerybooleanNoWhen true, includes BestLines relation
localeURL query parametersquerystringNolocale

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

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Documentation example (source abbreviated)
{
  "$schema": "https://gamma-api.polymarket.com/schemas/EventsKeysetListResponse.json",
  "events": [
    {
      "active": true,
      "creationDate": "2024-12-31T19:05:45.901361Z",
      "description": "This market will resolve to \"Yes\" if Kraken (US-based cryptocurrency exchange) completes an Initial Public Offering (IPO) by December 31, 2025, 11:59 PM ET, as confirmed by official company announcements or credible news sources. The IPO refers to the first sale of stock by Kraken to the public on any recognized stock exchange.\n\nIf Kraken merges with another entity, is acquired, or ceases to exist before the market resolves, the market will also resolve to \"No\".\n\nThis market will resolve early if Kraken completes an IPO by December 31, 2025, 11:59 PM ET.\n\nThe resolution source for this market ",
      "endDate": "2028-01-01T04:59:00Z",
      "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
      "id": "16183",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
      "resolutionSource": "",
      "slug": "kraken-ipo-in-2025",
      "startDate": "2024-12-31T19:05:45.901363Z",
      "ticker": "kraken-ipo-in-2025",
      "title": "Kraken IPO by ___ ?"
    },
    {
      "active": true,
      "creationDate": "2025-01-03T19:35:04.095064Z",
      "description": "This market will resolve to \"Yes\" if Emmanuel Macron ceases to be President of France for any length of time between January 2 and December 31, 2025, 11:59 PM ET (inclusive). Otherwise, this market will resolve to \"No\".\n\nIf Macron departs from office before the expiry date, the market should resolve immediately.\n\nThe primary resolution source for this market will be information from the government of France, however a consensus of credible reporting will also be used.",
      "endDate": "2027-01-01T04:59:00Z",
      "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
      "id": "16263",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
      "resolutionSource": "",
      "slug": "macron-out-in-2025",
      "startDate": "2025-01-03T19:35:04.095066Z",
      "ticker": "macron-out-in-2025",
      "title": "Macron out by...?"
    }
  ],
  "next_cursor": "0d4LIEDhFKhyUMngKj_M_BNmjH7Ab0CJV7KSPSbHdqd7InYiOjEsImsiOiJldmVudHMiLCJvaCI6IjRmNTNjZGExOGMyYmFhMGMwMzU0YmI1ZjlhM2VjYmU1ZWQxMmFiNGQ4ZTExYmE4NzNjMmYxMTE2MTIwMmI5NDUiLCJrZXlzIjpbeyJ0Ijoic3RyaW5nIiwidiI6IjE2MjYzIn1dfQ"
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Polymarket — List events (keyset pagination)

Retrieve events using cursor-based (keyset) pagination for stable, efficient paging through large result sets with the Polymarket API. The sample response includes titles. Request fields include next-page cursor (after_cursor), result limit (limit), result offset (offset). Use it for on-chain or crypto market research. The GET request schema also lists order, ascending. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — List events (keyset pagination): https://openany.si/markets/apis/capabilities/polymarket-list-events-keyset-pagination?offering=d505cb4e-c3c3-4db9-8bd8-1d03f2727bba · $0 / call

## Selected API contract
Documentation: https://openany.si/apis/d505cb4e-c3c3-4db9-8bd8-1d03f2727bba
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a
Price: $0 / call
Provider: Polymarket
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a?closed=false&limit=2' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Polymarket — List events (keyset pagination)",
  "endpoint": "https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Maximum number of results to return (max 100)",
      "location": "query",
      "maximum": "100",
      "minimum": "1",
      "name": "limit",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Comma-separated list of JSON field names to order by",
      "location": "query",
      "name": "order",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Sort direction. Only used when order is set.",
      "location": "query",
      "name": "ascending",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Opaque cursor token from a previous response's next_cursor",
      "location": "query",
      "name": "after_cursor",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Not allowed. Returns 422 if provided.",
      "location": "query",
      "name": "offset",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "id",
      "item_type": "integer",
      "location": "query",
      "name": "id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "slug",
      "item_type": "string",
      "location": "query",
      "name": "slug",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "Filter by closed state. Omitted includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422. Import profile accepts the boolean branch only; other union branches are not exposed.",
      "location": "query",
      "name": "closed",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "live",
      "location": "query",
      "name": "live",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "featured",
      "location": "query",
      "name": "featured",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "cyom",
      "location": "query",
      "name": "cyom",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "title_search",
      "location": "query",
      "name": "title_search",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "liquidity_min",
      "location": "query",
      "name": "liquidity_min",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "liquidity_max",
      "location": "query",
      "name": "liquidity_max",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "volume_min",
      "location": "query",
      "name": "volume_min",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "volume_max",
      "location": "query",
      "name": "volume_max",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "start_date_min",
      "format": "date-time",
      "location": "query",
      "name": "start_date_min",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "start_date_max",
      "format": "date-time",
      "location": "query",
      "name": "start_date_max",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "end_date_min",
      "format": "date-time",
      "location": "query",
      "name": "end_date_min",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "end_date_max",
      "format": "date-time",
      "location": "query",
      "name": "end_date_max",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "start_time_min",
      "format": "date-time",
      "location": "query",
      "name": "start_time_min",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "start_time_max",
      "format": "date-time",
      "location": "query",
      "name": "start_time_max",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "tag_id",
      "item_type": "integer",
      "location": "query",
      "name": "tag_id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "tag_slug",
      "location": "query",
      "name": "tag_slug",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Tag IDs to exclude. Cannot overlap with tag_id.",
      "item_type": "integer",
      "location": "query",
      "name": "exclude_tag_id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "related_tags",
      "location": "query",
      "name": "related_tags",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "tag_match",
      "location": "query",
      "name": "tag_match",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "series_id",
      "item_type": "integer",
      "location": "query",
      "name": "series_id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "game_id",
      "item_type": "integer",
      "location": "query",
      "name": "game_id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "event_date",
      "format": "date-time",
      "location": "query",
      "name": "event_date",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "event_week",
      "location": "query",
      "name": "event_week",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "featured_order",
      "location": "query",
      "name": "featured_order",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "recurrence",
      "location": "query",
      "name": "recurrence",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "created_by",
      "item_type": "string",
      "location": "query",
      "name": "created_by",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "parent_event_id",
      "location": "query",
      "name": "parent_event_id",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "include_children",
      "location": "query",
      "name": "include_children",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "When set, external_partners are attached to matching events",
      "location": "query",
      "name": "partner_slug",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "When true, includes Chats and Series.Chats relations",
      "location": "query",
      "name": "include_chat",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "When true, includes Templates relation",
      "location": "query",
      "name": "include_template",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "When true, includes BestLines relation",
      "location": "query",
      "name": "include_best_lines",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "locale",
      "location": "query",
      "name": "locale",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "0",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Documentation example (source abbreviated)",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "closed": false,
          "limit": 2
        }
      },
      "response_body": {
        "$schema": "https://gamma-api.polymarket.com/schemas/EventsKeysetListResponse.json",
        "events": [
          {
            "active": true,
            "creationDate": "2024-12-31T19:05:45.901361Z",
            "description": "This market will resolve to \"Yes\" if Kraken (US-based cryptocurrency exchange) completes an Initial Public Offering (IPO) by December 31, 2025, 11:59 PM ET, as confirmed by official company announcements or credible news sources. The IPO refers to the first sale of stock by Kraken to the public on any recognized stock exchange.\n\nIf Kraken merges with another entity, is acquired, or ceases to exist before the market resolves, the market will also resolve to \"No\".\n\nThis market will resolve early if Kraken completes an IPO by December 31, 2025, 11:59 PM ET.\n\nThe resolution source for this market ",
            "endDate": "2028-01-01T04:59:00Z",
            "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
            "id": "16183",
            "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
            "resolutionSource": "",
            "slug": "kraken-ipo-in-2025",
            "startDate": "2024-12-31T19:05:45.901363Z",
            "ticker": "kraken-ipo-in-2025",
            "title": "Kraken IPO by ___ ?"
          },
          {
            "active": true,
            "creationDate": "2025-01-03T19:35:04.095064Z",
            "description": "This market will resolve to \"Yes\" if Emmanuel Macron ceases to be President of France for any length of time between January 2 and December 31, 2025, 11:59 PM ET (inclusive). Otherwise, this market will resolve to \"No\".\n\nIf Macron departs from office before the expiry date, the market should resolve immediately.\n\nThe primary resolution source for this market will be information from the government of France, however a consensus of credible reporting will also be used.",
            "endDate": "2027-01-01T04:59:00Z",
            "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
            "id": "16263",
            "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
            "resolutionSource": "",
            "slug": "macron-out-in-2025",
            "startDate": "2025-01-03T19:35:04.095066Z",
            "ticker": "macron-out-in-2025",
            "title": "Macron out by...?"
          }
        ],
        "next_cursor": "0d4LIEDhFKhyUMngKj_M_BNmjH7Ab0CJV7KSPSbHdqd7InYiOjEsImsiOiJldmVudHMiLCJvaCI6IjRmNTNjZGExOGMyYmFhMGMwMzU0YmI1ZjlhM2VjYmU1ZWQxMmFiNGQ4ZTExYmE4NzNjMmYxMTE2MTIwMmI5NDUiLCJrZXlzIjpbeyJ0Ijoic3RyaW5nIiwidiI6IjE2MjYzIn1dfQ"
      }
    }
  ]
}
```

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 41

    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
    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 includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422. Import profile accepts the boolean branch only; other union branches are not exposed.
    live
    live
    featured
    featured
    cyom
    cyom
    title_search
    title_search
    liquidity_min
    liquidity_min
    liquidity_max
    liquidity_max
    volume_min
    volume_min
    volume_max
    volume_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
    start_time_min
    start_time_min
    start_time_max
    start_time_max
    tag_id
    tag_id
    tag_slug
    tag_slug
    exclude_tag_id
    Tag IDs to exclude. Cannot overlap with tag_id.
    related_tags
    related_tags
    tag_match
    tag_match
    series_id
    series_id
    game_id
    game_id
    event_date
    event_date
    event_week
    event_week
    featured_order
    featured_order
    recurrence
    recurrence
    created_by
    created_by
    parent_event_id
    parent_event_id
    include_children
    include_children
    partner_slug
    When set, external_partners are attached to matching events
    include_chat
    When true, includes Chats and Series.Chats relations
    include_template
    When true, includes Templates relation
    include_best_lines
    When true, includes BestLines relation
    locale
    locale
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-events-keyset-pagination-f9e1322a?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/EventsKeysetListResponse.json",
      "events": [
        {
          "active": true,
          "creationDate": "2024-12-31T19:05:45.901361Z",
          "description": "This market will resolve to \"Yes\" if Kraken (US-based cryptocurrency exchange) completes an Initial Public Offering (IPO) by December 31, 2025, 11:59 PM ET, as confirmed by official company announcements or credible news sources. The IPO refers to the first sale of stock by Kraken to the public on any recognized stock exchange.\n\nIf Kraken merges with another entity, is acquired, or ceases to exist before the market resolves, the market will also resolve to \"No\".\n\nThis market will resolve early if Kraken completes an IPO by December 31, 2025, 11:59 PM ET.\n\nThe resolution source for this market ",
          "endDate": "2028-01-01T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
          "id": "16183",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-kraken-ipo-in-2024--_GT-GzKWtUW.jpg",
          "resolutionSource": "",
          "slug": "kraken-ipo-in-2025",
          "startDate": "2024-12-31T19:05:45.901363Z",
          "ticker": "kraken-ipo-in-2025",
          "title": "Kraken IPO by ___ ?"
        },
        {
          "active": true,
          "creationDate": "2025-01-03T19:35:04.095064Z",
          "description": "This market will resolve to \"Yes\" if Emmanuel Macron ceases to be President of France for any length of time between January 2 and December 31, 2025, 11:59 PM ET (inclusive). Otherwise, this market will resolve to \"No\".\n\nIf Macron departs from office before the expiry date, the market should resolve immediately.\n\nThe primary resolution source for this market will be information from the government of France, however a consensus of credible reporting will also be used.",
          "endDate": "2027-01-01T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
          "id": "16263",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/macron-out-in-2025-qFUc7czZE3Ev.jpg",
          "resolutionSource": "",
          "slug": "macron-out-in-2025",
          "startDate": "2025-01-03T19:35:04.095066Z",
          "ticker": "macron-out-in-2025",
          "title": "Macron out by...?"
        }
      ],
      "next_cursor": "0d4LIEDhFKhyUMngKj_M_BNmjH7Ab0CJV7KSPSbHdqd7InYiOjEsImsiOiJldmVudHMiLCJvaCI6IjRmNTNjZGExOGMyYmFhMGMwMzU0YmI1ZjlhM2VjYmU1ZWQxMmFiNGQ4ZTExYmE4NzNjMmYxMTE2MTIwMmI5NDUiLCJrZXlzIjpbeyJ0Ijoic3RyaW5nIiwidiI6IjE2MjYzIn1dfQ"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Polymarket — List events (keyset pagination) with your agent

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