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

If you've got any questions or comments about using this include, feel free to reach out to us at support@sportmonks.com.

Last updated