api-sports / public-roadmap

80 stars 7 forks source link

add Get several league #75

Open capucine19 opened 3 years ago

capucine19 commented 3 years ago

For example fixtures/league/ and put many league id like : 8,28,403 ... To get all matchs from this leagues.

zerq98 commented 1 year ago

Are there any informations when it will be done?

Adinomis commented 1 year ago

And/or, for example: instead of: https://api-football-v1.p.rapidapi.com/v3/standings?season=X&league=Y for multi-standings in one request, use this: https://api-football-v1.p.rapidapi.com/v3/standings_multi?standingsm(season,id)

zerq98 commented 1 year ago

That feature will be necessary for example when you want to get detailed statistics for all teams in season in league. What exactly? When i want to display table with corners, red cards etc. For now i need to ask API 380 times for EPL.

api-sports commented 1 year ago

@zerq98 zerq98, you can use the parameters "ids" for this. and get multiple fixtures data like : fixtures?ids=x-x-x-x-x

// Get fixture from severals fixtures {ids} // In this request events, lineups, statistics fixture and players fixture are returned in the response get("https://v3.football.api-sports.io/fixtures?ids=215662-215663-215664-215665-215666-215667");

zerq98 commented 1 year ago

That is the response from your endpoint https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=215662-215663-215664-215665-215666-215667

image

api-sports commented 1 year ago

It's the endpoint fixtures not fixtures/statistics as indicated in the documentation. But with fixtures?ids=x-x-x you get fixtures/statistics too

==> https://www.api-football.com/documentation-v3#tag/Fixtures/operation/get-fixtures

zerq98 commented 1 year ago

But i can't get multiple fixture statistics like this on screen for multiple fixtures with only one ask to api image

api-sports commented 1 year ago

Yes, you can because these data are returned in the endpoint fixtures?ids=x-x-x as indicated in the documentation

zerq98 commented 1 year ago

Ok sorry. Now i see this stats thanks. :D

Phayrouz commented 1 year ago

That is the response from your endpoint https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=215662-215663-215664-215665-215666-215667

image

The ids are limited to 20 fixture ids. please remove the limit just like it is done for live matches field

Phayrouz commented 1 year ago

@zerq98 zerq98, you can use the parameters "ids" for this. and get multiple fixtures data like : fixtures?ids=x-x-x-x-x

// Get fixture from severals fixtures {ids} // In this request events, lineups, statistics fixture and players fixture are returned in the response get("https://v3.football.api-sports.io/fixtures?ids=215662-215663-215664-215665-215666-215667");

And this is limited to 20 fixtures id.

Phayrouz commented 1 year ago

For example fixtures/league/ and put many league id like : 8,28,403 ... To get all matchs from this leagues.

Please, When will this be done?

anton-ivanov-feefo commented 1 year ago

I totally agree with @Phayrouz, if this limit is removed that would be super useful. @api-sports please consider this.

CWilson4815 commented 1 year ago

This would be a very good addition to the API service as I currently have to call fixtures for every league in the world and then filter down to the few that I require.

filipekav commented 1 year ago

@api-sports is there any update on when this option to get matches from multiple leagues in the same call will be available in the api?

JayBox325 commented 6 months ago

Back to see if there's how long the testing process is? Very excited to come and raise this as a request to see it's being tested. 💪

CWilson4815 commented 6 months ago

I haven't managed to test it, is it possible yet?

On Fri, 8 Dec 2023 at 15:30, Jay @.***> wrote:

Back to see if there's how long the testing process is? Very excited to come and raise this as a request to see it's being tested. 💪

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

JayBox325 commented 6 months ago

It's not public. But in their roadmap, it's moved into the "testing" column.

I haven't managed to test it, is it possible yet? On Fri, 8 Dec 2023 at 15:30, Jay @.> wrote: Back to see if there's how long the testing process is? Very excited to come and raise this as a request to see it's being tested. 💪 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>