⚽
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
  • Requesting players
  • GET All Players
  • GET Players by ID
  • GET Players by Country ID
  • GET Players Search by Name
  • GET Last Updated Players
  • Adding useful information
  • Selecting and filtering

Was this helpful?

  1. Tutorials and Guides
  2. Tutorials
  3. Teams, players, coaches and referees

Players

PreviousTeamsNextCoaches

Last updated 2 years ago

Was this helpful?

Retrieve detailed player information via one of our 5 player endpoints. You can retrieve more detailed information by using the correct includes. This section will briefly discuss all the options available to request players.

An overview of all the options available:

  • GET Player by ID: returns player information from your requested player id.

  • GET Players by Country ID: returns player information from your requested country id.

  • GET Players Search by Name: returns all the players that match your search query.

  • GET Last Updated Players: returns all the players that have received updates in the past two hours.

For all the player endpoints the base URL is the same:

https://api.sportmonks.com/v3/football/players/

Per endpoint the rest of the URL requires additional information. We will explain this per endpoint.

Requesting players

GET All Players

As mentioned before, a great starting point for your football application is to gather an overview of all the data available in your subscription. For players, you can do this via the .

The URL to get all your players is the same as the base URL for players. All you have to do is authorize the request with your API token. Check our for more info.

https://api.sportmonks.com/v3/football/players?api_token=YOUR_TOKEN
Response

  "data": [
    {
      "id": 14,
      "sport_id": 1,
      "country_id": 320,
      "nationality_id": 320,
      "city_id": null,
      "position_id": 221,
      "detailed_position_id": null,
      "type_id": 25,
      "common_name": "D. Agger",
      "firstname": "Daniel Munthe",
      "lastname": "Agger",
      "name": "Daniel Munthe Agger",
      "display_name": "D. Agger",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/14/14.png",
      "height": 191,
      "weight": 84,
      "date_of_birth": "1984-12-12",
      "gender": "male"
    },
    {
      "id": 21,
      "sport_id": 1,
      "country_id": 455,
      "nationality_id": 455,
      "city_id": null,
      "position_id": 26,
      "detailed_position_id": null,
      "type_id": 26,
      "common_name": "L. Miller",
      "firstname": "Liam",
      "lastname": "Miller",
      "name": "Liam Miller",
      "display_name": "Liam Miller",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/21/21.png",
      "height": 170,
      "weight": 66,
      "date_of_birth": "1981-02-13",
      "gender": "male"
    },

You will receive the nationality of the player, the (detailed) position, height, weight, gender, date of birth and all kinds of information about the player’s name.

GET Players by ID

This endpoint is useful if you only want information about one particular player. You need to add the player_id to your request:

https://api.sportmonks.com/v3/football/players/{player_id}

For example, if you’re interested in information about Joe Hart (player id: 275).

https://api.sportmonks.com/v3/football/players/275?api_token=YOUR_TOKEN
Response
{
  "data": {
    "id": 275,
    "sport_id": 1,
    "country_id": 462,
    "nationality_id": 462,
    "city_id": null,
    "position_id": 24,
    "detailed_position_id": 24,
    "type_id": 24,
    "common_name": "J. Hart",
    "firstname": "Joe",
    "lastname": "Hart",
    "name": "Joe Hart",
    "display_name": "Joe Hart",
    "image_path": "https://cdn.sportmonks.com/images/soccer/players/19/275.png",
    "height": 196,
    "weight": 91,
    "date_of_birth": "1987-04-19",
    "gender": "male"
  },

GET Players by Country ID

This endpoint returns player information from your requested country id. Comes in handy when you want to know which players you have included in your subscription and want to list them per country. You need to add the country_id to your request:

https://api.sportmonks.com/v3/football/players/country/{country_id}

For example, if you want to show all English (country id: 462) players available in your subscription:

https://api.sportmonks.com/v3/football/players/countries/462?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 1595,
      "sport_id": 1,
      "country_id": 462,
      "nationality_id": 462,
      "city_id": null,
      "position_id": 25,
      "detailed_position_id": null,
      "type_id": 25,
      "common_name": "I. Iriekpen",
      "firstname": "Izzy",
      "lastname": "Iriekpen",
      "name": "Izzy Iriekpen",
      "display_name": "Izzy Iriekpen",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": 185,
      "weight": 77,
      "date_of_birth": "1982-05-14",
      "gender": "male"
    },
    {
      "id": 10399,
      "sport_id": 1,
      "country_id": 462,
      "nationality_id": 462,
      "city_id": null,
      "position_id": 27,
      "detailed_position_id": 151,
      "type_id": 27,
      "common_name": "J. Morias",
      "firstname": "Junior",
      "lastname": "Morias",
      "name": "Junior Morias",
      "display_name": "Junior Morias",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/31/10399.png",
      "height": 173,
      "weight": 68,
      "date_of_birth": "1995-07-04",
      "gender": "male"
    },
    //and more

GET Players Search by Name

https://api.sportmonks.com/v3/football/players/search/{search_query}

For example, if you could not find Joe Hart:

https://api.sportmonks.com/v3/football/players/search/joe hart?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 275,
      "sport_id": 1,
      "country_id": 462,
      "nationality_id": 462,
      "city_id": null,
      "position_id": 24,
      "detailed_position_id": 24,
      "type_id": 24,
      "common_name": "J. Hart",
      "firstname": "Joe",
      "lastname": "Hart",
      "name": "Joe Hart",
      "display_name": "Joe Hart",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/19/275.png",
      "height": 196,
      "weight": 91,
      "date_of_birth": "1987-04-19",
      "gender": "male"
    }
  ],

The more complete your search query is, the more relevant response you’ll get.

GET Last Updated Players

https://api.sportmonks.com/v3/football/players/latest

https://api.sportmonks.com/v3/football/players/latest?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 32315,
      "sport_id": 1,
      "country_id": 1578,
      "nationality_id": 1578,
      "city_id": null,
      "position_id": 27,
      "detailed_position_id": 151,
      "type_id": 27,
      "common_name": "B. Finne",
      "firstname": "Bård",
      "lastname": "Finne",
      "name": "Bård Finne",
      "display_name": "Bard Finne",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/27/32315.png",
      "height": 173,
      "weight": 70,
      "date_of_birth": "1995-02-13",
      "gender": "male"
    },
    {
      "id": 151353,
      "sport_id": 1,
      "country_id": 320,
      "nationality_id": 320,
      "city_id": null,
      "position_id": 25,
      "detailed_position_id": 155,
      "type_id": 25,
      "common_name": "T. Søndergaard Lange",
      "firstname": "Thor",
      "lastname": "Søndergaard Lange",
      "name": "Thor Søndergaard Lange",
      "display_name": "Thor Lange",
      "image_path": "https://cdn.sportmonks.com/images/soccer/players/25/151353.png",
      "height": 183,
      "weight": 85,
      "date_of_birth": "1993-08-04",
      "gender": "male"
    }
  ],

Adding useful information

  • metadata: Returns information about a player's preferred foot.

  • position: Position returns the position of the player. Is he a goalkeeper, defender, midfielder or attacker? The include detailedPosition returns if a defender is a leftback, rightback, center back and so on.

  • statistics: This include returns player statistics.

For example, if we want all the above information about James Tavernier (player id: 758).

https://api.sportmonks.com/v3/football/players/758?api_token=YOUR_TOKEN&include=metadata;position;detailedPosition;statistics
Response
{
  "data": {
    "id": 758,
    "sport_id": 1,
    "country_id": 462,
    "nationality_id": 462,
    "city_id": null,
    "position_id": 25,
    "detailed_position_id": 154,
    "type_id": 25,
    "common_name": "J. Tavernier",
    "firstname": "James",
    "lastname": "Tavernier",
    "name": "James Tavernier",
    "display_name": "James Tavernier",
    "image_path": "https://cdn.sportmonks.com/images/soccer/players/22/758.png",
    "height": 182,
    "weight": 75,
    "date_of_birth": "1991-10-31",
    "gender": "male",
    "metadata": [
      {
        "id": 154942,
        "metadatable_type": "player",
        "metadatable_id": 758,
        "type_id": 229,
        "value_type": "string",
        "values": "right"
      }
    ],
    "position": {
      "id": 25,
      "name": "Defender",
      "code": "defender",
      "developer_name": "DEFENDER",
      "model_type": "position",
      "stat_group": null
    },
    "detailed_position": {
      "id": 154,
      "name": "Right Back",
      "code": "right-back",
      "developer_name": "RIGHT_BACK",
      "model_type": "position",
      "stat_group": null
    },
    "statistics": [
      {
        "id": 27268457,
        "player_id": 758,
        "team_id": 17,
        "season_id": 24,
        "position_id": null,
        "jersey_number": 2
      },
      //and more

Selecting and filtering

You can add the &select= parameter followed by the fields you want. In our case: name,image_path. This results in the below request and response:

https://api.sportmonks.com/v3/football/players/758?api_token=YOUR_TOKEN&select=name,image_path
Response
{
  "data": {
    "name": "James Tavernier",
    "image_path": "https://cdn.sportmonks.com/images/soccer/players/22/758.png",
    "id": 758,
    "country_id": 462,
    "sport_id": 1,
    "city_id": null,
    "position_id": 25,
    "detailed_position_id": 154,
    "nationality_id": 462
  },

Now that you've requested all the Players, you also know their unique player id. You can use this id in the second option:

returns all the players based on your search query. This might come in handy if you cannot find a player. To search on a players' name, you’ll need to add /search/{search_query} to the players base URL:

returns all the players that have received updates in the past two hours. This comes in handy to keep your database in sync. You’ll need to add /latest to the players base URL:

As you’ve learnt in the , you can enrich your request with includes. This section will discuss some of the most common requests on the player’s endpoints.

First, you can find a list of all available includes on the For the players, the most commonly used includes are metadata, position and statistics.

In our you’ve learnt how to select specific fields or filter only on the data you’re interested in. By default, our API returns a set of data related to the player. We can imagine you’re not interested in all the player data the API returns. Let’s say you’re only interested in the player name and image.

We’re going to use the for this example.

Check our for more information and tips.

GET Player by ID.
This endpoint
This endpoint
includes tutorial
endpoint pages.
filtering tutorial
GET All Players endpoint
filtering tutorial
authentication section
GET All Players endpoint