Get soccer matches for FCSP
import json
# curl -X 'GET' 'https://api.openligadb.de/getmatchesbyteamid/98/4/42' > out.json
with open("out.json", "r") as f:
for game in json.loads(f.read()):
# print(game["leagueName"])
if game["leagueName"] == "DFB Pokal 2026/2027":
print(f"{game['team1']['shortName']};{game['team2']['shortName']}")