Skip to content

coreyjs/the-odds-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The-Odds-API

The Odds API (Unofficial) Client for the-odds-api.com

(This is basically a rough draft. Kinda quick and dirty for now)

You will need to acquire an API KEY from The Odds API to use this client.

pip install the-odds

Contact

Im available on Bluesky for any questions or just general chats about enhancements.

Installation and Setup

pip install the-odds
from the_odds import OddsApiClient

client = OddsApiClient(api_key='your_key')

# for debug logging and request logging
client = OddsApiClient(api_key='your_key', debug=True)

Available Endpoints

Get Sports

API Endpoint Info

Endpoint: /v4/sports
Method: GET
Formats: JSON

Param Type Ex Note
all bool True / False Optional - if this parameter is set to true (all=true), a list of both in and out of season sports will be returned
sports = client.v4.get_sports()