API-FOOTBALL

FREEMIUM
Verified
By API-SPORTS | Updated 4 days ago | Sports
Popularity

10 / 10

Latency

386ms

Service Level

100%

Health Check

N/A

Back to All Discussions

fixtures?team=""&last="" endpoint dont return events or statistics

Rapid account: Bairrada 97
bairrada97
3 years ago

Is there any reason why the fixtures?team=""&last="" endpoint doesnt retrieve the complete data compared to fixtures?id="" endpoint?
I think doesnt make sense to only return partial data since will be really usefull to have access to statistics and events of a fixture .

At the moment its not friendly at all to get the statistics and events from previous fixtures of a team, I have to call fixtures?team=""&last="" get the ID from each fixture and then call separately the fixtures?id="" for each fixture

Rapid account: Api Sports
api-sports Commented 3 years ago

Hi

It’s indicated in the documentation only endpoint :

  • fixtures?id= return all data for a fixture like “events, lineups, statistics, players statistics”
  • fixtures?live = return all events for all fixtures

Others fixtures parameters return only the fixtures data.

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

// Get fixture from one fixture {id}
// In this request events, lineups, statistics fixture and players fixture are returned in the response
get(“https://v3.football.api-sports.io/fixtures?id=215662”);

// Get all available fixtures in play
// In this request events are returned in the response
get(“https://v3.football.api-sports.io/fixtures?live=all”);

Best

Join in the discussion - add comment below:

Login / Signup to post new comments