import requests
API_KEY = 'your_api_key_here' # Replace with your actual API key
BASE_URL = 'https://getbloombet.com/api'
SPORT = 'nfl' # Available values are 'nba' or 'nfl'
# Get live odds
response = requests.get(
f'{BASE_URL}/live',
params={
'api_key': API_KEY,
'sport': SPORT
}
)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Error: {response.status_code}")
print(response.text)
curl -X GET 'https://getbloombet.com/api/live/?api_key=your_api_key_here&sport=nfl' \
-H "Content-Type: application/json"