Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/kalshi:kalshi-live-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Kalshi Trade API Manual Endpoints Live Data API
version: 3.34.0
description: Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
servers:
- url: https://external-api.kalshi.com/trade-api/v2
description: Production Trade API server
- url: https://api.elections.kalshi.com/trade-api/v2
description: Production shared API server, also supported
- url: https://external-api.demo.kalshi.co/trade-api/v2
description: Demo Trade API server
- url: https://demo-api.kalshi.co/trade-api/v2
description: Demo shared API server, also supported
tags:
- name: Live Data
description: Live data endpoints
paths:
/live_data/milestone/{milestone_id}:
get:
operationId: GetLiveDataByMilestone
summary: Get Live Data
description: 'Get live data for a specific milestone. The response''s `live_data.details.status` is updated far more often than the milestone''s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `live_data.details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current.'
tags:
- Live Data
parameters:
- name: milestone_id
in: path
required: true
description: Milestone ID
schema:
type: string
- name: include_player_stats
in: query
required: false
description: When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men's Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings.
schema:
type: boolean
default: false
responses:
'200':
description: Live data retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetLiveDataResponse'
'404':
description: Live data not found
'500':
description: Internal server error
/live_data/{type}/milestone/{milestone_id}:
get:
operationId: GetLiveData
summary: Get Live Data (with type)
description: Get live data for a specific milestone. This is the legacy endpoint that requires a type path parameter. Prefer using `/live_data/milestone/{milestone_id}` instead.
tags:
- Live Data
parameters:
- name: type
in: path
required: true
description: Type of live data
schema:
type: string
- name: milestone_id
in: path
required: true
description: Milestone ID
schema:
type: string
- name: include_player_stats
in: query
required: false
description: When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men's Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings.
schema:
type: boolean
default: false
responses:
'200':
description: Live data retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetLiveDataResponse'
'404':
description: Live data not found
'500':
description: Internal server error
/live_data/batch:
get:
operationId: GetLiveDatas
summary: Get Multiple Live Data
description: 'Get live data for multiple milestones. Each entry''s `details.status` is updated far more often than the milestone''s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current.'
tags:
- Live Data
parameters:
- name: milestone_ids
in: query
required: true
description: Array of milestone IDs
schema:
type: array
items:
type: string
maxItems: 100
style: form
explode: true
- name: include_player_stats
in: query
required: false
description: When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men's Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings.
schema:
type: boolean
default: false
responses:
'200':
description: Live data retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetLiveDatasResponse'
'500':
description: Internal server error
/live_data/milestone/{milestone_id}/game_stats:
get:
operationId: GetGameStats
summary: Get Game Stats
description: 'Get play-by-play game statistics for a specific milestone. Supported sports: Pro Football, College Football, Pro Basketball, College Men''s Basketball, College Women''s Basketball, WNBA, Soccer, Pro Hockey, and Pro Baseball. Returns null for unsupported milestone types or milestones without a Sportradar ID.'
tags:
- Live Data
parameters:
- name: milestone_id
in: path
required: true
description: Milestone ID
schema:
type: string
responses:
'200':
description: Game stats retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetGameStatsResponse'
'404':
description: Game stats not found
'500':
description: Internal server error
/live_data/events/{event_ticker}:
get:
operationId: GetEventLiveData
summary: Get Event Live Data
description: Get live data for an event by its event ticker. Serves event-keyed live data such as crypto price charts, commodity price timeseries, and weather observations. The `type` field in the response names the schema of the `details` object.
tags:
- Live Data
parameters:
- name: event_ticker
in: path
required: true
description: Event ticker
schema:
type: string
- name: range
in: query
required: false
description: Optional chart range hint (e.g. `15min`, `1h`, `1d`). When the underlying live data type supports it, restricts the returned timeseries to the requested window.
schema:
type: string
responses:
'200':
description: Live data retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetEventLiveDataResponse'
'404':
description: Live data not found
'500':
description: Internal server error
/live_data/weather/{city}:
get:
operationId: GetWeatherIndex
summary: Get Weather Index
description: 'Get the Kalshi-computed city temperature index: the canonical minute-resolution series behind hourly temperature markets. City-keyed and independent of any event — the series exists whenever the city''s index is configured. Values are Fahrenheit rounded to 0.01. Minutes where the index quorum failed carry no value and are never returned as points, so gaps in the series are real gaps. With `detailed=true` each point additionally carries every member station''s reported reading and quality-control disposition — the pre-incorporation breakdown.'
tags:
- Live Data
parameters:
- name: city
in: path
required: true
description: Index city ID (e.g. `miami`)
schema:
type: string
- name: from
in: query
required: false
description: Window start, unix milliseconds (inclusive). Defaults to `to` minus 24 hours. Must be paired with `to` unless `last_sec` is used.
schema:
type: integer
format: int64
- name: to
in: query
required: false
description: Window end, unix milliseconds (inclusive). Defaults to now.
schema:
type: integer
format: int64
- name: last_sec
in: query
required: false
description: Trailing window in seconds; equivalent to `from=now-last_sec`, `to=now`. Mutually exclusive with `from`/`to`.
schema:
type: integer
format: int64
- name: detailed
in: query
required: false
description: Include per-station audit readings on every point.
schema:
type: boolean
responses:
'200':
description: Weather index retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetWeatherIndexResponse'
'400':
description: Unknown city or invalid window parameters
'500':
description: Internal server error
/live_data/weather/{city}/calibrations:
get:
operationId: GetWeatherIndexCalibrations
summary: Get Weather Index Calibrations
description: 'Get a city''s published weather-index configuration timeline: the launch configuration plus every weekly offset calibration and methodology update, ascending by effective time. Each record carries the station weights, station offsets (Celsius), and the city reference used to compute index values from the record''s effective time until the next record — everything needed to reproduce published index values for minutes computed under that configuration version. Offsets are re-estimated weekly after each complete UTC week; weights never change through calibration. The timeline is append-only and complete: it is never trimmed.'
tags:
- Live Data
parameters:
- name: city
in: path
required: true
description: Index city ID (e.g. `miami`)
schema:
type: string
responses:
'200':
description: Calibration timeline retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/GetWeatherIndexCalibrationsResponse'
'400':
description: Unknown city
'500':
description: Internal server error
components:
schemas:
GetLiveDataResponse:
type: object
required:
- live_data
properties:
live_data:
$ref: '#/components/schemas/LiveData'
GetGameStatsResponse:
type: object
properties:
pbp:
$ref: '#/components/schemas/PlayByPlay'
LiveData:
type: object
required:
- type
- details
- milestone_id
properties:
type:
type: string
description: Type of live data
details:
type: object
additionalProperties: true
description: Live data details as a flexible object
milestone_id:
type: string
description: Milestone ID
GetWeatherIndexCalibrationsResponse:
type: object
required:
- city
- units
- calibrations
properties:
city:
type: string
description: Index city ID.
units:
type: string
description: Always `celsius` — offsets and the city reference are Celsius quantities from the index methodology (the published index value itself is Fahrenheit).
calibrations:
type: array
description: Configuration records, ascending by effective time.
items:
$ref: '#/components/schemas/WeatherIndexCalibration'
WeatherIndexCalibrationStation:
type: object
required:
- station_id
- weight
- offset_c
properties:
station_id:
type: string
description: Member station ID (e.g. `KMIA1M`).
weight:
type: number
format: double
description: Base weight (weights sum to 1.0 across members).
offset_c:
type: number
format: double
description: Station offset in Celsius (positive = station normally runs warmer than its peers).
update_note:
type: string
description: 'Weekly-calibration disposition, present only on weekly calibration records: `updated ...` with the residual count, target, and applied adjustment, or `insufficient ...` when the prior offset was retained.'
WeatherIndexPoint:
type: object
required:
- t
- status
properties:
t:
type: integer
format: int64
description: Event minute, unix milliseconds UTC.
v:
type: number
format: double
description: Published index value, Fahrenheit rounded to 0.01. Absent on `incomplete` points, which have no canonical value yet.
status:
type: string
description: '`normal` (every member contributed its exact-minute primary observation) or `degraded` (a member was absent, fallback-fed, or substituted by quality control; the value is equally settlement-eligible). With `detailed=true`, trailing minutes still inside their receipt deadline are additionally served as `incomplete`: no value, and stations carrying the raw readings recorded so far (code `pending`, not yet quality-controlled — more readings may still arrive, and the canonical value may differ).'
contributors:
type: integer
description: Number of accepted member stations backing the point. Absent on `incomplete` points.
receipt_basis:
type: string
description: Present only on points produced by the labelled historical backfill that seeds a city's series for the period before it went live. `synoptic_latency` means the receipt-deadline test used `observation_time + Synoptic ingest latency` in place of Kalshi's local receipt clock. Absent on canonical points, which are the only settlement-eligible ones.
stations:
type: array
description: Per-station audit readings (only with `detailed=true`), sorted by station ID — every configured member's reported value and QC disposition before incorporation into the index.
items:
$ref: '#/components/schemas/WeatherIndexStationReading'
PlayByPlay:
type: object
description: Play-by-play data organized by period.
properties:
periods:
type: array
items:
type: object
properties:
events:
type: array
items:
type: object
additionalProperties: true
GetWeatherIndexResponse:
type: object
required:
- city
- units
- timeseries
properties:
city:
type: string
description: Index city ID.
config_version:
type: string
description: Index configuration version of the newest returned point (e.g. `miami-temperature-v1.0`). Empty when no points matched the window.
units:
type: string
description: Always `fahrenheit`.
timeseries:
type: array
items:
$ref: '#/components/schemas/WeatherIndexPoint'
WeatherIndexStationReading:
type: object
required:
- station_id
- code
properties:
station_id:
type: string
description: Member station (e.g. `KMIA1M`) or its official fallback ID.
code:
type: string
description: 'Disposition: `ok` (accepted), `missing` (no eligible observation), `late` (received after the deadline; diagnostic only), a QC rejection (`range`, `rate_spatial`, `extreme`), or `pending` (raw reading on an `incomplete` minute, not yet quality-controlled).'
source:
type: string
description: '`hf_asos` (exact-minute primary) or `metar` (carried-forward official observation). Absent when no reading was available.'
temp_f:
type: number
format: double
description: Raw reported temperature in Fahrenheit (unrounded — only the published index value carries output rounding). Absent for `missing` members.
obs_time_ms:
type: integer
format: int64
description: Observation time for carried-forward fallbacks (differs from the event minute). Absent for exact-minute primaries.
received_at_ms:
type: integer
format: int64
description: Local wire-receipt time backing the eligibility deadline.
primary_code:
type: string
description: Why the primary observation was passed over when a fallback was selected instead.
WeatherIndexCalibration:
type: object
required:
- config_version
- effective_at_ms
- city_reference_c
- stations
properties:
config_version:
type: string
description: Configuration version (e.g. `miami-temperature-v1.0-cal-20260831`). Index points report the version they were computed under in their `config_version` field.
published_at_ms:
type: integer
format: int64
description: When the record was published, unix milliseconds UTC.
effective_at_ms:
type: integer
format: int64
description: The record governs event minutes at or after this time (unix milliseconds UTC), until superseded by the next record.
change_reason:
type: string
description: Why the configuration changed.
calibration_window_start_ms:
type: integer
format: int64
description: Start of the trailing observation window the offsets were estimated from. Absent on records not derived from a calibration window (the launch configuration).
calibration_window_end_ms:
type: integer
format: int64
description: End of the calibration window (exclusive).
city_reference_c:
type: number
format: double
description: 'City reference B_c in Celsius: the weight-dot-offset sum over all configured member stations.'
stations:
type: array
description: Configured member stations, in configuration order.
items:
$ref: '#/components/schemas/WeatherIndexCalibrationStation'
GetEventLiveDataResponse:
type: object
required:
- live_data
properties:
live_data:
$ref: '#/components/schemas/EventLiveData'
GetLiveDatasResponse:
type: object
required:
- live_datas
properties:
live_datas:
type: array
items:
$ref: '#/components/schemas/LiveData'
EventLiveData:
type: object
required:
- type
- details
properties:
type:
type: string
description: Type of live data. Names the schema of the details object.
details:
type: object
additionalProperties: true
description: Live data details as a flexible object whose shape depends on the type.
is_historical:
type: boolean
description: Present for crypto live data. True when the event has matured and the payload is a frozen historical snapshot.
default_range:
type: string
description: Chart range the client should default to (e.g. `15min`, `1h`). Omitted when unset.
range_options:
type: array
items:
type: string
description: Chart range menu options. Omitted when unset.
securitySchemes:
kalshiOauthAccessToken:
type: http
scheme: bearer
description: User OAuth access token with read::compliance_partner, issued to an explicitly authorized partner. Accepted only on current and historical fills and current portfolio positions endpoints; generic read and partner client-credentials tokens do not grant access.
kalshiAccessKey:
type: apiKey
in: header
name: KALSHI-ACCESS-KEY
description: Your API key ID
kalshiAccessSignature:
type: apiKey
in: header
name: KALSHI-ACCESS-SIGNATURE
description: Base64 signature of the pre-sign text (timestamp + method + path) made with the API key's algorithm - RSA-PSS with SHA-256 for RSA keys, Ed25519 for Ed25519 keys
kalshiAccessTimestamp:
type: apiKey
in: header
name: KALSHI-ACCESS-TIMESTAMP
description: Request timestamp in milliseconds
x-provenance:
method: harvested
publisher: Kalshi
source: https://docs.kalshi.com/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)