# Statpad API Instructions for AI Agents: - For clean Markdown of any page, append `.md` to the page URL - For section-specific indexes, append `/llms.txt` to any section URL - For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://statpad.dev/docs/_mcp/server ## Docs - [Introduction](https://statpad.dev/docs/get-started/introduction.md) - [Quickstart](https://statpad.dev/docs/quickstart.md): Make your first Statpad request, then stream a live game with resume and reconnect. - [API keys](https://statpad.dev/docs/keys.md): How to create a Statpad API key, send it over REST and the stream, keep it on your server, rotate it without downtime and revoke it. - [Sample responses](https://statpad.dev/docs/replay.md): Untrimmed Statpad API responses and a full change journal from real games, free to download and replay. - [Coverage by league](https://statpad.dev/docs/coverage.md): The leagues Statpad covers, which endpoints and fields each one fills, what isn't filled yet, and how much history there is. - [Rate limits](https://statpad.dev/docs/get-started/rate-limits.md) - [Errors](https://statpad.dev/docs/errors.md): Statpad's REST problem responses and stream error messages, every error code with its fix, and the WebSocket close codes. ## API Docs - [List leagues](https://statpad.dev/docs/api-reference/leagues/list-leagues.md): API Reference > Leagues - [List games](https://statpad.dev/docs/api-reference/games/list-games.md): API Reference > Games - [Get a game with its live state](https://statpad.dev/docs/api-reference/games/get-game.md): API Reference > Games - [List the players dressed for a game](https://statpad.dev/docs/api-reference/games/list-game-roster.md): API Reference > Games - [List a game's plays](https://statpad.dev/docs/api-reference/play-by-play/list-plays.md): API Reference > Play by Play - [List a game's drives or at-bats](https://statpad.dev/docs/api-reference/play-by-play/list-play-groups.md): API Reference > Play by Play - [Get a game's box score](https://statpad.dev/docs/api-reference/statistics/get-box-score.md): API Reference > Statistics - [List season leaders for a stat](https://statpad.dev/docs/api-reference/statistics/list-leaders.md): API Reference > Statistics - [Read a game's change stream](https://statpad.dev/docs/api-reference/changes/list-game-changes.md): API Reference > Changes - [List entities changed in a time window](https://statpad.dev/docs/api-reference/changes/list-changed-entities.md): API Reference > Changes - [List teams](https://statpad.dev/docs/api-reference/teams/list-teams.md): API Reference > Teams - [Get a team](https://statpad.dev/docs/api-reference/teams/get-team.md): API Reference > Teams - [Get a team's roster](https://statpad.dev/docs/api-reference/teams/get-team-roster.md): API Reference > Teams - [Get a team's latest depth chart](https://statpad.dev/docs/api-reference/teams/get-depth-chart.md): API Reference > Teams - [Get a player](https://statpad.dev/docs/api-reference/players/get-player.md): API Reference > Players - [List a player's season stats](https://statpad.dev/docs/api-reference/players/list-player-stats.md): API Reference > Players - [List current injuries](https://statpad.dev/docs/api-reference/league-news/list-injuries.md): API Reference > League News - [List transactions](https://statpad.dev/docs/api-reference/league-news/list-transactions.md): API Reference > League News - [stream](https://statpad.dev/docs/api-reference/stream/stream.md): API Reference > Stream ## OpenAPI Specification - [OpenAPI JSON](https://statpad.dev/docs/openapi.json): raw OpenAPI 3.1 specification for this API, JSON format - [OpenAPI YAML](https://statpad.dev/docs/openapi.yaml): raw OpenAPI 3.1 specification for this API, YAML format ## AsyncAPI Specification - [AsyncAPI JSON](https://statpad.dev/docs/asyncapi.json): raw AsyncAPI 2.6.0 specification for the WebSocket channels, JSON format - [AsyncAPI YAML](https://statpad.dev/docs/asyncapi.yaml): raw AsyncAPI 2.6.0 specification for the WebSocket channels, YAML format