⚽
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
  • Filters
  • Pagination
  • Parameters
  • Include depth
  • Include options
  • Related Entities:
  • Postman
  • Code Example

Was this helpful?

  1. Endpoints and Entities
  2. Endpoints
  3. Fixtures

GET Upcoming Fixtures by Market ID

Returns all the fixtures from your requested market ID.

PreviousGET Fixtures by Search by NameNextGET Upcoming Fixtures by TV Station ID

Last updated 2 months ago

Was this helpful?

https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}
{
    "data": [
        {
            "id": 19230783,
            "sport_id": 1,
            "league_id": 612,
            "season_id": 24157,
            "stage_id": 77472830,
            "group_id": 251075,
            "aggregate_id": null,
            "round_id": 350222,
            "state_id": 1,
            "venue_id": 4241,
            "name": "Nyva Ternopil' vs Epitsentr Dunayivtsi",
            "starting_at": "2024-08-08 14:00:00",
            "result_info": null,
            "leg": "1/1",
            "details": null,
            "length": 90,
            "placeholder": false,
            "has_odds": true,
            "has_premium_odds": true,
            "starting_at_timestamp": 1723125600
        },
        {
            "id": 19110346,
            "sport_id": 1,
            "league_id": 396,
            "season_id": 23369,
            "stage_id": 77470477,
            "group_id": null,
            "aggregate_id": null,
            "round_id": 336772,
            "state_id": 1,
            "venue_id": 4149,
            "name": "Taraz vs Arys",
            "starting_at": "2024-08-08 14:00:00",
            "result_info": null,
            "leg": "1/1",
            "details": null,
            "length": 90,
            "placeholder": false,
            "has_odds": true,
            "has_premium_odds": true,
            "starting_at_timestamp": 1723125600
Field
Description
Type

id

Refers the unique id of the fixture

integer

sport_id

Refers to the sport the fixture is played at

integer

league_id

Refers to the league the fixture is played in

integer

season_id

Refers to the seasons the fixture is played in

integer

stage_id

Refers to the stage the fixture is played in

integer

group_id

Refers to the group the fixture is played in

integer / null

aggregate_id

Refers to the aggregate the fixture is played at

integer / null

state_id

Refers to the state the fixture is played at

integer

round_id

Refers to the round the fixture is played at

integer / null

state_id

Refers to the state the fixture is played at

integer

venue_id

Refers to the venue the fixture is played at

integer / null

name

Represents the name of the participants

string / null

starting_at

Datetime object representing the start time

date / null

result_info

Represents the final result info

string / null

leg

Represents the leg of the fixture

string

details

Represents details about the fixture

string / null

length

Length of the fixture (minutes)

integer / null

Name
Required?
Description

api_token

YES

Another option is to provide the API token in the header.

Your unique API token. Ex. ?api_token=YOUR_TOKEN

include

NO

Enrich the API response with more data by using includes. Ex. &include=participants;events

select

NO

sortBy

NO

filters

NO

Filter the API response on multiple related entities. There are static filters and dynamic filters.​ Please find the possibilities in the Static and Dynamic Filter tab.

locale

NO

Static filters are always the same and filter in one specific way without any custom options. Each static filter is listed below and has a description of how it filters. For more information, please look at our.

Static Filters
Available on Entity
Description
Example

participantSearch

Fixture

Filter on the matches of specific participants.

&include=participants&filters=participantSearch:Celtic

todayDate

Fixture

Filter all fixtures to find only the fixtures of today.

&filters=todayDate

venues

Fixture

Find all fixtures that are played in a specific venue.

&include=venue&filters=venues:venueIDs &include=venue&filters=venues:10,12

Deleted

Fixture

Filter on deleted fixtures only. This filter helps to keep your database in sync.

&filters=Deleted

markets

Odds

Filter the odds on a selection of markets separated by a comma.

&include=odds&filters=markets:marketIDs &include=odds&filters=markets:12,14

bookmakers

Odds

Filter the odds on a selection of bookmakers separated by a comma. (e.g: 2,14).

&include=odds&filters=bookmakers:bookmakerIDs &include=odds&filters=bookmakers:2,14

WinningOdds

Odds

Filter all winning odds.

&include=odds&filters=WinningOdds

The dynamic filters are based on entities and includes. Each dynamic filter uses an entity to filter on and one entity to apply the filter to. Below is an example with an explanation of how filters are set up. For more information, please look at our.

Using an include? Check their respective filters on their entity page. For example if you use &include=participants you can apply .

Dynamic Filters
Available on Entity
Description
Examples

types

Filter the statistics, events and more on a selection of type ids separated by a comma.

&include=statistics.type&filters=fixturestatisticTypes:TypeIDs &include=statistics.type&filters=fixturestatisticTypes:42,49 &include=events&filters=eventTypes:14 &include=lineups.details.type&filters=lineupdetailTypes:118

states

Filter the states of fixtures separated by a comma.

&include=state&filters=fixtureStates:StateIDs &include=state&filters=fixtureStates:1

leagues

Filter the fixtures based on leagues and their rounds.

&filters=fixtureLeagues:leagueIDs

&filters=fixtureLeagues:501,271

groups

Filter the fixtures based on groups. Get their fixtures and standings.

&include=group&filters=fixtureGroups:groupIDs &include=group&filters=fixtureGroups:246691

countries

Filter the coaches, leagues, players and more based on countries.

&include=coaches&filters=coachCountries:CountryIDs &include=coaches&filters=coachCountries:1161

seasons

Filter statistics, standings and topscorers based on seasons.

&include=season.statistics&filters=seasonStatisticTypes:TypeIDs &include=season.statistics&filters=seasonStatisticTypes:52

Filters

More information on how to use filters can be found on our tutorials on how to . If you want more information on which filters to use you can check out the following :

https://api.sportmonks.com/v3/my/filters/entity?api_token=YOUR_TOKEN

Pagination

YES

Parameters

Parameter
Required
Description
Example

order

No

Returns fixtures ordered by starting_at (asc or desc). Defaults to asc

&order=desc

per_page

No

The amount of results to return per page (max 50.). Defaults to 25.

&per_page=30

page

No

You can paginate using the has_more parameter to determine if you can still propagate through the results.

&page=2

Include depth

You can use a total of 3 nested includes on this endpoint

Include options

Related Entities:

Get an overview and explanation of all the fields returned in the API response. The related entities for the fixtures endpoints are:

Postman

We also offer detailed postman documentation with examples and a complete up-to-date version of all our endpoints. Below is a button that lets your fork the collection or import it.

Code Example

require "uri"
require "net/http"

url = URI("https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $respons
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN")
  .method("GET", null)
  .build();
Response response = client.newCall(request).execute();
var unirest = require('unirest');
var req = unirest('GET', 'https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN')
  .end(function (res) { 
    if (res.error) throw new Error(res.error); 
    console.log(res.raw_body);
  });
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.sportmonks.com/v3/football/fixtures/upcoming/markets/{marketID}?api_token=YOUR_TOKEN"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}

Select specific fields on the. Read how to select fields in our .

Order by specific fields on the . For more information check out page.

Translate name fields of the API Response in your selected language. Find more information and which languages are available on our .

Statistics, Events, Lineup, and way more. Check this for all possibilities.

Fixtures Check this for all possibilities.

Fixtures, Seasons, Standings, and way more. Check this for all possibilities.

Fixtures, Standing, and more. Check this for all possibilities.

Coaches, Leagues, Players, Teams, and way more. Check this for all possibilities.

Statistics (players, team, coaches, referees), Standings, and way more. Check this for all possibilities.

🥅
base entity
tutorial
base entity
this
translations page
endpoint
endpoint
endpoint
endpoint
endpoint
endpoint
Filters page
Filters page
filter
premiumOdds
xGFixture
pressure
Run in Postman
team-related filters
coaches
participants
sidelined
referees
sport
round
stage
group
league
season
endpoint
odds
inplayOdds
predictions
tvStations
venue
state
weatherReport
comments
prematchNews
postmatchNews
metadata
Fixture
aggregate
lineups
events
timeline
periods
formations
ballCoordinates
scores
trends
statistics