Games

Games endpoint documentation

Retrieve game IDs

POST /games

Retrieve all game IDs for a given sport - used to later retrieve odds or markets from each game.

Body

NameTypeDescriptionRequired

api_key

string

your API key

league

string

league of games

starts_before

string

yyyy-mm-dd include only games starting before date

starts_after

string

yyyy-mm-dd include only games starting after date

Python Example

import requests

body = {
    "api_key": "XXXX-XXXX-XXXX",
    "league": "NBA",
    "starts_before": "2024-04-29",
    "starts_after": "2024-04-28"
}

response = requests.post("https://api.propprofessor.com/games", json=body)

Response

[
    "NBA_Charlotte_Hornets_Philadelphia_76ers_2024-03-02",
    "NBA_Sacramento_Kings_Minnesota_Timberwolves_2024-03-02",
    "NBA_Washington_Wizards_Los_Angeles_Lakers_2024-03-01",
    "NBA_Milwaukee_Bucks_Chicago_Bulls_2024-03-02",
    "NBA_Washington_Wizards_Los_Angeles_Clippers_2024-03-02",
    "NBA_Indiana_Pacers_New_Orleans_Pelicans_2024-03-02",
    "NBA_Golden_State_Warriors_Toronto_Raptors_2024-03-02",
    "NBA_Miami_Heat_Denver_Nuggets_2024-03-01",
    "NBA_Portland_Trail_Blazers_Memphis_Grizzlies_2024-03-02",
    "NBA_Cleveland_Cavaliers_Detroit_Pistons_2024-03-02",
    "NBA_Dallas_Mavericks_Boston_Celtics_2024-03-02"
]

Last updated