โšฝ
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 referees
  • GET All Referees
  • GET Referee by ID
  • GET Referees by Country ID
  • GET Referees Search by Name
  • Adding useful information
  • Selecting and filtering

Was this helpful?

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

Referees

PreviousCoachesNextStandings

Last updated 2 years ago

Was this helpful?

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

An overview of all the options available:

  • GET All Referees: returns all the referees available within your subscription.

  • GET Referees by ID: returns referee information from your requested referee ID.

  • GET Referees by Country ID: returns referee information from your requested country ID.

  • GET Referees Search by Name: returns all the referees that match your search query.

For all the referees; endpoints the base URL is the same: URL: https://api.sportmonks.com/v3/football/referees

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

Requesting referees

GET All Referees

Gather an overview of all referees available in your subscription via the to get an overview of all referees within their subscription.

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

https://api.sportmonks.com/v3/football/referees?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 37,
      "sport_id": 1,
      "country_id": null,
      "city_id": null,
      "common_name": "Craig Alexander Thomson",
      "firstname": null,
      "lastname": null,
      "name": "Craig Alexander Thomson",
      "display_name": "Craig Alexander Thomson",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    },
    {
      "id": 94,
      "sport_id": 1,
      "country_id": null,
      "city_id": null,
      "common_name": "Robert Madden",
      "firstname": null,
      "lastname": null,
      "name": "Robert Madden",
      "display_name": "Robert Madden",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    },
    //And more

You can see the referees' name, the unique referee id and some other data.

GET Referee by ID

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

https://api.sportmonks.com/v3/football/referees/{referee_id}

Letโ€™s say we want the information about Crawford Allan. (referee id: 70306).

https://api.sportmonks.com/v3/football/referees/70306?api_token=YOUR_TOKEN
Response
{
  "data": {
    "id": 70306,
    "sport_id": 1,
    "country_id": 1161,
    "city_id": null,
    "common_name": "C. Allan",
    "firstname": "Crawford",
    "lastname": "Allan",
    "name": "Crawford Allan",
    "display_name": "Crawford Allan",
    "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
    "height": null,
    "weight": null,
    "date_of_birth": null,
    "gender": null
  },

GET Referees by Country ID

Letโ€™s say, we want all Scottish referees. You need to add the country_id to your request:

https://api.sportmonks.com/v3/football/referees/countries/{country_id}

https://api.sportmonks.com/v3/football/referees/countries/1161?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 32585,
      "sport_id": 1,
      "country_id": 1161,
      "city_id": null,
      "common_name": "C. Graham",
      "firstname": "Chris",
      "lastname": "Graham",
      "name": "Chris Graham",
      "display_name": "C. Graham",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    },
    {
      "id": 12118,
      "sport_id": 1,
      "country_id": 1161,
      "city_id": null,
      "common_name": "D. McGeachie",
      "firstname": "David",
      "lastname": "McGeachie",
      "name": "David McGeachie",
      "display_name": "D. McGeachie",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    },
 //And more!

GET Referees Search by Name

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

https://api.sportmonks.com/v3/football/referees/search/crawford?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 14854,
      "sport_id": 1,
      "country_id": 1161,
      "city_id": null,
      "common_name": "G. Crawford",
      "firstname": "Gordon",
      "lastname": "Crawford",
      "name": "Gordon Crawford",
      "display_name": "Gordon Crawford",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    },
    {
      "id": 70306,
      "sport_id": 1,
      "country_id": 1161,
      "city_id": null,
      "common_name": "C. Allan",
      "firstname": "Crawford",
      "lastname": "Allan",
      "name": "Crawford Allan",
      "display_name": "Crawford Allan",
      "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
      "height": null,
      "weight": null,
      "date_of_birth": null,
      "gender": null
    }
  ],

Adding useful information

For example, if we want statistics of Crawford Allan(referee id: 70306).

https://api.sportmonks.com/v3/football/referees/70306?api_token=YOUR_TOKEN&include=statistics
Response
{
  "data": {
    "id": 70306,
    "sport_id": 1,
    "country_id": 1161,
    "city_id": null,
    "common_name": "C. Allan",
    "firstname": "Crawford",
    "lastname": "Allan",
    "name": "Crawford Allan",
    "display_name": "Crawford Allan",
    "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
    "height": null,
    "weight": null,
    "date_of_birth": null,
    "gender": null,
    "statistics": [
      {
        "id": 8265,
        "referee_id": 70306,
        "season_id": 825
      },
      {
        "id": 10539,
        "referee_id": 70306,
        "season_id": 1931
      },
      {
        "id": 10561,
        "referee_id": 70306,
        "season_id": 1932
      },
      {
        "id": 10583,
        "referee_id": 70306,
        "season_id": 1933
      },
      {
        "id": 10593,
        "referee_id": 70306,
        "season_id": 1934
      },
      //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/referees/70306?api_token=YOUR_TOKEN&select=name,image_path
Response
{
  "data": {
    "name": "Crawford Allan",
    "image_path": "https://cdn.sportmonks.com/images/soccer/placeholder.png",
    "id": 70306,
    "country_id": 1161,
    "sport_id": 1,
    "city_id": null
  },

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

You want the information about your favourite referee. However, you donโ€™t know the referee id or country id. Well, we have an endpoint to use his name and get the information you need. The , in order to do this you need to add the /search/{search_query}to your request:

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 referees' endpoints.

First of all, you can find a list of all available includes on the . For the referees, the most commonly used includes is 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 referee. We can imagine youโ€™re not interested in all the referee data the API returns. Letโ€™s say youโ€™re only interested in the referee name and image.

Weโ€™re going to use the for this example.

Check our for more information and tips.

GET Referees Search by Name endpoint
includes tutorial
endpoint pages
filtering tutorial
filtering tutorial
authentication section
GET Referee by ID.
GET Referee by ID.
GET All Referees endpoint