Team - Last 5 / 6 / 10 Stats

Last 5 matches, last 6 matches, or last 10 match stats for an individual team.

get
Get Last X stats for a team

https://api.footystats.org/lastx?key=YOURKEY&team_id=*
Sample Response (Access from URL below) https://api.footystats.org/lastx?key=example&team_id=59 1 query allows you to get all 3 types of stats (last 5 / 6 /10). We are adding last 15 and last 20 stats down the road. Stats(attributes and properties) are identical to the stats from team endpoint.
Request
Response
Request
Query Parameters
key
required
string
Your API key
team_id
required
integer
ID of the team
Response
200: OK
Cake successfully retrieved.
{
success: true,
pager: {
current_page: 1,
max_page: 1,
results_per_page: 50,
total_results: 3
},
data: [
{
id: 59,
continent: null,
image: "https://cdn.footystats.org/img/teams/england-arsenal-fc.png",
season: "2020",
url: "https://footystats.org/clubs/england/arsenal-fc",
table_position: 0,
performance_rank: 0,
risk: 40,
season_format: "Domestic League",
competition_id: -1,
last_updated_match_timestamp: 1583593200,
last_x_home_away_or_overall: "0",
founded: "1886",
country: "England",
name: "Arsenal",
full_name: "Arsenal FC",
english_name: "Arsenal FC",
last_x_match_num: 5,
alt_names: [ ],
official_sites: {
: "https://www.arsenal.com/"
},
stats: {
suspended_matches: 0,
homeAttackAdvantage: 4,
homeDefenceAdvantage: -66,
homeOverallAdvantage: -31,
seasonGoals_overall: 8,
seasonConceded_overall: 4,
seasonGoalsTotal_overall: 12,
seasonGoalsTotal_home: 9,
seasonGoalsTotal_away: 3,
seasonScoredNum_overall: 8,
seasonScoredNum_home: 5,
seasonScoredNum_away: 3,
seasonConcededNum_overall: 4,
seasonConcededNum_home: 4,
seasonConcededNum_away: 0,
seasonGoalsMin_overall: 38,
seasonGoalsMin_home: 30,
seasonGoalsMin_away: 60,
seasonScoredMin_overall: 56
...

Attribute Unique to This Endpoint

Description

last_x_match_num

5, 6, or 10. Number of matches from which the stats are calculated from.

last_updated_match_timestamp

UNIX timestamp of when the data was updated.

last_x_home_away_or_overall

Currently not used. 0 = Overall (all matches included). 1 = Home only stats. 2 = Away only stats.