Includes
The "Includes" parameter allows you to specify additional information to be included in the API response. For xG values, we offer two primary includes:xGFixture
and the nested include lineups.xGLineup
.
Expected by Team
To retrieve the xG values by team for a fixture, we've introduced an include to use. You can use xGFixture
on the Fixture entities, to retrieve the xG values for teams participating in a match. You can use this include as follows:
https://api.sportmonks.com/v3/football/fixtures/date/2024-03-03??include=xGFixture
Expected by player
To retrieve the xG values by player for a fixture, we've introduced an include to use. You can use lineups.xGLineup
on the Fixture entities, to retrieve the xG values for players participating in a match. You can use this include as follows:
https://api.sportmonks.com/v3/football/fixtures/date/2024-03-03?include=lineups.xGLineup
Last updated
Was this helpful?