Team statistics

GET https://soccer.sportmonks.com/api/v2.0/teams/:TEAM_ID?include=stats&seasons=17328

Introduction

With the Teams endpoint you can find all Team Details you need. You can think if information about when the Team is founded, Logo, Team Name, Short Name etc.

But especially by using the right includes you can have the right Team details you need, like the Team Coach, Team Venues, Results, Upcoming Games, Team Stats and many more valuable Team details. In this example we've included the statistics of Midtjylland for the 2020/2021 Danish Superliga season.

You can also disable the seasons filter to get the team stats for all the seasons they've participated in.

Pagination

NO - Indicates if this endpoint contains pagination.

Nested Includes

3 - You can add a maximum of 3 levels of nested includes.

Includes Options

country squad coach transfers sidelined stats venue fifaranking uefaranking visitorFixtures localFixtures visitorResults latest upcoming goalscorers cardscorers assistscorers aggregatedGoalscorers aggregatedCardscorers aggregatedAssistscorers league activeSeasons trophies

Request Params

KeyDatatypeRequiredDescription
includestringEnrich the API with more data and/or nested includes
seasonsnumberFilter stats based on a comma separated list of season ids.
teamsnullFilter stats based on a comma separated list of team ids.

RESPONSES

status: OK

{"data":{"id":939,"legacy_id":513,"name":"Midtjylland","short_code":"FCM","twitter":null,"country_id":320,"national_team":false,"founded":1999,"logo_path":"https://cdn.sportmonks.com/images//soccer/teams/11/939.png","venue_id":342,"current_season_id":17328,"stats":{"data":[{"team_id":939,"season_id":17328,"stage_id":77447994,"win":{"total":10,"home":6,"away":4},"draw":{"total":3,"home":1,"away":2},"lost":{"total":3,"home":1,"away":2},"goals_for":{"total":27,"home":14,"away":13},"goals_against":{"total":17,"home":4,"away":13},"clean_sheet":{"total":6,"home":5,"away":1},"failed_to_score":{"total":2,"home":1,"away":1},"scoring_minutes":[{"period":[{"minute":"0-15","count":4,"percentage":14.8},{"minute":"15-30","count":2,"percentage":7.4},{"minute":"30-45","count":6,"percentage":22.2},{"minute":"45-60","count":1,"percentage":3.7},{"minute":"60-75","count":9,"percentage":33.3},{"minute":"75-90","count":5,"percentage":18.5}]}],"goals_conceded_minutes":[{"period":[{"minute":"0-15","count":2,"percentage":11.8},{"minute":"15-30","count":2,"percentage":11.8},{"minute":"30-45","count":5,"percentage":29.4},{"minute":"45-60","count":3,"percentage":17.6},{"minute":"60-75","count":3,"percentage":17.6},{"minute":"75-90","count":2,"percentage":11.8}]}],"avg_goals_per_game_scored":{"total":1.69,"home":1.75,"away":1.63},"avg_goals_per_game_conceded":{"total":1.06,"home":0.5,"away":1.63},"avg_first_goal_scored":{"total":"44m","home":"42m","away":"47m"},"avg_first_goal_conceded":{"total":"38m","home":"38m","away":"39m"},"attacks":1924,"dangerous_attacks":893,"avg_ball_possession_percentage":"59.19","fouls":170,"avg_fouls_per_game":"10.63","offsides":34,"redcards":0,"yellowcards":25,"shots_blocked":47,"shots_off_target":154,"avg_shots_off_target_per_game":"9.63","shots_on_target":87,"avg_shots_on_target_per_game":"5.44","avg_corners":"6.00","total_corners":96,"btts":56.25,"goal_line":{"over":{"0_5":{"home":87.5,"away":100},"1_5":{"home":50,"away":100},"2_5":{"home":50,"away":62.5},"3_5":{"home":37.5,"away":37.5},"4_5":{"home":0,"away":25},"5_5":{"home":0,"away":0}},"under":{"0_5":{"home":12.5,"away":0},"1_5":{"home":50,"away":0},"2_5":{"home":50,"away":37.5},"3_5":{"home":62.5,"away":62.5},"4_5":{"home":100,"away":75},"5_5":{"home":100,"away":100}}},"avg_player_rating":6.78,"avg_player_rating_per_match":6.78,"tackles":454}]}},"meta":{"subscription":{"started_at":{"date":"2017-03-20 21:02:56.000000","timezone_type":3,"timezone":"UTC"},"trial_ends_at":null,"ends_at":null},"plan":{"name":"Free Plan","price":"0.00","request_limit":"3,1"},"sports":[{"id":1,"name":"Soccer","current":true},{"id":6,"name":"Cricket","current":false}]}}