API-BASKETBALL

免费增值
Verified
通过 API-SPORTS | 已更新 hace 24 días | Sports
人气

9.9 / 10

延迟

348ms

服务等级

100%

Health Check

N/A

返回所有讨论

I wanted historical odds for 2021 season

Rapid account: Premier 911
premier911
hace 5 meses

I got no response when using the following request,

Did I make a mistake or is their just no data?

import requests

url = “https://api-basketball.p.rapidapi.com/odds

querystring = {“season”:“2021”,“league”:“175”}

headers = {
“X-RapidAPI-Key”: key,
“X-RapidAPI-Host”: “api-basketball.p.rapidapi.com
}

response = requests.get(url, headers=headers, params=querystring)

season_2021 = response.json()

print(season_2021)

{‘get’: ‘odds’,
‘parameters’: {‘league’: ‘175’, ‘season’: ‘2021’},
‘errors’: [],
‘results’: 0,
‘response’: []}

Rapid account: Maetin
Maetin Commented hace 5 meses

Hi,

As indicated in the documentation, we keep a 7-day odds history, which explains why there is no answer.

https://api-sports.io/documentation/basketball/v1#tag/Odds

Best

Rapid account: Premier 911
premier911 Commented hace 5 meses

hello, anyone here?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论