Statshawk Contests API

Contest detail (the team-Match home/away/score view) and the person-keyed boxscore — one typed per-phase stat line per appearance, with a `finalized` flag.

GitHub OpenAPI

Operations 11

GET /v1/contests/{contest_id} GET /v1/contests/{contest_id} — assembled team-Match row #
GET /v1/contests/{contest_id}/audit Get v1 contests contest id audit #
GET /v1/contests/{contest_id}/boxscore GET /v1/contests/{contest_id}/boxscore — appearances + typed stat lines #
GET /v1/contests/{contest_id}/detail GET /v1/contests/{contest_id}/detail — generalized contest row #
GET /v1/contests/{contest_id}/matchup GET /v1/contests/{contest_id}/matchup — the pregame matchup card (probable… #
GET /v1/contests/{contest_id}/odds Get v1 contests contest id odds #
GET /v1/contests/{contest_id}/odds/history Get v1 contests contest id odds history #
GET /v1/contests/{contest_id}/odds/markets Get v1 contests contest id odds markets #
GET /v1/contests/{contest_id}/persons/{person_id}/stats/{measure_id} GET /v1/contests/{contest_id}/persons/{person_id}/stats/{measure_id} — one… #
GET /v1/contests/{contest_id}/persons/{person_id}/stats/{measure_id}/history GET /v1/contests/{contest_id}/persons/{person_id}/stats/{measure_id}/history… #
GET /v1/contests/{contest_id}/play-by-play Read stored baseball plate appearances and pitches, or football drives and… #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/statshawk-ai:statshawk-ai-contests-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

statshawk-ai-contests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stat Engine Contests API
  description: 'Normalized, source-agnostic sports data API. Major competition coverage includes NBA, MLB, NFL, NHL, KBO, NCAA (basketball and football), and soccer competitions such as EPL, La Liga, Bundesliga, Serie A, Ligue 1, UCL, MLS, and FIFA tournaments. The complete canonical sport identifiers understood by the API are: `basketball`, `football`, `baseball`, `hockey`, `soccer`, `golf`, `tennis`, `racing`, `mma`, `lacrosse`, `rugby`, `volleyball`, `australian_football`, `rugby_league`, `water_polo`, and `field_hockey`. These identifiers describe data shape; call `GET /v1/competitions` for the currently registered competition slugs and `GET /v1/competitions/{comp}/capabilities` for the phases, measures, and standings tables available for a particular competition. Core resources — persons, teams, competitions/editions, contests, and entrants — carry minted ids that serialize as `_` (`per_`, `team_`, `comp_`, `edt_`, `game_`, `cst_`, `ent_`); the prefix is part of the type. Stats are typed per-phase and reconstruct as-of any ingested instant from appearance facts. ## Endpoint groups


    | Group | Base path | Description |

    |-------|-----------|-------------|

    | Persons | `/v1/persons` | Profile, appearances, game log, memberships, season stats, per-person capability discovery, composed player overview |

    | Teams | `/v1/teams` | Profile, as-of roster, games, game log, season stats |

    | Competitions | `/v1/competitions` | Competitions, editions, edition participants/games/standings, capability discovery |

    | Contests | `/v1/contests` | Generalized contest detail for team matches, individual matches, and field/N-ary events; team-match boxscores and sport-scoped play-by-play where available |

    | Analysis | `/v1/analysis` | Player-prop card and team comparison (all plans; metered at analysis weights) |

    | Account | `/v1/account` | Authenticated plan usage (unmetered — checking quota never consumes units) |

    | Assets | `/v1/assets` | Team logo PNGs (proxied, 7-day cache) |


    ## Authentication


    All endpoints in this spec require an API key passed in the `X-API-Key` request header. ## Operational endpoints


    Liveness/readiness probes (`/healthz`, `/readyz`, `/metrics`) and ingest administration endpoints (`/v1/ingest/...`) are intentionally **not documented in this spec**. They are operator-only surfaces and live in a separate internal spec; see infra docs for access. ## Response envelope


    Successful JSON responses wrap their payload in the following envelope. The team-logo asset endpoint returns PNG bytes instead:


    ```json

    {

    "data": {... },

    "meta": {

    "request_id": "uuid",

    "source": "source identifier",

    "fetched_at": "2025-01-01T00:00:00Z",

    "cache": "HIT | MISS | STALE",

    "version": "v1"

    }

    }

    ```


    Error responses use `{ "error": { "code": "...", "message": "..." } }`. `meta.request_id` uniquely identifies the request — quote it when filing support tickets. `meta.cache` is reserved for response-layer caching (`HIT` / `STALE` / `MISS`); entity reads use the canonical store, with some resources cached after assembly. `HIT` or `STALE` describes the response cache, not current upstream freshness. ## Freshness


    Reads are served from the canonical store, which ingest refreshes out-of-band on a per-resource cadence:


    - **Live box scores** are re-ingested within minutes of in-game updates while a slate is live. - **Standings** are recomputed whenever a game in the edition finalizes. - **Schedules** are re-synced several times per day. - **Final box scores** describe completed contests, but individual credits and other statistics remain subject to later source corrections. Historical coverage can remain incomplete while out-of-band repair proceeds. `meta.fetched_at` reports response assembly time, or a cached store-fetch timestamp when the read path propagates one. Handler caches such as the stat board use response assembly time even on `HIT` or `STALE`. This field cannot reliably measure payload age and does not report the last upstream correction time.'
  license:
    name: ''
  version: 1.0.0
  contact:
    name: statshawk support
    email: support@statshawk.ai
    url: https://statshawk.ai/contact
  termsOfService: https://statshawk.ai/terms
  x-versioning:
    strategy: url-path
    current: v1
    compatibility: additive-only within a major version, except documented changelog exceptions (2026-09-11 quota hard-stop under /v1)
    policy: https://statshawk.ai/docs/getting-started/versioning
  x-deprecation-policy:
    headers:
    - Deprecation
    - Sunset
    minimumNoticeDays: 90
    majorVersionRetirementMonths: 12
    changelog: https://statshawk.ai/docs/changelog
    policy: https://statshawk.ai/docs/getting-started/versioning
  x-permissions:
    access: read-only
    apiKeyEnvironments:
    - sk_live_
    - sk_test_
    mcpOAuthScopes:
    - stats:read
    - analysis:read
    policy: https://statshawk.ai/docs/getting-started/permissions
servers:
- url: https://api.statshawk.ai
security:
- api_key: []
- bearerAuth: []
tags:


# --- truncated at 32 KB (206 KB total) ---
# Full source: https://artifacts.apis.io/statshawk-ai/openapi/statshawk-ai-contests-api-openapi.yml