A
A
API 3.0 (BETA)
Football API 3.0 (BETA)
Search…
⌃K

GET All Fixtures

Returns all the fixtures accessible within your subscription.
Base URL
Example Response
Field Description
https://api.sportmonks.com/v3/football/fixtures
{
"data": {
"id": 18126690,
"inplay": 0,
"sport_id": 1,
"league_id": 72,
"season_id": 18350,
"stage_id": 77453638,
"group_id": null,
"aggregate_id": null,
"round_id": 246803,
"state_id": 5,
"venue_id": 1744,
"name": "AZ vs SC Cambuur",
"home_score": 0,
"away_score": 0,
"starting_at": "2022-01-22 19:00:00",
"result_info": "Game ended in draw.",
"ended_at": "2022-01-22 20:55:57",
"leg": "1/1",
"details": null,
"length": 90,
"placeholder": false,
"is_final_result": false
},
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
home_score
Score for the home participant
integer / null
away_score
Score for the visiting participant
integer / 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
Query Parameters
Static Filters
Dynamic Filters
Name
Required?
Description
api_token
YES Another option is to provide the API token in the header.
Your unique API token. Ex. ?api_token={{YOURTOKEN}}
include
NO
Enrich the API response with more data by using includes. Ex. &include=participants;events
select
NO
Select specific fields on the base entity
Static Filters
Available on Entity
Multiple Static Filters are available on the fixture entities. ParticipantSearch, TodayDate, Venues, IdAfter, IsDeleted. Find the possibilities in the Static Filter tab.
Dynamic Filters
Available on Entity
Dynamic filters that are active at this endpoint are: Types, States, Groups. Find the possibilities in the Dynamic Filter tab.
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=IsDeleted
IdAfter
All
Filter all fixtures starting from a certain fixture ID. Handy when you are only interested in the most recent fixtures.
&filters=IdAfter:{fixtureID} &filters=IdAfter:18535487
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: 12,24).
&include=odds&filters=bookmakers:{bookmakerIDs} &include=odds&filters=bookmakers:2,14
WinningOdds
Odds
Filter all winning odds.
&include=odds&filters=WinningOdds
Dynamic Filters
Available on Entity
Description
Examples
types
Statistics, Events, Lineup, Metadata, Periods, Predictability, Predictions, Sidelined, States, Trends
Filter the Types on a selection of Fixture statistics separated by a comma. Filter on the specific trends you want to show.
&include=statistics&filters=statisticTypes:42,49 &include=trends&filters=trendTypes:50
states
Fixtures
Filter the states of fixtures separated by a comma.
&include=state&filters=fixtureStates:1
leagues
Aggregates, Fixtures, News, Predictability, Rounds, Seasons, Stages, Standings
Filter the fixtures based on leagues and their rounds.
&filters=fixtureLeagues:{leagueID}
&filters=roundLeagues:501
groups
Fixtures, Standing, Standing corrections
Filter the fixtures based on groups. Get their fixtures and standings.
&include=group&filters=fixtureGroups:{groupIDs} &include=group&filters=fixtureGroups:246691
countries
Coaches, Leagues, Players, Referees, Standings, Teams, Venues
Filter the coaches, leagues, players and more based on countries.
&include=coaches&filterscoachCountries:1161
seasons
Aggregates, Statistics (players, team, coaches, referees), Rounds, Sidelined, Stages, Standings, Standing Corrections, Topscorers.
Filter statistics, standings and topscorers based on seasons.
&include=season.statistics&filters=seasonStatisticTypes:52

Parameters

Query Parameters
Required?
Description
api_token
YES
Your unique API token
include
NO
Enrich the API with more data by using includes
select
NO
Select specific fields on the base entity
leagues
NO
Filter the livescores on a selection of leagues separated by a comma. (e.g: 2,8,12)
markets
NO
Filter the odds on a selection of markets separated by a comma. (e.g: 12,24)
bookmakers
NO
Filter the odds on a selection of bookmakers separated by a comma. (e.g: 12,24)

Pagination

YES

Include options

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

Code Example

Ruby
Python
PHP
Java
Node.js
Go
require "uri"
require "net/http"
url = URI("https://api.sportmonks.com/v3/football/fixtures?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?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?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?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?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?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))
}