Open capucine19 opened 3 years ago
Are there any informations when it will be done?
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)
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.
@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");
That is the response from your endpoint https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=215662-215663-215664-215665-215666-215667
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
But i can't get multiple fixture statistics like this on screen for multiple fixtures with only one ask to api
Yes, you can because these data are returned in the endpoint fixtures?ids=x-x-x as indicated in the documentation
Ok sorry. Now i see this stats thanks. :D
That is the response from your endpoint https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=215662-215663-215664-215665-215666-215667
The ids are limited to 20 fixture ids. please remove the limit just like it is done for live matches field
@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.
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?
I totally agree with @Phayrouz, if this limit is removed that would be super useful. @api-sports please consider this.
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.
@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?
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. 💪
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: @.***>
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: @.>
For example fixtures/league/ and put many league id like : 8,28,403 ... To get all matchs from this leagues.