# Polymarket List events (keyset pagination) API

> List events with cursor based keyset pagination. Use next_cursor as after_cursor to fetch the next page. The offset parameter is rejected.

Source: https://www.sandbase.ai/model/polymarket/events-keyset
API reference: https://www.sandbase.ai/model/polymarket/events-keyset/docs

## Facts

- Provider: Polymarket
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/polymarket/events-keyset`
- Price: $0.0007 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, polymarket, prediction markets
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/polymarket/events-keyset` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `after_cursor` | string | no |  |
| `ascending` | boolean | no |  |
| `closed` | boolean | no | any |
| `created_by` | array | no |  |
| `cyom` | boolean | no |  |
| `end_date_max` | string | no |  |
| `end_date_min` | string | no |  |
| `event_date` | string | no |  |
| `event_week` | integer | no |  |
| `exclude_tag_id` | array | no |  |
| `featured` | boolean | no |  |
| `featured_order` | boolean | no |  |
| `game_id` | array | no |  |
| `id` | array | no |  |
| `include_best_lines` | boolean | no |  |
| `include_chat` | boolean | no |  |
| `include_children` | boolean | no |  |
| `include_template` | boolean | no |  |
| `limit` | integer | no |  |
| `liquidity_max` | number | no |  |
| `liquidity_min` | number | no |  |
| `live` | boolean | no |  |
| `locale` | string | no |  |
| `offset` | integer | no |  |
| `order` | string | no |  |
| `parent_event_id` | integer | no |  |
| `partner_slug` | string | no |  |
| `recurrence` | string | no |  |
| `related_tags` | boolean | no |  |
| `series_id` | array | no |  |
| `slug` | array | no |  |
| `start_date_max` | string | no |  |
| `start_date_min` | string | no |  |
| `start_time_max` | string | no |  |
| `start_time_min` | string | no |  |
| `tag_id` | array | no |  |
| `tag_match` | string | no |  |
| `tag_slug` | string | no |  |
| `title_search` | string | no |  |
| `volume_max` | number | no |  |
| `volume_min` | number | no |  |

## FAQ

### How do I use the Polymarket List events (keyset pagination) API?

Send a POST request to https://api.sandbase.ai/v1/api/polymarket/events-keyset with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Polymarket List events (keyset pagination) API cost?

$0.0007 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Polymarket List events (keyset pagination) API accept?

No parameters are required. Optional: after_cursor (string), ascending (boolean), closed (one of any), created_by (array), cyom (boolean) and end_date_max (string) and 35 more. The Parameters table and the Playground on this page list every field.

### What does the Polymarket List events (keyset pagination) API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Polymarket developer account or API key?

No. Polymarket List events (keyset pagination) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Polymarket API access separately.

## README

### Polymarket List events (keyset pagination) API

List events with cursor based keyset pagination. Use next_cursor as after_cursor to fetch the next page. The offset parameter is rejected.

The response is the official Polymarket API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "polymarket/events-keyset"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `after_cursor` | string | No | Opaque cursor token from a previous response's next_cursor |
| `ascending` | boolean | No | Sort direction. Only used when order is set. |
| `closed` | boolean | No | 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. U |
| `created_by` | array | No | created_by |
| `cyom` | boolean | No | cyom |
| `end_date_max` | string | No | end_date_max |
| `end_date_min` | string | No | end_date_min |
| `event_date` | string | No | event_date |
| `event_week` | integer | No | event_week |
| `exclude_tag_id` | array | No | Tag IDs to exclude. Cannot overlap with tag_id. |
| `featured` | boolean | No | featured |
| `featured_order` | boolean | No | featured_order |
| `game_id` | array | No | game_id |
| `id` | array | No | id |
| `include_best_lines` | boolean | No | When true, includes BestLines relation |
| `include_chat` | boolean | No | When true, includes Chats and Series.Chats relations |
| `include_children` | boolean | No | include_children |
| `include_template` | boolean | No | When true, includes Templates relation |
| `limit` | integer | No | Maximum number of results to return (max 100) |
| `liquidity_max` | number | No | liquidity_max |
| `liquidity_min` | number | No | liquidity_min |
| `live` | boolean | No | live |
| `locale` | string | No | locale |
| `offset` | integer | No | Not allowed. Returns 422 if provided. |
| `order` | string | No | Comma-separated list of JSON field names to order by |
| `parent_event_id` | integer | No | parent_event_id |
| `partner_slug` | string | No | When set, external_partners are attached to matching events |
| `recurrence` | string | No | recurrence |
| `related_tags` | boolean | No | related_tags |
| `series_id` | array | No | series_id |
| `slug` | array | No | slug |
| `start_date_max` | string | No | start_date_max |
| `start_date_min` | string | No | start_date_min |
| `start_time_max` | string | No | start_time_max |
| `start_time_min` | string | No | start_time_min |
| `tag_id` | array | No | tag_id |
| `tag_match` | string | No | tag_match |
| `tag_slug` | string | No | tag_slug |
| `title_search` | string | No | title_search |
| `volume_max` | number | No | volume_max |
| `volume_min` | number | No | volume_min |

#### Pricing

Flat price per call. Failed calls are not charged.
