My API
import requests
url = "https://football-prediction-api.p.rapidapi.com/api/v2/predictions"
querystring = {"market":"classic","iso_date":"2022-10-09","federation":"UEFA"} # the date, match type, and competition
headers = {
"X-RapidAPI-Key": "686830ba27msh513db9752c312c4p1115d7jsn310f307263ee",
"X-RapidAPI-Host": "football-prediction-api.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers, params=querystring)
# print(response.text)
teams = response.json().get('data') # set teams equal data
for team in teams: # teams is a list above
if team["away_team"] == "PSV Eindhoven": # this filters for games by PSV
for key, value in team.items(): # this finds key, value pairs in in this game by PSV
print(key, value)