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

Was this helpful?

Export as PDF
  1. Tutorials
  2. Statistics

Match statistics

PreviousStatisticsNextTeam statistics

Last updated 2 years ago

Was this helpful?

One of the most frequently asked questions is: “How can I get match statistics just like below?”.

Please note that above is just a snippet of the match stats we cover.

There are many possible ways, thanks to the flexibility of our API.

https://soccer.sportmonks.com/api/v2.0/fixtures/16475287?api_token={API_TOKEN}&include=stats
        "stats": {
            "data": [
                {
                    "team_id": 53,
                    "fixture_id": 16475287,
                    "shots": {
                        "total": 28,
                        "ongoal": 15,
                        "blocked": 6,
                        "offgoal": 13,
                        "insidebox": 18,
                        "outsidebox": 7
                    },
                    "passes": {
                        "total": 670,
                        "accurate": 587,
                        "percentage": 87.61
                    },
                    "attacks": {
                        "attacks": 115,
                        "dangerous_attacks": 55
                    },
                    "fouls": 9,
                    "corners": 11,
                    "offsides": 0,
                    "possessiontime": 80,
                    "yellowcards": 1,
                    "redcards": 0,
                    "yellowredcards": 0,
                    "saves": 1,
                    "substitutions": 4,
                    "goal_kick": null,
                    "goal_attempts": 19,
                    "free_kick": null,
                    "throw_in": null,
                    "ball_safe": 91,
                    "goals": 5,
                    "penalties": 0,
                    "injuries": 0
                },
                {
                    "team_id": 338,
                    "fixture_id": 16475287,
                    "shots": {
                        "total": 6,
                        "ongoal": 2,
                        "blocked": 1,
                        "offgoal": 4,
                        "insidebox": 4,
                        "outsidebox": 3
                    },
                    "passes": {
                        "total": 157,
                        "accurate": 85,
                        "percentage": 54.14
                    },
                    "attacks": {
                        "attacks": 70,
                        "dangerous_attacks": 41
                    },
                    "fouls": 9,
                    "corners": 8,
                    "offsides": 2,
                    "possessiontime": 20,
                    "yellowcards": 3,
                    "redcards": 0,
                    "yellowredcards": 0,
                    "saves": 9,
                    "substitutions": 3,
                    "goal_kick": null,
                    "goal_attempts": 7,
                    "free_kick": null,
                    "throw_in": null,
                    "ball_safe": 67,
                    "goals": 1,
                    "penalties": 0,
                    "injuries": 1
                }
            ]
        }

Stats Field Description

Field

Description

team_id

The unique id of the team to which the stats belong

fixture_id

A unique fixture id

shots

Opens an array containing the shots statistics

ongoal

The number of shots on goal in a fixture of one team

blocked

The times the opponent has blocked a shot

offgoal

The number of shots off goal in a fixture of one team

insidebox

The number of shots from inside the box (16-meter area) in a fixture of one team

outsidebox

The number of shots from outside the box (16-meter area) in a fixture of one team

passes

Opens an array containing the pass statistics

total

The number of passes in a fixture of one team

accurate

The total accurate passes in a fixture of one team

percentage

The accurate passes (in percentage %) in a fixture of one team

attacks

Opens an array containing the attacks statistics

attacks

The attacks in a fixture of one team

dangerous_attacks

The dangerous attacks in a fixture of one team. A dangerous attack is calculated when the attack almost resulted in a goal.

fouls

The number of fouls committed of one team

corners

The number of corners of one team

offsides

The number of times one team was flagged offside by the (assistant) referee

possesiontime

The number of times one team has had the ball in percentage

yellowcards

The number of yellow cards for one team

yellowredcards

The total times a second yellow card has resulted in a red card for one team

redcards

The total number of red cards for one team

saves

The total number of saves the goalkeeper of one team has made

substitutions

The total number of substitutions of one team

goal_kicks

The number of goal kicks for one team

goal_attempts

The number of goal attempt of one team

free_kick

The number of free kicks for one team

throw_in

The amount of throw ins for one team

ball_safe

This is the number of times the attacking team plays the ball back to their own half.

For example:

Barcelona is on the attack and are on the half of the opposition, but decide to pass the ball back to their own half.

This is ball safe 1.

goals

The number of goals for one team

penalties

The number of penalties for one team

injuries

The number of injuries for one team

Nothing more, nothing less.

Live Match statistics

The only thing you need to do is to add the stats include:

https://soccer.sportmonks.com/api/v2.0/livescores/now?api_token={API_TOKEN}&include=stats
https://soccer.sportmonks.com/api/v2.0/livescores/now?api_token={API_TOKEN}&include=stats&leagues=8

As you've seen in our previous tutorials, every fixture has a unique id. Therefore, you can use one of our fixtures by id endpoints, or you can request them by date. In our , we’ve discussed all the different ways to access fixtures.

Now, as you have read in our , you can enrich the API response. If you want statistics, you can add the include stats.

Let’s say you want the statistics of matches that are currently live. As you can use our to request all the in-play fixtures:

The stats include will enrich your response with all the match statistics of all games that are currently live. If you only want to have stats for certain live fixtures, then you can . For instance, if you only want all the live matches from the (league id: 8) with stats, you can use this request:

fixtures tutorial
includes tutorial
you know
livescores/now endpoint
filter
English Premier League