api-sports / public-roadmap

82 stars 5 forks source link

Allow specifying multiple league IDs for fixture #362

Open imduchy opened 4 months ago

imduchy commented 4 months ago

Hello,

It would be great if we could specify multiple league IDs in the /fixtures endpoint like so

response = requests.get(
    "https://v3.football.api-sports.io/fixtures",
    params={ 
        "team": 541,
        "season": 2024,
        "league": "140-150-160",  # <-- Same format as when specifying multiple 'status' values
        "next": 1
    }
)

One of the use cases is to fetch the upcoming game of a team for one of the specified leagues. E.g., if I want to disregard "friendlies" or any other competition, and explicitly list leagues I'm interested in.

Hope it's clear. Thanks a lot for considering this.