SportWizzard Historical API
Point-in-time odds and settled arbitrage for backtesting.
Point-in-time odds and settled arbitrage for backtesting.
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-historical-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 Historical 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: Historical
description: Point-in-time odds and settled arbitrage for backtesting.
paths:
/api/v1/historical/odds:
get:
tags:
- Historical
summary: Historical odds
description: 'Reconstructs each selection''s price at (or just before) a given time from its selectionPrice. Requires event_id (get one from /api/v1/events). Rows carry the same identity fields as live /odds rows — outcomeCode, statType, side (1/2 or absent), outcomeParticipants, playerName on player props (playerId for an API key on a paid plan) — and all three price forms: priceAmerican + priceDecimal for sportsbooks, dfsMultiplier for DFS pick''em books. If date is omitted, returns the current price. The planned credit model would charge 5 credits per event; usage is not currently metered. A common pattern for training data: request date = 45 minutes before the event''s startTime.'
operationId: historicalOdds
parameters:
- name: event_id
in: query
description: Event id (required)
required: true
schema:
type: string
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
example: 03d8ece0-a31b-4754-a86a-e4f883288b7c
- name: date
in: query
description: 'As-of time (ISO-8601). Default: latest known price.'
required: false
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseHistoricalOddsRow'
example:
success: true
data:
- eventId: e0a90e0f-fe4b-41f0-ab76-e29426cb7074
sportsbook: fanduel
market: PLAYER_FIRST_TO
marketSubtype: PLAYER_FIRST_TO_SCORE
period: FULL
selection: Chelsea Gray
outcomeCode: 'YES'
outcomeParticipants:
- kind: player
name: Chelsea Gray
playerName: Chelsea Gray
priceAmerican: 750
priceDecimal: 8.5
asOf: '2026-08-15T23:15:00'
- eventId: e0a90e0f-fe4b-41f0-ab76-e29426cb7074
sportsbook: sleeper
market: PLAYER_TOTAL
marketSubtype: PLAYER_TOTAL_ASSISTS
period: FULL
selection: Over 1.5
outcomeCode: OVER
outcomeParticipants:
- kind: player
name: Kayla McBride
playerName: Kayla McBride
line: 1.5
dfsMultiplier: 1.78
asOf: '2026-08-15T23:15:00'
- eventId: e0a90e0f-fe4b-41f0-ab76-e29426cb7074
sportsbook: kalshi
market: MONEYLINE
marketSubtype: MONEYLINE
period: FULL
selection: Las Vegas
outcomeCode: WIN
side: 1
outcomeParticipants:
- kind: competitor
name: Las Vegas
priceAmerican: 122
priceDecimal: 2.22
asOf: '2026-08-15T23:15:00'
meta:
count: 6913
/api/v1/historical/arbitrage:
get:
tags:
- Historical
summary: Historical arbitrage
description: Arbitrage that existed at a point in time, replayed from selectionPrice. The underlying store is point-in-time, so a from/to window is evaluated at 'to' with a staleness window of (to−from); pass a single 'to' for a snapshot. Reuses the live historical-arbitrage engine.
operationId: historicalArbitrage
parameters:
- name: from
in: query
description: Window start (ISO-8601). Optional; sets the staleness window with 'to'.
required: false
schema:
type: string
example: '2025-07-01T00:00:00Z'
example: '2025-07-01T00:00:00Z'
- name: to
in: query
description: As-of / window end (ISO-8601). Defaults to 'from' if omitted.
required: false
schema:
type: string
example: '2025-07-10T00:00:00Z'
example: '2025-07-10T00:00:00Z'
- name: min_profit
in: query
description: Minimum profit margin (fractional). Default 0.001.
required: false
schema:
type: number
format: double
- name: limit
in: query
description: Max results (default 500)
required: false
schema:
type: integer
format: int32
example: 10
example: 10
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/ApiResponseArbRow'
components:
schemas:
ProviderSourceReference:
type: object
description: 'One provider source reference for a market, selection or outcome: the provider''s exact value, the provider object family (namespace) and the field path it was read from.'
required:
- namespace
- field
- value
properties:
namespace:
type: string
pattern: ^[a-z0-9._-]+$
maxLength: 50
field:
type: string
maxLength: 120
value:
type: string
maxLength: 128
ArbSelection:
type: object
description: One leg of an arbitrage.
properties:
source:
type: string
visibility:
type: string
liquidityTier:
type: string
description: 'Current liquidity tier on exchange legs: VERY_LOW, LOW, MEDIUM, HIGH, VERY_HIGH or EXTREME.'
liquidityAmount:
type: number
format: double
marketType:
type: string
marketLabel:
type: string
marketSubtype:
type: string
period:
type: string
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.
lineValue:
type: number
format: double
targetValue:
type: number
format: double
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.'
selectionLabel:
type: string
playerId:
type: string
format: uuid
description: Returned only to an API key on a paid (non-Free) plan.
playerName:
type: string
odds:
type: integer
format: int32
stakeFraction:
type: number
format: double
marketSourceReferences:
type: array
items:
$ref: '#/components/schemas/ProviderSourceReference'
description: Returned only to an API key on a paid (non-Free) plan.
sourceReferences:
type: array
items:
$ref: '#/components/schemas/ProviderSourceReference'
description: Returned only to an API key on a paid (non-Free) plan.
eventSourceReferences:
type: array
items:
$ref: '#/components/schemas/SourceReference'
description: Returned only to an API key on a paid (non-Free) plan.
lastSeen:
type: string
selectionPrice:
type: array
description: 'GET /api/v1/historical/arbitrage only: price runs, oldest first.'
items:
$ref: '#/components/schemas/PriceHistoryRow'
marketId:
type: string
format: uuid
selectionId:
type: string
format: uuid
PriceHistoryRow:
type: object
description: One run of an unchanged price, oldest first. The last row's lastObservedAt is the selection's last sighting.
properties:
observedAt:
type: string
format: date-time
description: When this price was first seen.
lastObservedAt:
type: string
format: date-time
description: When this price was last seen unchanged.
priceAmerican:
type: integer
format: int32
priceDecimal:
type: number
format: double
dfsMultiplier:
type: number
format: double
description: DFS pick'em rows, instead of a price.
suspended:
type: boolean
description: Present (true) only while the line was suspended.
liquidityTier:
type: string
description: 'Exchange selections only: the liquidity tier during this run.'
ApiResponseHistoricalOddsRow:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/HistoricalOddsRow'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
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
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
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.
ApiResponseArbRow:
type: object
properties:
success:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/ArbRow'
nextCursor:
type: string
meta:
$ref: '#/components/schemas/Meta'
HistoricalOddsRow:
type: object
properties:
eventId:
type: string
sportsbook:
type: string
market:
type: string
marketSubtype:
type: string
period:
type: string
selection:
type: string
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).
line:
type: number
format: double
priceAmerican:
type: integer
format: int32
priceDecimal:
type: number
format: double
dfsMultiplier:
type: number
format: double
asOf:
type: string
selectionPrice:
type: array
description: Price runs, oldest first.
items:
$ref: '#/components/schemas/PriceHistoryRow'
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.'
ArbRow:
type: object
properties:
id:
type: string
type:
type: string
profitPercent:
type: number
format: double
competition:
type: string
eventId:
type: string
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'
eventStartTime:
type: string
playerId:
type: string
description: Resolved player id on player-prop arbitrage. Returned only to an API key on a paid (non-Free) plan.
playerName:
type: string
lastSeen:
type: string
selections:
type: array
items:
$ref: '#/components/schemas/ArbSelection'
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).'