List events
Events, optionally filtered by sport, competition, type, title and status. Defaults to newest-inserted first.
GET
/api/v1/eventsParameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
event_ids |
query |
string | no | Comma-separated event UUIDs. |
sports |
query |
string | no | Comma-separated sport names, e.g. Baseball,Basketball. Exact case-insensitive match. |
competitions |
query |
string | no | Comma-separated competition codes, e.g. MLB,NFL. |
event_types |
query |
string | no | Comma-separated event types, matched as a case-insensitive substring. |
title |
query |
string | no | A single title fragment, matched as a case-insensitive substring. |
status |
query |
scheduled | in_progress | completed | cancelled |
no | A single event status, lowercase. This filter takes one value, not a comma-separated list. These are event statuses, not the market statuses /markets takes. |
promoted |
query |
boolean | no | Filter to promoted events. Unlike trading on /markets, an unrecognized value is silently ignored rather than rejected: the filter is dropped and every event is returned. |
sort_by[name] |
query |
start_time |
no | Only start_time is supported. Unlike /markets, an unrecognized value is silently ignored and the default newest-inserted-first ordering is used, so a response may not carry the order you asked for. |
sort_by[direction] |
query |
asc | desc |
no | asc or desc, defaulting to descending. Only meaningful alongside sort_by[name], and silently ignored if unrecognized. |
limit |
query |
integer | no | Rows per page. Defaults to 100 and is silently clamped to 200; a larger value is not an error. |
cursor |
query |
string | no | Cursor from the previous response. Omit for the first page. |
Responses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
200 |
Success | object |
400 |
A parameter was missing or invalid. | Error |
401 |
Missing, malformed or unrecognized signature, or a timestamp outside the 30-second window. Body: {“error”:“Missing or invalid API key credentials”} | Error |
403 |
The account behind this key is not active, for example it is pending approval or suspended. Body: {“error”:“Your account is suspended. Contact support.”}, the message naming the account’s status. Or an app token without events: insufficient_scope, shown below. |
Error |
Example
Section titled “Example”Request:
curl --request GET \ --url 'https://demo.stxapp.io/api/v1/events' \ --header 'X-STX-ACCESS-KEY: <key-id>' \ --header 'X-STX-ACCESS-TIMESTAMP: <unix-ms>' \ --header 'X-STX-ACCESS-SIGNATURE: <base64-ed25519>'With an app token:
curl --request GET \ --url 'https://demo.stxapp.io/api/v1/events' \ --header 'Authorization: Bearer <app-access-token>'Response 200:
{ "cursor": null, "events": [ { "archived": false, "competition": "NHL", "event_id": "24636b3d-f566-4dd3-8c8b-c1a6c2747789", "event_type": "hockey_game", "participants": [ { "abbreviation": "EDM", "name": "Edmonton Oilers", "role": "away", "short_name": "Oilers" }, { "abbreviation": "SJ", "name": "San Jose Sharks", "role": "home", "short_name": "Sharks" } ], "promoted": false, "short_title": "EDM @ SJ", "sport": "Hockey", "start_time": 1791662400000000, "start_time_iso": "2026-10-10T20:00:00.000000Z", "status": "scheduled", "symbol": "STXNHL-26OCT101600EDMSJ", "title": "Edmonton Oilers at San Jose Sharks" }, { "archived": false, "competition": "NHL", "event_id": "a80f6a9d-fcc6-4a02-82d7-82a55e90db1c", "event_type": "hockey_game", "participants": [ { "abbreviation": "SEA", "name": "Seattle Kraken", "role": "away", "short_name": "Kraken" }, { "abbreviation": "DET", "name": "Detroit Red Wings", "role": "home", "short_name": "Red Wings" } ], "promoted": false, "short_title": "SEA @ DET", "sport": "Hockey", "start_time": 1791586800000000, "start_time_iso": "2026-10-09T23:00:00.000000Z", "status": "completed", "symbol": "STXNHL-26OCT091900SEADET", "title": "Seattle Kraken at Detroit Red Wings" } ]}Response 403, an app token without events:
HTTP/2 403www-authenticate: Bearer error="insufficient_scope", scope="events"
{"error":"insufficient scope for this operation","scope":"events"}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
cursor |
string | Opaque cursor for the next page. Pass the value from the previous response; omit for the first page. null once there are no more pages. |
archived |
boolean | Whether this event is archived. |
competition |
string | The competition for this event |
event_id |
uuid | The event the market belongs to. |
event_type |
string | The type of this event, e.g. ad_hoc, baseball_game, basketball_game. |
participants |
array | The event’s participants, as an array of {name, role, short_name, abbreviation}. |
promoted |
boolean | Whether this event is promoted. |
short_title |
string | The short title for this event |
sport |
string | The sport for this event |
start_time |
int64 | Start time of this event UNIX microseconds. |
start_time_iso |
date-time | Start time of this event |
status |
string | The status of this event |
symbol |
string | The STX symbol for this event |
title |
string | The title of this event |
Docs version v1.10.5

