LogoLogo
Quick StartFootball APIContactAPI 3.0
  • Welcome
  • Changelog
  • Getting Started
    • Get Started
    • Documentation for the documentation
  • Endpoint overview
    • Continents
      • GET All Continents
      • GET Continent by ID
    • Countries
      • GET All Countries
      • GET Country by ID
    • Leagues
      • GET All Leagues
      • GET League by ID
      • GET Leagues by Country ID
      • Search Leagues by Name
    • Seasons
      • GET All Seasons
      • GET Season by ID
    • Fixtures
      • GET Fixture by ID
      • GET Last Updated Fixtures
      • GET Fixtures by Date
      • GET Fixtures by Date Range
      • GET Fixtures by Date Range for Team
      • GET Fixtures by Multiple ID's
      • GET Deleted Fixtures
    • Statistics
    • Livescores
      • GET All Livescores
      • GET All In play Livescores
    • News API
      • GET All News
      • GET News For Upcoming Fixtures
      • GET News by Season ID
    • Commentaries
      • Commentaries by Fixture ID
    • Video Highlights
      • Get Video Highlights by Fixture ID
    • Head 2 Head
      • GET Head 2 Head by Team IDs
    • Standings
      • GET Standings by Season ID
      • GET LIVE Standings
      • GET Standings by Season ID and Round ID
      • GET Standings by Season and Date(time)
      • GET Standings Corrections by Season ID
    • Teams
      • GET Team by ID
      • GET Teams by Country ID
      • GET Teams by Season ID
      • Search Team by Name
      • GET Current Leagues by Team ID
      • Get All Leagues by Team ID
    • Players
      • GET Player by ID
      • GET Players by Country ID
      • Search Player by Name
    • Topscorers
      • GET Topscorers by Season ID
      • GET Topscorers Aggregated by Season ID
    • Rivals
      • GET Rivals by Team ID
    • Venues
      • GET Venue by ID
      • GET Venues by Season ID
    • Rounds
      • GET Rounds by Season ID
      • GET Round by ID
    • Odds
      • GET Odds by Fixture ID and Bookmaker ID
      • GET Odds by Fixture ID and Market ID
      • GET Odds by Fixture ID
      • GET Inplay Odds by Fixture ID
    • Coaches
      • GET Coach by ID
    • Stages
      • GET Stage by ID
      • GET Stages by Season ID
    • Bookmakers
      • GET All Bookmakers by Fixture ID
      • GET All Bookmakers
      • GET Bookmaker by ID
    • Markets
      • GET All Fixtures by Market ID
      • GET All Markets
      • GET Market by ID
    • Team Squads
      • GET Team Squad by Team and Season ID
    • TV Stations
      • GET TV Station by Fixture ID
    • Prediction API
      • GET Leagues and Performances
      • GET Probabilities
      • GET Probabilities by Fixture ID
      • GET Value Bets
      • GET Value Bet by Fixture ID
  • Tutorials
    • Introduction to our API
      • Make your first request
      • Set your time zone
      • Pagination
    • Enriching your response
      • Includes
      • Nested includes
    • Filtering, limiting & sorting
      • Filtering
      • Limiting
      • Sorting
    • Schedule, fixtures & livescores
      • Season schedule
      • Fixtures
      • Livescores
    • Statistics
      • Match statistics
      • Team statistics
      • Player statistics
      • Season statistics
    • League & topscorers standings
      • League standings
      • Topscorers standings
    • Odds & predictions
      • Odds
        • Odds by fixture, bookmaker and market id
        • FlatOdds
        • InplayOdds
      • Predictions
  • MySportmonks
    • How-to build a custom plan
    • ID Finder
  • How-to Guides
    • Get Started with our how-to guides
      • How-to build your API requests
    • Livescores & fixtures
      • How-to build a livescore website
      • How-to build a schedule page
    • Match & team pages
      • How-to build a match page with events and statistics
      • How-to build a match page with line-ups/formations
      • How-to build a team page with season stats and squads
    • How-to build standings and topscorer standings
      • League standings
      • Topscorer standings
    • Odds & predictions
      • How-to build a match page with odds
      • How-to build a betting odds portal
      • How-to use the predictions API
    • How-to build a fantasy game
    • Developer tools
      • How-to use Sportmonks' APIs in Postman
    • How-to keep your database in sync
    • World Cup 2022
    • EURO 2024
    • Football widgets
      • How-to set up football widgets in your web application
      • Configurations
      • Widgets overview
        • Livescore widget
        • International Cup widgets
  • API References
    • API reference guide
    • Data features
    • ID Finder
    • Code libraries
    • Demo response files
    • Statuses and definitions
    • API Rate limiting
    • Response codes
    • Meta description
  • General
  • Sportmonks
  • Plans & pricing
  • FAQ
  • Contact
Powered by GitBook
On this page
  • Overview
  • What is Football API 2.0?
  • Authentication
  • Your first request
  • Build the request
  • What can you do with the data?
  • Code libraries
  • Different plans and data features

Was this helpful?

Export as PDF
  1. Getting Started

Get Started

Welcome to the get started page of our Football API 2.0. You’re only a few steps away from requesting and receiving API responses for your football application.

PreviousChangelogNextDocumentation for the documentation

Last updated 3 years ago

Was this helpful?

Overview

  1. What is Football API 2.0?

  2. Authentication

  3. Your first request

  4. Get your football data

  5. What can you do with the data?

  6. Different plans and data features

What is Football API 2.0?

Build creative football-related apps with our . Football API 2.0 is a that can be used to request football data from our expansive database and has the following characteristics:

  • Highly customizable requests

  • Incredibly fast livescores

  • Reliable and accurate data

We recommend you submit your requests with Postman since we have already prepared the request for you there! Hit the button below to import our Football API collection.

Authentication

Example API token: [HdoiD312ND….]

The API token is only meant for your eyes and, as such, should be stored away safely.

Our tokens have no expiration date and will remain valid until you manually delete it yourself.

Football API 2.0 utilizes response codes to indicate successful and failed API requests. With our brand-new token, we can make our first request! But before we start let us explain which possible responses can be returned. When making a request, a code response will always be returned. See below for a shortlist of possible code responses:

Code number

Description

200

Successful request and data was returned

400

Part of the request is malformed; the exact reason can be found in the response

401

Request is not authenticated

403

Unauthorized request to access data from an ineligible plan

429

You have reached the response rate limit of your plan

500

Internal error with our servers

Your first request

Now that all prerequisites have been fulfilled, we’re ready to send our first request to the API!

Build the request

The request consists of the following components:

  • The base URL

  • A path parameter, in this example, we use [leagues]

  • A query string parameter, this is optional, so we are leaving this out for now

  • And finally, your API token

https://soccer.sportmonks.com/api/v2.0/

An example of a correctly authenticated request would be:

https://soccer.sportmonks.com/api/v2.0/leagues?api_token={API_TOKEN}
"data": [
        {
            "id": 271,
            "active": true,
            "type": "domestic",
            "legacy_id": 43,
            "country_id": 320,
            "logo_path": "https://cdn.sportmonks.com/images/soccer/leagues/271.png",
            "name": "Superliga",
            "is_cup": false,
            "current_season_id": 17328,
            "current_round_id": 199450,
            "current_stage_id": 77447994,
            "live_standings": true,
            "coverage": {
                "predictions": true,
                "topscorer_goals": true,
                "topscorer_assists": true,
                "topscorer_cards": true
            }

Field

Description

data

Opens an array of data you've requested

id

A unique league id

active

Indicates if the league is active or not. Possible values are 'true' or 'false'

type

legacy_id

This was for our API version 1.0. It's only of use for old users of our API

country_id

The unique country id the league is played in

logo_path

The logo URL path of the league

name

The name of the league

is_cup

Indicates if the league is a cup or not. Possible values are 'true' or 'false'

current_season_id

The unique id of the current season

current_round_id

The unique id of the current round

current_stage_id

The unique id of the current stage

live_standings

Indicates if the league covers live standings

coverage

Opens an array of partial coverage for the league

predictions

Indicates if the league covers predictions

topscorers_goals

Indicates if the league covers goal topscorers

topscorers_assists

Indicates if the league covers assists topscorers

topscorers_cards

Indicates if the league covers cards topscorers

What can you do with the data?

The data our API provides will enable you to create excellent and specialized applications. Down below you will find two examples of Sportmonks’ partners who have made brilliant applications. Throughout our documentation pages you will find more examples, ranging from betting and odds websites to fantasy games and live score tracking websites.

Code libraries

There are various options as to how you’d like to send the request. Our API is compatible with an incredible number of developer languages

  • Phyton Wrappers:

  • Java Wrappers:

  • Ruby Wrappers:

Different plans and data features

To make our first request, we’ll need a way to get authenticated first. utilizes API tokens for the authentication of requests. You can obtain your free API token and manage your API tokens For the sake of simplicity, we’ll be working with an API token within the ‘free plan’. The free plan includes the Danish Superliga (league id: 271) and the Scottish Premiership (league id: 501).

Indicates what kind of league this is. Possible values: 'domestic', 'cup', 'international'. More values can be found

This request will return all of the leagues eligible for our , which are the Danish Superliga (league id: 271) and the Scottish Premiership (league id: 501). You can view them by clicking on the second tab.

The example above was the most basic request you can create, while our highly can handle way more advanced requests.

Node JS Wrapper:

PHP Wrapper:

Laravel PHP Wrapper:

Composer PHP Wrapper:

GO Wrapper:

Elixir Wrapper:

R Wrapper:

Golang:

Sportmonks has various different and data features for you. You can learn all about it in the matrix below. In you can choose your ideal plan and data features.

Football API 2.0
Mysportmonks.
free plan
flexible football api 2.0
https://github.com/marchitos/sportmonks
https://github.com/joesaunderson/sportmonks-soccer
https://github.com/kirill-latish/laravel-sportmonks-soccer
https://github.com/hristonev/sportmonks-client-bundle
https://github.com/tvl/python-sportmonk
https://github.com/Dmitrii-I/sportmonks
http://www.github.com/calestini/sportmonks_api
https://github.com/kevinsamyn/sportmonks-soccer
https://github.com/kete1987/sportmonks
https://github.com/valdemarua/sportmonks-ruby
https://github.com/vnnoder/sportmonks-ruby
https://github.com/BialkowskiSz/go-sportmonks
https://github.com/vnnoder/ex_sportmonks
https://github.com/systats/sportmonks
https://github.com/statistico/statistico-sportmonks-go-client
plans
Mysportmonks
here
Football API 2.0
REST API
Run in Postman