{
    "info": {
        "name": "Basketball API",
        "description": "Every endpoint of Basketball API. Put your key in the api_key variable.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{api_key}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://api.basketballapi.net/v1"
        },
        {
            "key": "api_key",
            "value": "bba_live_your_key"
        }
    ],
    "item": [
        {
            "name": "Games",
            "description": "Games, results, box scores, play by play, shots and closing prices.",
            "item": [
                {
                    "name": "Games",
                    "request": {
                        "method": "GET",
                        "description": "Games by day, dates, competition, season, team or status.",
                        "url": {
                            "raw": "{{baseUrl}}/games",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "games"
                            ],
                            "query": [
                                {
                                    "key": "date",
                                    "value": "",
                                    "description": "One day, as YYYY-MM-DD.",
                                    "disabled": true
                                },
                                {
                                    "key": "from",
                                    "value": "",
                                    "description": "The first day, as YYYY-MM-DD.",
                                    "disabled": true
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "description": "The last day, as YYYY-MM-DD.",
                                    "disabled": true
                                },
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "team",
                                    "value": "",
                                    "description": "Only this team, by its id (tm_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "status",
                                    "value": "",
                                    "description": "One of: scheduled, final, no_result.",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "One game",
                    "request": {
                        "method": "GET",
                        "description": "One game, with the score by period.",
                        "url": {
                            "raw": "{{baseUrl}}/games/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "games",
                                ":id"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The game, by its id (gm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Box score",
                    "request": {
                        "method": "GET",
                        "description": "Every player line and both team lines.",
                        "url": {
                            "raw": "{{baseUrl}}/games/:id/boxscore",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "games",
                                ":id",
                                "boxscore"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The game, by its id (gm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Play by play",
                    "request": {
                        "method": "GET",
                        "description": "Every event in order, with the clock and running score.",
                        "url": {
                            "raw": "{{baseUrl}}/games/:id/playbyplay",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "games",
                                ":id",
                                "playbyplay"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The game, by its id (gm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Shots",
                    "request": {
                        "method": "GET",
                        "description": "Every shot, with where it was taken from and whether it went in.",
                        "url": {
                            "raw": "{{baseUrl}}/games/:id/shots",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "games",
                                ":id",
                                "shots"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The game, by its id (gm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Yesterday's results",
                    "request": {
                        "method": "GET",
                        "description": "Yesterday's finished games.",
                        "url": {
                            "raw": "{{baseUrl}}/results/yesterday",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "results",
                                "yesterday"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                }
            ]
        },
        {
            "name": "Players",
            "description": "Players: search, game logs and season averages.",
            "item": [
                {
                    "name": "One player",
                    "request": {
                        "method": "GET",
                        "description": "One player, with the teams played for.",
                        "url": {
                            "raw": "{{baseUrl}}/players/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "players",
                                ":id"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The player, by its id (pl_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Player game log",
                    "request": {
                        "method": "GET",
                        "description": "A player's game log: one box line per game.",
                        "url": {
                            "raw": "{{baseUrl}}/players/:id/games",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "players",
                                ":id",
                                "games"
                            ],
                            "query": [
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "from",
                                    "value": "",
                                    "description": "The first day, as YYYY-MM-DD.",
                                    "disabled": true
                                },
                                {
                                    "key": "to",
                                    "value": "",
                                    "description": "The last day, as YYYY-MM-DD.",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The player, by its id (pl_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Find players",
                    "request": {
                        "method": "GET",
                        "description": "Find players by name or team, with the games they played and their last team. Send q (3 letters or more) or team.",
                        "url": {
                            "raw": "{{baseUrl}}/players",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "players"
                            ],
                            "query": [
                                {
                                    "key": "q",
                                    "value": "",
                                    "description": "Part of a name.",
                                    "disabled": true
                                },
                                {
                                    "key": "team",
                                    "value": "",
                                    "description": "Only this team, by its id (tm_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "Player seasons",
                    "request": {
                        "method": "GET",
                        "description": "A player's averages in each season, team and competition played.",
                        "url": {
                            "raw": "{{baseUrl}}/players/:id/seasons",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "players",
                                ":id",
                                "seasons"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The player, by its id (pl_…)."
                                }
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Stats",
            "description": "Standings, leaders, head to head, team form, player splits and betting trends, worked out from the games and prices.",
            "item": [
                {
                    "name": "Team form",
                    "request": {
                        "method": "GET",
                        "description": "A team's last games with margin, pace and ratings.",
                        "url": {
                            "raw": "{{baseUrl}}/teams/:id/form",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "teams",
                                ":id",
                                "form"
                            ],
                            "query": [
                                {
                                    "key": "last",
                                    "value": "",
                                    "description": "How many recent games, from 1 to 50. 10 if left out.",
                                    "disabled": true
                                },
                                {
                                    "key": "venue",
                                    "value": "",
                                    "description": "home or away: only those games.",
                                    "disabled": true
                                },
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The team, by its id (tm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Player splits",
                    "request": {
                        "method": "GET",
                        "description": "A player's averages split home and away, by result, month, opponent or starting role.",
                        "url": {
                            "raw": "{{baseUrl}}/players/:id/splits",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "players",
                                ":id",
                                "splits"
                            ],
                            "query": [
                                {
                                    "key": "by",
                                    "value": "",
                                    "description": "How to split: venue (the default), result, month, opponent or starter.",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The player, by its id (pl_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Standings",
                    "request": {
                        "method": "GET",
                        "description": "A season's table from its regular-season final scores: played, won, lost, points for and against, home, away, last ten and streak.",
                        "url": {
                            "raw": "{{baseUrl}}/standings",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "standings"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "Head to head",
                    "request": {
                        "method": "GET",
                        "description": "Two teams' meetings: the record from the first team's side, home and away, average score and the last games.",
                        "url": {
                            "raw": "{{baseUrl}}/teams/:id/head-to-head",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "teams",
                                ":id",
                                "head-to-head"
                            ],
                            "query": [
                                {
                                    "key": "opponent",
                                    "value": "",
                                    "description": "Only this team, by its id (tm_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "last",
                                    "value": "",
                                    "description": "How many recent games, from 1 to 50. 10 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The team, by its id (tm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Leaders",
                    "request": {
                        "method": "GET",
                        "description": "A season's leaders in one statistic, per game. Leave season out for the competition's latest season with box scores.",
                        "url": {
                            "raw": "{{baseUrl}}/stats/leaders",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "stats",
                                "leaders"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "stat",
                                    "value": "",
                                    "description": "One of: points, rebounds, assists, steals, blocks, three_made, offensive_rebounds, minutes, performance_index.",
                                    "disabled": true
                                },
                                {
                                    "key": "min_games",
                                    "value": "",
                                    "description": "Leave out angles with fewer games than this. 30 if left out.",
                                    "disabled": true
                                },
                                {
                                    "key": "top",
                                    "value": "",
                                    "description": "",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                }
            ]
        },
        {
            "name": "Reference",
            "description": "Competitions, seasons and teams: the ids everything else is asked by.",
            "item": [
                {
                    "name": "Competitions",
                    "request": {
                        "method": "GET",
                        "description": "Every competition held, with its seasons and games.",
                        "url": {
                            "raw": "{{baseUrl}}/competitions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "competitions"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "Seasons",
                    "request": {
                        "method": "GET",
                        "description": "Seasons of a competition, newest first.",
                        "url": {
                            "raw": "{{baseUrl}}/seasons",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "seasons"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "Teams",
                    "request": {
                        "method": "GET",
                        "description": "Teams, by competition and season.",
                        "url": {
                            "raw": "{{baseUrl}}/teams",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "teams"
                            ],
                            "query": [
                                {
                                    "key": "competition",
                                    "value": "",
                                    "description": "Only this competition, by its id (cp_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                },
                                {
                                    "key": "q",
                                    "value": "",
                                    "description": "Part of a name.",
                                    "disabled": true
                                },
                                {
                                    "key": "page",
                                    "value": "",
                                    "description": "Which page, from 1.",
                                    "disabled": true
                                },
                                {
                                    "key": "cursor",
                                    "value": "",
                                    "description": "The next_cursor from the last answer, to carry on.",
                                    "disabled": true
                                },
                                {
                                    "key": "per_page",
                                    "value": "",
                                    "description": "Records an answer, from 1 to 200. 50 if left out.",
                                    "disabled": true
                                }
                            ],
                            "variable": []
                        }
                    }
                },
                {
                    "name": "One team",
                    "request": {
                        "method": "GET",
                        "description": "One team: its country, the club's city, home arena, arena capacity and founding year where known, and the competitions and seasons it played.",
                        "url": {
                            "raw": "{{baseUrl}}/teams/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "teams",
                                ":id"
                            ],
                            "query": [],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The team, by its id (tm_…)."
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Team roster",
                    "request": {
                        "method": "GET",
                        "description": "Every player who played for a team in a season, with games, starts and averages. Leave season out for the team's latest.",
                        "url": {
                            "raw": "{{baseUrl}}/teams/:id/roster",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "teams",
                                ":id",
                                "roster"
                            ],
                            "query": [
                                {
                                    "key": "season",
                                    "value": "",
                                    "description": "Only this season, by its id (ss_…).",
                                    "disabled": true
                                }
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "",
                                    "description": "The team, by its id (tm_…)."
                                }
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Account",
            "description": "Your own key: plan, calls and limits.",
            "item": [
                {
                    "name": "Usage",
                    "request": {
                        "method": "GET",
                        "description": "Your plan, calls today and this month, limits and the days your plan reaches. Not counted.",
                        "url": {
                            "raw": "{{baseUrl}}/usage",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "usage"
                            ],
                            "query": [],
                            "variable": []
                        }
                    }
                }
            ]
        }
    ]
}