Tennis API - ATP WTA ITF

फ्रीमियम
द्वारा Matchstat | अपडेट किया गया לפני חודשיים | Sports
लोकप्रियता

9.5 / 10

लेटेंसी

372ms

सेवा का स्तर

98%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Python Requests

Rapid account: Arthurgoutard 95
arthurgoutard95
לפני חודש

Hi,

I’m trying to retrieve data through “getPlayerMatchStats” endpoint but I’m failing to use the filterkey GameYear below. Has anyone used it successfully and can he provide me with some guidance ?

import requests
import json

url = “https://tennis-api-atp-wta-itf.p.rapidapi.com/tennis/v2/atp/player/match-stats/5992

headers = {“X-RapidAPI-Key”: “66585f10a9msh0487f2862ec8cd4p1a893djsn75cb69118fb4”,
“X-RapidAPI-Host”: “tennis-api-atp-wta-itf.p.rapidapi.com

}

params = {
“GameYear”: “2023”
}

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

if response.status_code == 200:
data = response.json()

print(json.dumps(data, indent=4))

else:
print(f"Erreur lors de la requête : {response.status_code}")

Rapid account: Jjrm 365 K I Fr 3 Nx Od V
jjrm365-kIFr3Nx_odV Commented לפני 21 ימים

Hello Arthur,
I guess there is no GameYear param available for that API

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें