⚽
API 3.0
OddsCoreFootball APIAPI 2 (Deprecated)WidgetsContact
Football API 3.0
Football API 3.0
  • Welcome
    • 🛬Welcome
    • 🙋‍♂️Getting Started
    • ▶️Quick Start Guide
    • 🤓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
      • Team of the Week (TOTW) - beta
        • GET All available TOTWs
        • GET TOTW per round
        • GET Latest TOTW
      • 👨‍🏫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
        • GET Bookmaker Match ID Mappings 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
      • How-to use TOTW - beta
    • 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 Rounds
  • GET All Rounds
  • GET Rounds by Season ID
  • GET Rounds by Round ID
  • GET Rounds Search by Name
  • Adding useful information
  • Selecting and filtering

Was this helpful?

  1. Tutorials and Guides
  2. Tutorials
  3. Season schedule

Rounds

Most football competitions are played once a week. The majority of the competitions handle a double round-robin structure, meaning that every team will play matches until everyone has played against each other twice.

Competitions have divided every match day into a specific round. This way, you can see exactly how many rounds are scheduled and which team plays against whom per round.

Every round has a name and unique round id in the API. This will greatly help you with requesting data about the rounds.

This section will briefly discuss all the options available to request rounds.

An overview of all available options:

  • GET All Rounds: returns all the rounds available within your subscription.

  • GET Rounds by ID: returns round information from your requested round id.

  • GET Rounds by Season ID: returns round information from your requested season id.

  • GET Rounds by Search by Name: returns all rounds that match your search query.

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

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

Requesting Rounds

GET All Rounds

Just like with stages, you can request all rounds available via the GET All Rounds endpoint. The URL to get all your rounds is the same as the base URL for rounds. All you have to do is authorize the request with your API token. Check our authentication section for more info.

https://api.sportmonks.com/v3/football/rounds?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 23317,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1273,
      "stage_id": 1086,
      "name": "1",
      "finished": true,
      "is_current": false,
      "starting_at": "2005-07-19",
      "ending_at": "2005-07-24",
      "games_in_current_week": false
    },
    {
      "id": 23318,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1273,
      "stage_id": 1086,
      "name": "2",
      "finished": true,
      "is_current": false,
      "starting_at": "2005-07-24",
      "ending_at": "2005-07-31",
      "games_in_current_week": false
    },

Let’s briefly evaluate the response. You can see the unique round id, start and end date, league and season id belonging to the round, the status and the name. Interested in more information? Keep reading and find out in the adding useful information section.

GET Rounds by Season ID

The previous request returned all the rounds in your subscription. But what if you’re only interested in the rounds of a particular season? You can use the GET Rounds by Season ID endpoint for this. You need to add the season id to your request:

https://api.sportmonks.com/v3/football/rounds/seasons/{season_id}

For example, if you’re interested in all the rounds of the Scottish Premiership 2022/2023 season:

https://api.sportmonks.com/v3/football/rounds/seasons/19735?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 274733,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "name": "20",
      "finished": true,
      "is_current": false,
      "starting_at": "2023-01-02",
      "ending_at": "2023-01-02",
      "games_in_current_week": false
    },
    {
      "id": 274716,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "stage_id": 77457866,
      "name": "3",
      "finished": true,
      "is_current": false,
      "starting_at": "2022-08-13",
      "ending_at": "2022-08-14",
      "games_in_current_week": false
    },
    
    //and more

GET Rounds by Round ID

This endpoint is suited when you’re only interested in data of one round. For this, you will need to add the round id to your request:

https://api.sportmonks.com/v3/football/rounds/{round_id}

For example, if you’re interested in the last round of the Scottish Premiership 2022/2023 season:

https://api.sportmonks.com/v3/football/rounds/275096?api_token=YOUR_TOKEN
Response
{
  "data": {
    "id": 274733,
    "sport_id": 1,
    "league_id": 501,
    "season_id": 19735,
    "stage_id": 77457866,
    "name": "20",
    "finished": true,
    "is_current": false,
    "starting_at": "2023-01-02",
    "ending_at": "2023-01-02",
    "games_in_current_week": false
  },

GET Rounds Search by Name

This endpoint returns all the rounds based on your search query. This might come in handy if you want all the last rounds of a season. To search on round name, you’ll need to add /search/{search_query} to the rounds base url:

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

For example, if you’re interested in all the 31's rounds:

https://api.sportmonks.com/v3/football/rounds/search/31?api_token=YOUR_TOKEN
Response
{
  "data": [
    {
      "id": 23332,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1273,
      "stage_id": 1086,
      "name": "14",
      "finished": true,
      "is_current": false,
      "starting_at": "2006-03-19",
      "ending_at": "2006-03-29",
      "games_in_current_week": false
    },
    {
      "id": 23353,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1274,
      "stage_id": 1087,
      "name": "14",
      "finished": true,
      "is_current": false,
      "starting_at": "2007-04-05",
      "ending_at": "2007-04-09",
      "games_in_current_week": false
    },
    {
      "id": 23393,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1275,
      "stage_id": 1088,
      "name": "14",
      "finished": true,
      "is_current": false,
      "starting_at": "2008-03-30",
      "ending_at": "2008-04-07",
      "games_in_current_week": false
    },
    //and more

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

Adding useful information

You might’ve noticed that the rounds endpoints return limited information. But no worries, there are a lot of include options available to enrich your request.

For example, you can include information about:

  • To which stage the round belongs

  • The fixtures of the round

  • To which league the round belongs

  • To which season the round belongs

For this example we want all the above information for the last round in the Scottish Premiership:

https://api.sportmonks.com/v3/football/rounds/274733?api_token=YOUR_TOKEN&include=league;season;stage;fixtures
Response
{
  "data": {
    "id": 274733,
    "sport_id": 1,
    "league_id": 501,
    "season_id": 19735,
    "stage_id": 77457866,
    "name": "20",
    "finished": true,
    "is_current": false,
    "starting_at": "2023-01-02",
    "ending_at": "2023-01-02",
    "games_in_current_week": false,
    "league": {
      "id": 501,
      "sport_id": 1,
      "country_id": 1161,
      "name": "Premiership",
      "active": true,
      "short_code": "SCO P",
      "image_path": "https://cdn.sportmonks.com/images/soccer/leagues/501.png",
      "type": "league",
      "sub_type": "domestic",
      "last_played_at": "2023-02-25 15:00:00",
      "has_jerseys": false
    },
    "season": {
      "id": 19735,
      "sport_id": 1,
      "league_id": 501,
      "tie_breaker_rule_id": 171,
      "name": "2022/2023",
      "finished": false,
      "pending": false,
      "is_current": true,
      "starting_at": "2022-07-30",
      "ending_at": "2023-04-22",
      "standings_recalculated_at": "2023-03-02 00:07:24",
      "games_in_current_week": false
    },
    "stage": {
      "id": 77457866,
      "sport_id": 1,
      "league_id": 501,
      "season_id": 19735,
      "type_id": 223,
      "name": "1st Phase",
      "sort_order": 1,
      "finished": false,
      "is_current": true,
      "starting_at": "2022-07-30",
      "ending_at": "2023-04-22",
      "games_in_current_week": true
    },
    "fixtures": [
      {
        "id": 18535606,
        "sport_id": 1,
        "league_id": 501,
        "season_id": 19735,
        "stage_id": 77457866,
        "group_id": null,
        "aggregate_id": null,
        "round_id": 274733,
        "state_id": 5,
        "venue_id": 219,
        "name": "St. Johnstone vs Dundee United",
        "starting_at": "2023-01-02 15:00:00",
        "result_info": null,
        "leg": "1/1",
        "details": null,
        "length": 90,
        "placeholder": false,
        "last_processed_at": "2023-02-17 10:19:54",
        "has_odds": true,
        "starting_at_timestamp": 1672671600
      },
      
  //And more    

Check our include tutorial for more information and tips about includes

Selecting and filtering

You can limit the data our API returns by default by selecting a specific field you’re interested in. For example, you want to retrieve all the rounds in your subscription but are only interested in the name, start date and end date.

Easily add the &select=name,starting_at,ending_at

https://api.sportmonks.com/v3/football/rounds?api_token=YOUR_TOKEN&select=name,starting_at,ending_at
Response
{
  "data": [
    {
      "name": "1",
      "starting_at": "2005-07-19",
      "ending_at": "2005-07-24",
      "id": 23317,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1273,
      "stage_id": 1086
    },
    {
      "name": "2",
      "starting_at": "2005-07-24",
      "ending_at": "2005-07-31",
      "id": 23318,
      "sport_id": 1,
      "league_id": 271,
      "season_id": 1273,
      "stage_id": 1086
    },

Check our filtering tutorial for more information and tips.

PreviousStagesNextLivescores and fixtures

Last updated 2 years ago

Was this helpful?