SportWizzard Events API
Games and matches: the spine everything keys off.
Games and matches: the spine everything keys off.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sportwizzard-com:sportwizzard-com-events-api"
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.
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: 3.2.0
info:
title: SportWizzard Events API
version: 1.0.0
description: '**Try any endpoint:** pick it in the sidebar, paste your API key under Authentication (create one free at sportwizzard.com/account), fill the highlighted parameters, and press Send. Each endpoint shows a real captured response before you send anything.
The sports betting data API. Real-time odds from sportsbooks and DFS platforms, plus the underlying data to build your own models: players, teams, box-score stats, historical prices, and game context (weather, lineups, probable pitchers, venue, scores) in one canonical schema — and the full live snapshot. Edges and arbitrage are derived signals. Free signup is open, usage is not currently metered, and paid signup is paused; pricing limits and credit costs are planned. All responses use a consistent envelope ({success, data, nextCursor, meta}). Authenticate with the X-Api-Key header using a Clerk-issued API key. Pagination uses opaque cursors (pass meta/nextCursor back as ?cursor=). Reference endpoints (competitions, sportsbooks, competitors, players, markets) are uncounted. Authenticated responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (epoch seconds) headers.
Who gets which fields: one set of endpoints serves everyone. Signed-out callers, website sessions and Free-plan keys get event participants'' names and sides; an API key on a paid plan also gets competitorId/playerId on participants, playerId on odds, edge and arbitrage rows, arbitrage selection source references, and event include=source_references. These routes send Vary: Authorization, X-Api-Key, and a paid-plan response is Cache-Control: private. /players, /competitors, stats and /source-references/lookup are keyed by IDs and return the same fields to everyone.'
contact:
name: SportWizzard
url: https://sportwizzard.com/developers
email: support@sportwizzard.com
termsOfService: https://sportwizzard.com/terms
servers:
- url: https://api.sportwizzard.com
security:
- ApiKeyHeader: []
- BearerKey: []
tags:
- name: Events
description: 'Games and matches: the spine everything keys off.'
paths:
/api/v1/events:
get:
tags:
- Events
summary: List events
description: 'Events/fixtures filtered by competition, competitor_id (a competitor that takes part), player_id (a player who takes part), status, and a start-time window (starts_after/starts_before, ISO-8601; default: now to now+14d). Keyset-paginated over (startTime, id). Each event lists its participants (side 1/2, sideLabel home/away for team sports, position, name); competitorId/playerId and include=source_references are returned only for an API key on a paid plan.'
operationId: events
parameters:
- name: competition
in: query
description: Competition code, e.g. mlb
required: false
schema:
type: string
example: mlb
example: mlb
- name: competitor_id
in: query
description: Filter to events in which this competitor id takes part
required: false
schema:
type: string
example: 7d0a7d8f-138a-11f1-aba1-de512ebea802
- name: player_id
in: query
description: Filter to events in which this player id takes part (tennis, MMA, golf and other player sports)
required: false
schema:
type: string
example: 7964b89f-ab1a-47e7-9956-43586b5b47ca
- name: status
in: query
description: Event status, e.g. scheduled, in_progress, final
required: false
schema:
type: string
- name: starts_after
in: query
description: Lower bound on start time (ISO-8601). Default now.
required: false
schema:
type: string
- name: starts_before
in: query
description: Upper bound on start time (ISO-8601). Default now+14d.
required: false
schema:
type: string
- name: cursor
in: query
description: Opaque cursor from the previous response's nextCursor. Leave empty for the first page.
required: false
schema:
type: string
- name: limit
in: query
description: Max events per page (default 100, max 1000)
required: false
schema:
type: integer
format: int32
example: 10
example: 10
- name: include
in: query
description: source_references attaches each event's exact provider references (paid-plan API keys only; ignored otherwise)
required: false
schema:
type: string
enum:
- source_references
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseEventDto'
example:
success: true
data:
- id: 7df442b5-426e-4df0-9ef5-9138819d831f
startTime: 2026-08-18T22:35Z
status: scheduled
competition: mlb
hasOdds: true
participants:
- side: 1
sideLabel: home
position: 1
name: Baltimore Orioles
- side: 2
sideLabel: away
position: 1
name: New York Yankees
- id: 05e73dc1-aa3c-4a9f-ae61-655e56d88a0d
startTime: 2026-08-18T22:40Z
status: scheduled
competition: mlb
hasOdds: true
participants:
- side: 1
sideLabel: home
position: 1
name: Pittsburgh Pirates
- side: 2
sideLabel: away
position: 1
name: Detroit Tigers
nextCursor: MTc4NzA5MjgwMDAwMHwwNWU3M2RjMS1hYTNjLTRhOWYtYWU2MS02NTVlNTZkODhhMGQ
meta:
count: 2
/api/v1/events/active:
get:
tags:
- Events
summary: List active events
description: Only events that currently have live markets in the cache — the recommended entrypoint. Keyset-paginated over (startTime, id).
operationId: eventsActive
parameters:
- name: competition
in: query
description: Competition code filter
required: false
schema:
type: string
example: mlb
example: mlb
- name: cursor
in: query
description: Opaque cursor from the previous response's nextCursor. Leave empty for the first page.
required: false
schema:
type: string
- name: limit
in: query
description: Max events per page (default 100, max 1000)
required: false
schema:
type: integer
format: int32
example: 10
example: 10
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseEventDto'
example:
success: true
data:
- id: 6d32ed39-1515-4879-8694-e8bc25d2b83f
startTime: 2026-08-17T13:00Z
status: scheduled
competition: tennis
hasOdds: true
participants:
- side: 1
position: 1
name: Michael Zheng
- side: 2
position: 1
name: Lorenzo Musetti
- id: a41682f6-d7be-453f-be89-18bd3f487a72
startTime: 2026-08-17T13:00Z
status: scheduled
competition: tennis
hasOdds: true
participants:
- side: 1
position: 1
name: Brandon Nakashima
- side: 2
position: 1
name: Daniil Medvedev
nextCursor: MTc4Njk3MTYwMDAwMHxhNDE2ODJmNi1kN2JlLTQ1M2YtYmU4OS0xOGJkM2Y0ODdhNzI
meta:
count: 2
/api/v1/events/{id}:
get:
tags:
- Events
summary: Get an event
description: 'A single event by id, enriched for model builders: participants, status, competition, hasOdds, venueId, seasonYear, the raw matchup-context JSON (weather/lineups/probable pitchers/officials, league-specific), and each side''s final score (participants[].score) when the box score is available, and state: the latest live state {status, period, clock, side1Score, side2Score, source, observedAt} (absent when none). The list endpoints stay lean. Pass include_context_history=true to also populate contextHistory: the timestamped change log of probable_pitchers, lineups, and weather for the event (each entry carries observed_at and source; lineups entries carry a stage of projected|confirmed|final, weather entries forecast|observed). The planned credit model would charge 5 credits instead of 1; usage is not currently metered. Use it to see scratched probables, lineup-card evolution, and how the forecast moved before first pitch.'
operationId: event
parameters:
- name: id
in: path
required: true
schema:
type: string
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
description: Event UUID. Get one from GET /api/v1/events.
- name: include_context_history
in: query
required: false
description: 'true = populate the contextHistory change log (planned: 5 credits instead of 1; not currently metered)'
schema:
type: boolean
default: false
example: true
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseEventDetailDto'
example:
success: true
data:
- id: 7df442b5-426e-4df0-9ef5-9138819d831f
startTime: 2026-08-18T22:35Z
status: scheduled
competition: mlb
hasOdds: true
participants:
- side: 1
sideLabel: home
position: 1
name: Baltimore Orioles
- side: 2
sideLabel: away
position: 1
name: New York Yankees
venueId: 2451d0f6-b794-480c-b61d-bf81573019bc
seasonYear: 2026
context:
probable_pitchers:
home_id: 7ef6308d-138a-11f1-aba1-de512ebea802
away_id: 7ebcaa1f-138a-11f1-aba1-de512ebea802
meta:
count: 1
updated: '2026-08-18T14:43:26.557970808Z'
/api/v1/events/{eventId}/odds:
get:
tags:
- Events
summary: Odds for one event
description: All book prices for a single event.
operationId: eventOdds
parameters:
- name: eventId
in: path
required: true
schema:
type: string
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
description: Event UUID. Get one from GET /api/v1/events.
- name: odds_format
in: query
description: 'Price representation: american, decimal, probability, or all (default all = both priceAmerican and priceDecimal, unchanged). american or decimal returns only that price field; probability replaces the price fields with priceProbability (implied probability = 1/decimal, 4 decimal places). Invalid values return 400 invalid_parameter.'
required: false
schema:
type: string
enum:
- american
- decimal
- probability
- all
default: all
example: probability
example: probability
- name: is_main
in: query
description: 'When true, keep only each market''s PRIMARY line per book: among a book''s alternate over/under lines for the same market + period + player/team scope, the line whose two opposing implied probabilities are most balanced. Single-line and non-over/under markets pass through unchanged.'
required: false
schema:
type: boolean
example: true
example: true
- name: If-None-Match
in: header
required: false
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseOddsRow'
example:
success: true
data:
- id: 7df442b5-426e-4df0-9ef5-9138819d831f:prizepicks:PLAYER_TOTAL_FANTASY_POINTS:01a01349-b658-7818-9bcb-4c50f6609763
sportsbook: prizepicks
competition: mlb
eventId: 7df442b5-426e-4df0-9ef5-9138819d831f
market: PLAYER_TOTAL
marketSubtype: PLAYER_TOTAL_FANTASY_POINTS
period: FULL
selection: Over
line: 6.5
outcomeCode: OVER
side: 2
outcomeParticipants:
- kind: competitor
name: New York Yankees
- kind: player
name: Trent Grisham
playerName: Trent Grisham
dfsMultiplier: 1.0
suspended: false
eventStartTime: 2026-08-18T22:35
updated: '2026-08-18T11:36:59Z'
- id: 7df442b5-426e-4df0-9ef5-9138819d831f:prizepicks:PLAYER_TOTAL_FANTASY_POINTS:01a01349-b658-781b-a425-1f69a3faac34
sportsbook: prizepicks
competition: mlb
eventId: 7df442b5-426e-4df0-9ef5-9138819d831f
market: PLAYER_TOTAL
marketSubtype: PLAYER_TOTAL_FANTASY_POINTS
period: FULL
selection: Under
line: 6.5
outcomeCode: UNDER
side: 2
outcomeParticipants:
- kind: competitor
name: New York Yankees
- kind: player
name: Trent Grisham
playerName: Trent Grisham
dfsMultiplier: 1.0
suspended: false
eventStartTime: 2026-08-18T22:35
updated: '2026-08-18T11:36:59Z'
meta:
count: 9487
updated: '2026-08-18T11:40:08Z'
/api/v1/events/{id}/stats:
get:
tags:
- Events
summary: Event box score
description: The complete box score for one event — team-level rows (scores/result + raw team stat JSON) and per-player rows (raw per-event stat JSON). Bounded by the event's rosters, so it is returned in full (unpaginated). Model-builder gold.
operationId: eventStats
parameters:
- name: id
in: path
required: true
schema:
type: string
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
description: Event UUID. Get one from GET /api/v1/events.
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseEventStatsDto'
example:
success: true
data:
- eventId: 7df442b5-426e-4df0-9ef5-9138819d831f
competitors: []
players: []
meta:
count: 1
updated: '2026-08-18T14:43:26.565349180Z'
components:
schemas:
ApiResponseEventDto:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/EventDto'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
JsonNode:
type: object
SourceReference:
type: object
description: Exact provider-owned identity. The identity tuple is source, entityType, scope, scheme, and key; identifiers and metadata are evidence.
required:
- contractVersion
- source
- entityType
- scope
- scheme
- key
- identifiers
- metadata
properties:
contractVersion:
type: integer
format: int32
enum:
- 1
source:
type: string
pattern: ^[a-z0-9_][a-z0-9_.-]{0,63}$
entityType:
type: string
enum:
- player
- competitor
- event
- season
- market
- selection
- outcome
scope:
type: string
description: Exact scope string; the identity contract limits UTF-8 encoding to 1–1024 bytes.
scheme:
type: string
pattern: ^[a-z0-9._@-]{1,96}$
key:
type: string
description: Exact identity key; the identity contract limits UTF-8 encoding to 1–1024 bytes.
identifiers:
type: array
items:
$ref: '#/components/schemas/Identifier'
metadata:
type: object
required:
- schemaVersion
properties:
schemaVersion:
type: integer
format: int32
enum:
- 1
additionalProperties: true
additionalProperties: false
EventStatsDto:
type: object
properties:
eventId:
type: string
competitors:
type: array
items:
$ref: '#/components/schemas/CompetitorStatRow'
players:
type: array
items:
$ref: '#/components/schemas/PlayerStatRow'
EventDto:
type: object
properties:
id:
type: string
startTime:
type: string
status:
type: string
competition:
type: string
hasOdds:
type: boolean
participants:
type: array
description: 'Who takes part in the event, ordered by side, then position, then name. Team sports: side 1 (sideLabel home) and side 2 (away). Tennis, MMA and esports: sides 1 and 2 with no sideLabel; doubles list two players per side (position 1 and 2). Golf: the whole field with no side or position. Absent for futures, which have no event.'
items:
$ref: '#/components/schemas/Participant'
sourceReferences:
type: array
description: Exact provider references for the event, with include=source_references. Returned only to an API key on a paid (non-Free) plan.
items:
$ref: '#/components/schemas/SourceReference'
Identifier:
type: object
required:
- namespace
- name
- value
- scope
- origin
properties:
namespace:
type: string
pattern: ^[a-z0-9._@-]{1,96}$
name:
type: string
pattern: ^[A-Za-z0-9_.-]{1,64}$
value:
type: string
description: Exact provider identifier; the identity contract limits UTF-8 encoding to 1–1024 bytes.
scope:
type: string
description: Exact identifier scope; the identity contract limits UTF-8 encoding to 1–1024 bytes.
origin:
type: string
enum:
- NATIVE
- DERIVED
- LEGACY_UNCLASSIFIED
additionalProperties: false
ApiResponseOddsRow:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/OddsRow'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
OutcomeParticipant:
type: object
description: A competitor or player the outcome names, as the source sent it. A side 1/2 competitor is the event participant on that side.
properties:
kind:
type: string
enum:
- competitor
- player
name:
type: string
description: The name as the source sent it.
competitorId:
type: string
description: Set for a named competitor outside the event's sides (a futures winner). Returned only to an API key on a paid (non-Free) plan.
playerId:
type: string
description: Set for a resolved player. Returned only to an API key on a paid (non-Free) plan.
OddsRow:
type: object
properties:
id:
type: string
sportsbook:
type: string
competition:
type: string
eventId:
type:
- string
- 'null'
description: The game this line is on. Null on futures (marketScope SEASON), which carry seasonId instead.
seasonId:
type:
- string
- 'null'
description: 'The season a future (marketScope SEASON) is on: one season, every book on it. Null on game rows. For a future, eventStartTime is the season''s end date.'
market:
type: string
marketSubtype:
type: string
period:
type: string
selection:
type: string
priceAmerican:
type: integer
format: int32
priceDecimal:
type: number
line:
type: number
outcomeCode:
type: string
enum:
- OVER
- UNDER
- 'YES'
- 'NO'
- WIN
- DRAW
- NEITHER
- WIN_OR_DRAW
- EITHER
- ODD
- EVEN
- SCORE
- RANGE
- OTHER
- LABEL
description: Canonical outcome code. WIN is the leg's side or named participant winning (moneyline, spread, a futures team); SCORE is an exact score (read side1Score/side2Score); LABEL is a categorical answer only the selection label explains.
statType:
type: string
description: Canonical stat type (synonyms folded, keyed by sport), e.g. points, rec_yards, threes_made. Stat props only.
side:
type: integer
format: int32
enum:
- 1
- 2
description: 'Which event side (participants[].side) the outcome is about: 1, 2 or absent. A player prop''s side is the player''s team''s side. Absent for totals, draws, neither, futures and anything without a side.'
outcomeParticipants:
type: array
description: Who the outcome names, as the source sent it. Absent when the outcome is about a side only (read participants on that side).
items:
$ref: '#/components/schemas/OutcomeParticipant'
side1Score:
type: integer
format: int32
description: 'Exact-score (SCORE) outcomes: side 1''s score.'
side2Score:
type: integer
format: int32
description: 'Exact-score (SCORE) outcomes: side 2''s score.'
playerId:
type: string
description: Resolved player id on player props. Returned only to an API key on a paid (non-Free) plan.
playerName:
type: string
description: The player name as the source sent it (player props only).
dfsMultiplier:
type: number
liquidityTier:
type: string
description: 'Exchange selections only: the current liquidity tier.'
suspended:
type: boolean
eventStartTime:
type: string
updated:
type: string
format: date-time
marketScope:
type: string
enum:
- SEASON
- TOURNAMENT
description: 'What this market is about. Present ONLY on non-EVENT markets: SEASON (a season-long future, tied to a season rather than a game) or TOURNAMENT (a tournament outright). Ordinary single-game rows omit the field entirely — absent means EVENT scope.'
segment:
type: string
description: 'Which slice of the competition a segment-scoped market covers, e.g. AFC_EAST, NFC, AL, NL_WEST, EAST, SEC, BIG_TEN. Present ONLY on non-EVENT markets, and only when the market is segment-scoped. Load-bearing for futures: all 32 NFL DIVISION_WINNER selections share a single seasonId, so without segment they read as one 32-team race instead of eight separate divisions.'
PlayerStatRow:
type: object
properties:
eventId:
type: string
playerId:
type: string
competitorId:
type: string
date:
type: string
data:
$ref: '#/components/schemas/JsonNode'
ApiResponseEventStatsDto:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/EventStatsDto'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
ApiResponseEventDetailDto:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/EventDetailDto'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
CompetitorStatRow:
type: object
properties:
eventId:
type: string
side1Id:
type: string
side2Id:
type: string
competition:
type: string
side1Score:
type: integer
format: int32
side2Score:
type: integer
format: int32
result:
type: integer
format: int32
stats:
$ref: '#/components/schemas/JsonNode'
EventDetailDto:
type: object
properties:
id:
type: string
startTime:
type: string
status:
type: string
competition:
type: string
hasOdds:
type: boolean
participants:
type: array
description: 'Who takes part in the event, ordered by side, then position, then name. Team sports: side 1 (sideLabel home) and side 2 (away). Tennis, MMA and esports: sides 1 and 2 with no sideLabel; doubles list two players per side (position 1 and 2). Golf: the whole field with no side or position. Absent for futures, which have no event. Each sided participant carries score once the box score exists.'
items:
$ref: '#/components/schemas/Participant'
state:
$ref: '#/components/schemas/EventState'
venueId:
type: string
seasonYear:
type: integer
format: int32
context:
$ref: '#/components/schemas/JsonNode'
contextHistory:
$ref: '#/components/schemas/JsonNode'
Participant:
type: object
description: 'One participant of an event: a competitor (team) or a player (tennis player, fighter, golfer). Everyone gets side, sideLabel, position and name; competitorId and playerId are returned only to an API key on a paid plan.'
properties:
side:
type: integer
format: int32
enum:
- 1
- 2
description: 1 or 2. Absent for a field event (golf).
sideLabel:
type: string
enum:
- home
- away
description: home (side 1) or away (side 2) for team sports. Absent for tennis, MMA and esports, where side order is arbitrary.
position:
type: integer
format: int32
description: 'Order within a side: 1, or 1 and 2 for doubles partners. Absent for golf.'
name:
type: string
description: The competitor's or player's canonical name.
competitorId:
type: string
description: Competitor (team) id when the participant is a competitor. Returned only to an API key on a paid (non-Free) plan.
playerId:
type: string
description: Player id when the participant is a player. Returned only to an API key on a paid (non-Free) plan.
score:
type: integer
format: int32
description: 'GET /api/v1/events/{id} only: this side''s final score once the box score exists.'
EventState:
type: object
description: The event's latest live state from a source.
properties:
status:
type: string
description: e.g. in_progress
period:
type: string
description: e.g. Q3
clock:
type: string
description: e.g. 07:41
side1Score:
type: integer
format: int32
side2Score:
type: integer
format: int32
source:
type: string
description: The source that reported it.
observedAt:
type: string
format: date-time
Meta:
type: object
properties:
count:
type: integer
format: int32
updated:
type: string
format: date-time
note:
type: string
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: X-Api-Key
description: Paste your API key (sw_live_…). Create one free at sportwizzard.com/account → API Keys. Reference endpoints work without a key.
BearerKey:
type: http
scheme: bearer
description: 'The same key as Authorization: Bearer sw_live_… (MCP-client convention).'