โšฝ
API 3.0
OddsCoreFootball APIAPI 2 (Deprecated)WidgetsContact
Football API 3.0
Football API 3.0
  • Welcome
    • ๐Ÿ›ฌWelcome
    • ๐Ÿ™‹โ€โ™‚๏ธGetting Started
    • ๐Ÿค“What can you do with Sportmonks' data?
    • ๐Ÿ†•Differences between API 2 and API 3
      • API Changes
      • Syntax and filters
      • New endpoints and data features
    • ๐Ÿ”Authentication
    • ๐Ÿ‘ถMaking your first request
    • ๐Ÿ”งBest Practices
  • API coach (BETA)
  • Changelog
    • ๐Ÿ“„Changelog
    • ๐Ÿ“Changelog (BETA)
  • API
    • ๐Ÿ’กRequest options
      • Includes
        • Nested includes
      • Selecting fields
      • Filtering
      • Selecting and filtering
      • Ordering and sorting
    • ๐Ÿ”คSyntax
    • โ™พ๏ธRate limit
    • ๐Ÿ‘€Meta description
    • ๐Ÿ“”Error codes
      • Include Exceptions
      • Filtering and Complexity Exceptions
      • Other Exceptions
    • ๐Ÿ“šCode libraries
    • Translations (beta)
    • Demo response files
    • Data corrections
    • API 2.0 (Deprecated)
  • Endpoints and Entities
    • Endpoints
      • ๐Ÿ“กLivescores
        • GET Inplay Livescores
        • GET All Livescores
        • GET Latest Updated Livescores
      • ๐Ÿฅ…Fixtures
        • GET All Fixtures
        • GET Fixture by ID
        • GET Fixtures by Multiple IDs
        • GET Fixtures by Date
        • GET Fixtures by Date Range
        • GET Fixtures by Date Range for Team
        • GET Fixtures by Head To Head
        • GET Fixtures by Search by Name
        • GET Upcoming Fixtures by Market ID
        • GET Upcoming Fixtures by TV Station ID
        • GET Past Fixtures by TV Station ID
        • GET Latest Updated Fixtures
      • ๐Ÿ›ฐ๏ธStates
        • GET All States
        • GET State by ID
      • โŒจ๏ธTypes
        • GET All Types
        • GET Type by ID
        • GET Type by Entity
      • ๐Ÿ†Leagues
        • GET All Leagues
        • GET League by ID
        • GET Leagues by Live
        • GET Leagues by Fixture Date
        • GET Leagues by Country ID
        • GET Leagues Search by Name
        • GET All Leagues by Team ID
        • GET Current Leagues by Team ID
      • ๐Ÿ—“๏ธSeasons
        • GET All Seasons
        • GET Seasons by ID
        • GET Seasons by Team ID
        • GET Seasons by Search by Name
      • ๐Ÿ“ŠStatistics
        • GET Season Statistics by Participant
        • GET Stage Statistics by ID
        • GET Round Statistics by ID
      • ๐Ÿ“…Schedules
        • GET Schedules by Season ID
        • GET Schedules by Team ID
        • GET Schedules by Season ID and Team ID
      • ๐ŸชœStages
        • GET All Stages
        • GET Stage by ID
        • GET Stages by Season ID
        • GET Stages by Search by Name
      • ๐Ÿ”‚Rounds
        • GET All Rounds
        • GET Round by ID
        • GET Rounds by Season ID
        • GET Rounds by Search by Name
      • ๐Ÿ”ขStandings
        • GET All Standings
        • GET Standings by Season ID
        • GET Standings by Round ID
        • GET Standing Correction by Season ID
        • Get Live Standings by League ID
      • ๐Ÿฅ‡Topscorers
        • GET Topscorers by Season ID
        • GET Topscorers by Stage ID
      • ๐ŸƒTeams
        • GET All Teams
        • GET Team by ID
        • GET Teams by Country ID
        • GET Teams by Season ID
        • GET Teams by Search by Name
      • ๐Ÿง‘Players
        • GET All Players
        • GET Player by ID
        • GET Players by Country ID
        • GET Players by Search by Name
        • GET Last Updated Players
      • ๐Ÿง‘โ€๐ŸฆฑTeam Squads
        • GET Team Squad by Team ID
        • GET Extended Team Squad by Team ID
        • GET Team Squad by Team and Season ID
      • ๐Ÿ‘จโ€๐ŸซCoaches
        • GET All Coaches
        • GET Coach by ID
        • GET Coaches by Country ID
        • GET Coaches Search by Name
        • GET Last Updated Coaches
      • ๐Ÿ•ด๏ธReferees
        • GET All Referees
        • GET Referee by ID
        • GET Referees by Country ID
        • GET Referees by Season ID
        • GET Referees Search by Name
      • โ†”๏ธTransfers
        • GET All Transfers
        • GET Transfer by ID
        • GET Latest Transfers
        • GET Transfers Between Date Range
        • GET Transfers by Team ID
        • GET Transfers by Player ID
      • ๐ŸŸ๏ธVenues
        • GET All Venues
        • GET Venue by ID
        • GET Venues by Season ID
        • GET Venues by Search by Name
      • ๐Ÿ“บTV Stations
        • GET All TV Stations
        • GET TV Station by ID
        • GET TV Stations by Fixture ID
      • ๐Ÿ”ฎExpected (xG)
        • GET Expected by Team
        • GET Expected by Player
      • ๐Ÿ”ญPredictions
        • GET Probabilities
        • GET Predictability by League ID
        • GET Probabilities by Fixture ID
        • GET Value Bets
        • GET Value Bets by Fixture ID
      • ๐Ÿง™Standard Odds Feed
        • ๐Ÿ‘“Pre-match Odds
          • GET All Odds
          • Get Odds by Fixture ID
          • GET Odds by Fixture ID and Bookmaker ID
          • GET Odds by Fixture ID and Market ID
          • GET Last Updated Odds
        • ๐Ÿง Inplay Odds
          • GET All Inplay Odds
          • GET Inplay Odds by Fixture ID
          • GET Inplay Odds by Fixture ID and Bookmaker ID
          • GET Inplay Odds by Fixture ID and Market ID
          • GET Last Updated Inplay Odds
      • ๐Ÿง™โ€โ™‚๏ธPremium Odds Feed
        • ๐Ÿ•ถ๏ธPremium Pre-match Odds
          • GET All Premium Odds
          • Get Premium Odds by Fixture ID
          • GET Premium Odds by Fixture ID and Bookmaker ID
          • GET Premium Odds by Fixture ID and Market ID
          • GET Updated Premium Odds Between Time Range
          • GET Updated Historical Odds Between Time Range
          • GET All Historical Odds
      • ๐Ÿ›’Markets
        • GET All Markets
        • GET All Premium Markets
        • GET Market by ID
        • GET Market by Search
      • ๐Ÿ“‘Bookmakers
        • GET All Bookmakers
        • GET All Premium Bookmakers
        • GET Bookmaker by ID
        • GET Bookmaker by Search
        • GET Bookmaker by Fixture ID
      • ๐Ÿ“ฐNews
        • GET Pre-Match News
        • GET Pre-Match News by Season ID
        • GET Pre-Match News for Upcoming Fixtures
        • GET Post-Match News
        • GET Post-Match News by Season ID
      • โš”๏ธRivals
        • GET All Rivals
        • GET Rivals by Team ID
      • ๐ŸŽ™๏ธCommentaries
        • GET All Commentaries
        • GET Commentaries by Fixture ID
    • Entities
      • ๐Ÿฅ…Fixture
      • ๐Ÿ†League, Season, Schedule, Stage and Round
      • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘Team, Player, Squad, Coach and Referee
      • ๐Ÿ”ขStatistic
      • ๐Ÿ”ฎExpected
      • ๐Ÿฅ‡Standing and Topscorer
      • ๐Ÿ”ญOdd and Prediction
      • Other
  • Tutorials and Guides
    • Tutorials
      • Introduction
        • Make your first request
        • Set your time zone
        • Pagination
      • Enrich your response
        • Nested includes
          • Syntax and relations
      • Includes
        • Events
        • States
        • Periods
        • Scores
        • Participants
        • Lineups
        • ballCoordinates
        • Pressure Index
        • Tips and tricks
      • Filter and select fields
        • Selecting fields
        • Filtering
        • Selecting and filtering
      • Leagues and seasons
        • Leagues
        • Seasons
      • Season schedule
        • Schedules
        • Stages
        • Rounds
      • Livescores and fixtures
        • Livescores
        • Fixtures
      • Lineups and formations
      • Statistics
        • Statistics types
        • Season statistics
        • Fixture statistics
        • Team statistics
        • Players statistics
      • Teams, players, coaches and referees
        • Teams
        • Players
        • Coaches
        • Referees
      • Standings
        • Season standings
        • Topscorer standings
      • Odds and predictions
        • Bookmakers
        • Markets
        • Pre-match odds
        • Live(Inplay) odds
        • hasOdds
        • Predictions
          • Probabilities
          • Value Bet
      • Expected
        • Endpoints
        • Includes
        • Coverage
      • News
        • Pre-match News
        • Post-match News
      • Placeholders
      • Timezone parameters on different endpoints
    • Guides
      • How-to use components
      • How-to use the Football API with Postman
      • How-to use the Football API tester
      • How-to use the Football API ID finder
      • How-to build a livescore website
      • How-to use the Predictions API
      • How-to build a match page
      • How-to build a custom plan
      • How-to build a match page with odds
      • How-to use xG data
      • How-to build a news website
      • How-to build a fantasy game guide
      • How-to use the new Champions League data
      • How-to build your World Cup application
      • How-to build a team page
      • How-to keep your database in SYNC
      • How-to use team mode in MySportmonks
    • Programming languages
      • A developers guide: Unleashing the power of the football API with JSON
      • A developers guide: Unleashing the power of the football API with PHP
      • A developers guide: Unleashing the power of the football API with Python
  • Definitions
    • ๐Ÿ“”Response Codes
    • ๐Ÿ›ฐ๏ธStates
    • โŒจ๏ธTypes
      • Lineups, positions and formations
      • Events
      • Statistics
        • Coach statistics
        • Referee statistics
        • Stage statistics
        • Season statistics
        • Fixture statistics
        • Team statistics
        • Player statistics
      • Expected
      • Leagues and stages
      • Standings
      • Transfers
      • Highlights
      • Weather and pitch
  • FAQ
    • API 3.0
    • Odds
    • Integration
    • Sportmonks
  • Quicklinks
    • Postman
    • ID Finder
    • Sportmonks
    • MySportmonks
    • Football widgets
    • Plans and Pricing
    • Data features
    • FAQ
Powered by GitBook
On this page
  • Expected by Team (xG by Team)
  • Expected by player (xG by Player)
  • Expected Points Table (xPTS Table)

Was this helpful?

  1. Tutorials and Guides
  2. Tutorials
  3. Expected

Includes

PreviousEndpointsNextCoverage

Last updated 7 months ago

Was this helpful?

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 (xG by Team)

Fixtures

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": [
        {
          "id": 27141258,
          "fixture_id": 18842545,
          "type_id": 5304,
          "participant_id": 9,
          "data": {
            "value": 3.6439
          },
          "location": "home"
        },
        {
          "id": 27141259,
          "fixture_id": 18842545,
          "type_id": 5304,
          "participant_id": 14,
          "data": {
            "value": 0.3841
          },
          "location": "away"
        },
        {
          "id": 27141260,
          "fixture_id": 18842545,
          "type_id": 5305,
          "participant_id": 9,
          "data": {
            "value": 4.4602
          },
          "location": "home"
        },
        {
          "id": 27141261,
          "fixture_id": 18842545,
          "type_id": 5305,
          "participant_id": 14,
          "data": {
            "value": 0.2255
          },
          "location": "away"
        }
      ]
    }

Seasons

To retrieve the xG values by team for a season, we've implemented this to an existing include for you to use. You can use statistics.details.type on the endpoints, to retrieve the xG values for teams participating in a season. You can use this include as follows:

https://api.sportmonks.com/v3/football/teams/19?include=statistics.details.type&filters=teamStatisticSeasons:23614
{
    "data": {
        "id": 19,
        "sport_id": 1,
        "country_id": 462,
        "venue_id": 204,
        "gender": "male",
        "name": "Arsenal",
        "short_code": "ARS",
        "image_path": "https://cdn.sportmonks.com/images/soccer/teams/19/19.png",
        "founded": 1886,
        "type": "domestic",
        "placeholder": false,
        "last_played_at": "2024-08-31 11:30:00",
        "statistics": [
            {
                "id": 346678,
                "team_id": 19,
                "season_id": 23614,
                "has_values": true,
                "details": [
                    {
                        "id": 4545753,
                        "team_statistic_id": 346678,
                        "type_id": 211,
                        "value": {
                            "rating": 8.13,
                            "player_id": 16827155,
                            "player_name": "Bukayo Saka"
                        },
                        "type": {
                            "id": 211,
                            "name": "Highest Rated Player",
                            "code": "highest-rated-player",
                            "developer_name": "HIGHEST_RATED_PLAYER",
                            "model_type": "statistic",
                            "stat_group": null
                        }
                    },
                    {
                        "id": 4545734,
                        "team_statistic_id": 346678,
                        "type_id": 5304,
                        "value": {
                            "expected": 3.8753,
                            "actual": 5,
                            "difference": 1.125
                        },
                        "type": {
                            "id": 5304,
                            "name": "Expected Goals (xG)",
                            "code": "expected-goals",
                            "developer_name": "EXPECTED_GOALS",
                            "model_type": "statistic",
                            "stat_group": "offensive"
                        }
                    },

Please note that not all season xG types are available yet. At the moment we only offer xG (type ID: 5304).

Expected by player (xG by Player)

Fixtures

To retrieve the xG values by player for a fixture, we've introduced a nested 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
        {
          "id": 8193384466,
          "sport_id": 1,
          "fixture_id": 18842545,
          "player_id": 154421,
          "team_id": 9,
          "position_id": 27,
          "formation_field": "5:1",
          "type_id": 11,
          "formation_position": 11,
          "player_name": "Erling Haaland",
          "jersey_number": 9,
          "expected": [
            {
              "id": 1068406356,
              "fixture_id": 18842545,
              "player_id": 154421,
              "team_id": 9,
              "lineup_id": 8193384466,
              "type_id": 5304,
              "data": {
                "value": 1.1634
              }
            },
            {
              "id": 1068406358,
              "fixture_id": 18842545,
              "player_id": 154421,
              "team_id": 9,
              "lineup_id": 8193384466,
              "type_id": 5305,
              "data": {
                "value": 1.1634
              }
            }
          ]

Seasons

We've added this to an existing include for you to use in order to access the xG values by player for a given season. To obtain the xG values for the teams taking part in a season, use the statistics.details.type include on the endpoints. This can be put to use for the following:

https://api.sportmonks.com/v3/football/players/26823?include=statistics.details.type&filters=teamStatisticSeasons:23614
{
    "data": {
        "id": 26823,
        "sport_id": 1,
        "country_id": 1578,
        "nationality_id": 1578,
        "city_id": null,
        "position_id": 26,
        "detailed_position_id": 150,
        "type_id": 26,
        "common_name": "M. ร˜degaard",
        "firstname": "Martin",
        "lastname": "ร˜degaard",
        "name": "Martin ร˜degaard",
        "display_name": "M. ร˜degaard",
        "image_path": "https://cdn.sportmonks.com/images/soccer/players/7/26823.png",
        "height": 178,
        "weight": 68,
        "date_of_birth": "1998-12-17",
        "gender": "male",
        "statistics": [
            {
                "id": 1324089238,
                "player_id": 26823,
                "team_id": 19,
                "season_id": 23614,
                "has_values": true,
                "position_id": 26,
                "jersey_number": 8,
                "details": [
                    {
                        "id": 37872088,
                        "player_statistic_id": 1324089238,
                        "type_id": 40,
                        "value": {
                            "total": 3
                        },
                        "type": {
                            "id": 40,
                            "name": "Captain",
                            "code": "captain",
                            "developer_name": "CAPTAIN",
                            "model_type": "statistic",
                            "stat_group": "overall"
                        }
                    },
                    {
                        "id": 37872190,
                        "player_statistic_id": 1324089238,
                        "type_id": 5304,
                        "value": {
                            "expected": 0.46190000000000003,
                            "actual": 0,
                            "difference": -0.462
                        },
                        "type": {
                            "id": 5304,
                            "name": "Expected Goals (xG)",
                            "code": "expected-goals",
                            "developer_name": "EXPECTED_GOALS",
                            "model_type": "statistic",
                            "stat_group": "offensive"
                        }
                    },

Please note that not all season xG types are available yet. At the moment we only offer xG (type ID: 5304).

Expected Points Table (xPTS Table)

https://api.sportmonks.com/v3/football/standings/seasons/23614?include=details.type
{
    "data": [
        {
            "id": 229327,
            "participant_id": 9,
            "sport_id": 1,
            "league_id": 8,
            "season_id": 23614,
            "stage_id": 77471288,
            "group_id": null,
            "round_id": 339237,
            "standing_rule_id": 117804,
            "position": 1,
            "result": "equal",
            "points": 9,
            "details": [
                {
                    "id": 3131200680,
                    "standing_type": "standing",
                    "standing_id": 229327,
                    "type_id": 146,
                    "value": 1,
                    "type": {
                        "id": 146,
                        "name": "Away Goals Conceded",
                        "code": "away-conceded",
                        "developer_name": "AWAY_CONCEDED",
                        "model_type": "standings",
                        "stat_group": "away"
                    }
                },
                {
                    "id": 3131200681,
                    "standing_type": "standing",
                    "standing_id": 229327,
                    "type_id": 179,
                    "value": 7,
                    "type": {
                        "id": 179,
                        "name": "Goal Difference",
                        "code": "goal-difference",
                        "developer_name": "OVERALL_GOAL_DIFFERENCE",
                        "model_type": "standings",
                        "stat_group": null
                    }
                {
                    "id": 3432092037,
                    "standing_type": "standing",
                    "standing_id": 229327,
                    "type_id": 7939,
                    "value": 6,
                    "type": {
                        "id": 7939,
                        "name": "Expected Points (xPTS)",
                        "code": "expected-points",
                        "developer_name": "EXPECTED_POINTS",
                        "model_type": "statistic",
                        "stat_group": "offensive"
                    }
                }
            ]
        },

To retrieve the xPTS table for a specific league, you can use an include that already exists and is widely used within our API. You can use the details.type include on any of the endpoints. There you'll find the type ID 7393 for Expected Points (xPTS). Here's how you use that include:

If you've got any questions or comments about using these includes, feel free to reach out to us at .

Standings
support@sportmonks.com
Teams
Players