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: xGLineup and xGFixture.

Expected by player

To retrieve the xG values by player for a fixture, we've introduced an include to use. You can use 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=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

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

Last updated