Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination
Query Kalshi markets with filtering, sorting, and pagination with the BlockRun API. The sample response includes titles. Request fields include pagination key (pagination_key), result limit (limit). Use it in financial research or market monitoring. The GET request schema also lists event_ticker, max_price. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0.0075 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination
Prepare your request, then continue with your agent.
Selected price
$0.0075 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
marketsobject[]close_timestringevent_tickerstringmarket_idstringno_subtitlestringopen_timestringresultnullstatusstringtickerstringtitlestringyes_subtitlestring
paginationobjectcountintegerhas_morebooleanlimitintegerpagination_keystring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
markets?: Array<{
close_time?: string;
event_ticker?: string;
market_id?: string;
no_subtitle?: string;
open_time?: string;
result?: null;
status?: string;
ticker?: string;
title?: string;
yes_subtitle?: string;
}>;
pagination?: {
count?: number;
has_more?: boolean;
limit?: number;
pagination_key?: string;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
blockrunCurrent Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination · GET · View API reference | $0.0075 / call | — | —successP50— |
- Unit price
- $0.0075
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.
Total $0.75
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/blockrun/v1/pm/kalshi/markets- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/kalshi/markets?limit=1&sort=volume&status=open' \
-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.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
event_ticker | URL query parametersquery | array | null | No | Filter by event ticker(s)Nested fields and variants
|
limit | URL query parametersquery | integer | No | Max results to return (default 20, max 100). minimum: 1 · maximum: 100 |
max_price | URL query parametersquery | number | null | No | Maximum last price (0-100) minimum: 0 · maximum: 100 |
min_open_interest | URL query parametersquery | number | null | No | Minimum dollar open interest minimum: 0 |
min_price | URL query parametersquery | number | null | No | Minimum last price (0-100) minimum: 0 · maximum: 100 |
min_volume | URL query parametersquery | number | null | No | Minimum dollar volume minimum: 0 |
pagination_key | URL query parametersquery | string | null | No | Opaque cursor from a prior response for keyset pagination. |
predexon_id | URL query parametersquery | array | null | No | Filter by predexon ID(s)Nested fields and variants
|
search | URL query parametersquery | string | null | No | Free-text search over market/question text (min 3 chars). Note: this param is `search` here, NOT `q` — only /markets/search uses `q`. minLength: 3 · maxLength: 100 |
series_ticker | URL query parametersquery | array | null | No | Filter by series ticker(s)Nested fields and variants
|
sort | URL query parametersquery | string | No | Sort order for results. enum: "volume", "open_interest", "price_desc", "price_asc", "close_time" |
status | URL query parametersquery | string | null | No | Filter by market status (e.g. "open", "closed"). enum: "open", "closed", null |
ticker | URL query parametersquery | array | null | No | Kalshi market ticker(s).Nested fields and variants
|
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.
{
"markets": [
{
"close_time": "2027-02-01T15:00:00Z",
"event_ticker": "CONTROLH-2026",
"market_id": "ef080034-944b-4207-b6f1-15f59ef4308b",
"no_subtitle": "Republican Party",
"open_time": "2024-11-06T15:00:00Z",
"result": null,
"status": "open",
"ticker": "CONTROLH-2026-R",
"title": "Will Republicans win the House in 2026?",
"yes_subtitle": "Republican Party"
}
],
"pagination": {
"count": 1,
"has_more": true,
"limit": 1,
"pagination_key": "eyJzdiI6NjE1MTAyMzMsInRiIjoiQ09OVFJPTEgtMjAyNi1SIiwic2NvcGUiOnsic3RhdHVzIjoib3BlbiIsIm1pbl9wcmljZSI6bnVsbCwibWF4X3ByaWNlIjpudWxsLCJtaW5fb3Blbl9pbnRlcmVzdCI6bnVsbCwibWluX3ZvbHVtZSI6bnVsbCwic2VhcmNoIjpudWxsLCJ0aWNrZXIiOm51bGwsImV2ZW50X3RpY2tlciI6bnVsbCwic2VyaWVzX3RpY2tlciI6bnVsbCwicHJlZGV4b25faWQiOm51bGwsInNvcnQiOiJ2b2x1bWUifX0="
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination
Query Kalshi markets with filtering, sorting, and pagination with the BlockRun API. The sample response includes titles. Request fields include pagination key (pagination_key), result limit (limit). Use it in financial research or market monitoring. The GET request schema also lists event_ticker, max_price. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
blockrun · Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination: https://openany.si/markets/apis/capabilities/blockrun-prediction-markets-and-derivatives-query-kalshi-markets-with-filtering-sorting-and-pagi?offering=9a6e06e1-b20d-400f-80e3-ea015799e663 · $0.0075 / call
## Selected API contract
Documentation: https://openany.si/apis/9a6e06e1-b20d-400f-80e3-ea015799e663
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/pm/kalshi/markets
Price: $0.0075 / call
Provider: blockrun
Contract revision: 4
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/blockrun/v1/pm/kalshi/markets?limit=1&sort=volume&status=open' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Prediction Markets and Derivatives — Query Kalshi markets with filtering, sorting, and pagination",
"endpoint": "https://api.openany.si/v1/agent-apis/blockrun/v1/pm/kalshi/markets",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Filter by event ticker(s)",
"item_type": "string",
"location": "query",
"name": "event_ticker",
"nullable": true,
"required": false,
"type": "array"
},
{
"description": "Max results to return (default 20, max 100).",
"location": "query",
"maximum": "100",
"minimum": "1",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Maximum last price (0-100)",
"location": "query",
"maximum": "100",
"minimum": "0",
"name": "max_price",
"nullable": true,
"required": false,
"type": "number"
},
{
"description": "Minimum dollar open interest",
"location": "query",
"minimum": "0",
"name": "min_open_interest",
"nullable": true,
"required": false,
"type": "number"
},
{
"description": "Minimum last price (0-100)",
"location": "query",
"maximum": "100",
"minimum": "0",
"name": "min_price",
"nullable": true,
"required": false,
"type": "number"
},
{
"description": "Minimum dollar volume",
"location": "query",
"minimum": "0",
"name": "min_volume",
"nullable": true,
"required": false,
"type": "number"
},
{
"description": "Opaque cursor from a prior response for keyset pagination.",
"location": "query",
"name": "pagination_key",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Filter by predexon ID(s)",
"item_type": "string",
"location": "query",
"name": "predexon_id",
"nullable": true,
"required": false,
"type": "array"
},
{
"description": "Free-text search over market/question text (min 3 chars). Note: this param is `search` here, NOT `q` — only /markets/search uses `q`.",
"location": "query",
"max_length": 100,
"min_length": 3,
"name": "search",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Filter by series ticker(s)",
"item_type": "string",
"location": "query",
"name": "series_ticker",
"nullable": true,
"required": false,
"type": "array"
},
{
"description": "Sort order for results.",
"enum_values": [
"volume",
"open_interest",
"price_desc",
"price_asc",
"close_time"
],
"location": "query",
"name": "sort",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Filter by market status (e.g. \"open\", \"closed\").",
"enum_values": [
"open",
"closed"
],
"location": "query",
"name": "status",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Kalshi market ticker(s).",
"item_type": "string",
"location": "query",
"name": "ticker",
"nullable": true,
"required": false,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "7500",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"limit": 1,
"sort": "volume",
"status": "open"
}
},
"response_body": {
"markets": [
{
"close_time": "2027-02-01T15:00:00Z",
"event_ticker": "CONTROLH-2026",
"market_id": "ef080034-944b-4207-b6f1-15f59ef4308b",
"no_subtitle": "Republican Party",
"open_time": "2024-11-06T15:00:00Z",
"result": null,
"status": "open",
"ticker": "CONTROLH-2026-R",
"title": "Will Republicans win the House in 2026?",
"yes_subtitle": "Republican Party"
}
],
"pagination": {
"count": 1,
"has_more": true,
"limit": 1,
"pagination_key": "eyJzdiI6NjE1MTAyMzMsInRiIjoiQ09OVFJPTEgtMjAyNi1SIiwic2NvcGUiOnsic3RhdHVzIjoib3BlbiIsIm1pbl9wcmljZSI6bnVsbCwibWF4X3ByaWNlIjpudWxsLCJtaW5fb3Blbl9pbnRlcmVzdCI6bnVsbCwibWluX3ZvbHVtZSI6bnVsbCwic2VhcmNoIjpudWxsLCJ0aWNrZXIiOm51bGwsImV2ZW50X3RpY2tlciI6bnVsbCwic2VyaWVzX3RpY2tlciI6bnVsbCwicHJlZGV4b25faWQiOm51bGwsInNvcnQiOiJ2b2x1bWUifX0="
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 13
Review these request fields before running. Keep the published provider and request method unchanged.
event_ticker- Filter by event ticker(s)
limit- Max results to return (default 20, max 100).
max_price- Maximum last price (0-100)
min_open_interest- Minimum dollar open interest
min_price- Minimum last price (0-100)
min_volume- Minimum dollar volume
pagination_key- Opaque cursor from a prior response for keyset pagination.
predexon_id- Filter by predexon ID(s)
search- Free-text search over market/question text (min 3 chars). Note: this param is `search` here, NOT `q` — only /markets/search uses `q`.
series_ticker- Filter by series ticker(s)
sort- Sort order for results.
status- Filter by market status (e.g. "open", "closed").
ticker- Kalshi market ticker(s).
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/kalshi/markets?limit=1&sort=volume&status=open' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "markets": [ { "close_time": "2027-02-01T15:00:00Z", "event_ticker": "CONTROLH-2026", "market_id": "ef080034-944b-4207-b6f1-15f59ef4308b", "no_subtitle": "Republican Party", "open_time": "2024-11-06T15:00:00Z", "result": null, "status": "open", "ticker": "CONTROLH-2026-R", "title": "Will Republicans win the House in 2026?", "yes_subtitle": "Republican Party" } ], "pagination": { "count": 1, "has_more": true, "limit": 1, "pagination_key": "eyJzdiI6NjE1MTAyMzMsInRiIjoiQ09OVFJPTEgtMjAyNi1SIiwic2NvcGUiOnsic3RhdHVzIjoib3BlbiIsIm1pbl9wcmljZSI6bnVsbCwibWF4X3ByaWNlIjpudWxsLCJtaW5fb3Blbl9pbnRlcmVzdCI6bnVsbCwibWluX3ZvbHVtZSI6bnVsbCwic2VhcmNoIjpudWxsLCJ0aWNrZXIiOm51bGwsImV2ZW50X3RpY2tlciI6bnVsbCwic2VyaWVzX3RpY2tlciI6bnVsbCwicHJlZGV4b25faWQiOm51bGwsInNvcnQiOiJ2b2x1bWUifX0=" } }