API-BASKETBALL

부분 유료
Verified
분류별 API-SPORTS | 업데이트됨 23일 전 | Sports
인기

9.9 / 10

지연 시간

351ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

I wanted historical odds for 2021 season

Rapid account: Premier 911
premier911
5달 전

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 5달 전

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 5달 전

hello, anyone here?

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입