{ "opencollection": "1.0.0", "info": { "name": "Stats API Documentation Analytics Sports API", "version": "2.0.0" }, "items": [ { "info": { "name": "Sports", "type": "folder" }, "items": [ { "info": { "name": "Get all players for a sport level", "type": "http" }, "http": { "method": "GET", "url": "https://statsapi.mlb.com/api/v1/sports/:sportId/players", "params": [ { "name": "sportId", "value": "", "type": "path", "description": "Top level organization of a sport" }, { "name": "season", "value": "", "type": "query", "description": "Season of play" }, { "name": "gameType", "value": "", "type": "query", "description": "Type of Game. Available types in /api/v1/gameTypes" }, { "name": "hasStats", "value": "", "type": "query", "description": "Returns sports that have individual player stats" }, { "name": "fields", "value": "", "type": "query", "description": "Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute" } ] }, "docs": "This endpoint allows you to pull all players for a given sport" }, { "info": { "name": "Get ALL MLB ballot for sport", "type": "http" }, "http": { "method": "GET", "url": "https://statsapi.mlb.com/api/v1/sports/:sportId/allSportBallot", "params": [ { "name": "sportId", "value": "", "type": "path", "description": "Top level organization of a sport" }, { "name": "season", "value": "", "type": "query", "description": "season" }, { "name": "fields", "value": "", "type": "query" } ] }, "docs": "This endpoint allows you to get all players for MLB ballot" }, { "info": { "name": "Get sports information", "type": "http" }, "http": { "method": "GET", "url": "https://statsapi.mlb.com/api/v1/sports", "params": [ { "name": "sportId", "value": "", "type": "path", "description": "Top level organization of a sport" }, { "name": "season", "value": "", "type": "query", "description": "Season of play" }, { "name": "fields", "value": "", "type": "query", "description": "Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute" }, { "name": "hasStats", "value": "", "type": "query", "description": "Returns sports that have individual player stats" }, { "name": "activeStatus", "value": "", "type": "query", "description": "Flag for fetching sports that are currently active (Y), inactive (N), pending (P), or all teams (B)" } ] }, "docs": "This endpoint allows you to pull sports" }, { "info": { "name": "Get sports information", "type": "http" }, "http": { "method": "GET", "url": "https://statsapi.mlb.com/api/v1/sports/:sportId", "params": [ { "name": "sportId", "value": "", "type": "path", "description": "Top level organization of a sport" }, { "name": "season", "value": "", "type": "query", "description": "Season of play" }, { "name": "fields", "value": "", "type": "query", "description": "Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute" }, { "name": "hasStats", "value": "", "type": "query", "description": "Returns sports that have individual player stats" }, { "name": "activeStatus", "value": "", "type": "query", "description": "Flag for fetching sports that are currently active (Y), inactive (N), pending (P), or all teams (B)" } ] }, "docs": "This endpoint allows you to pull sports" } ] } ], "bundled": true }