Application examples of interfaces

Schedule and Results:

 

We provide three schedule interfaces. The data structure is the same, but the query dimensions are different:

(1)"date query": based on the date parameter, return all schedules on this date (historical/future schedules can only be queried within 30 days)

(2)"season query (newest season)": based on the season id parameter, return all schedules of this season (only the latest season can be queried)

(3)"season query (all season)": based on the season id parameter, return all schedules of this season (the most complete season can be queried)

(4)"Match (recent)": return all future schedules and historical schedules within 30 days

(5)"Match": return all schedules

You can choose one of the interfaces according to your business needs

 

Match Stats:

 

Incidents:

 

 

Team Stats:

 

(1)"Match team statistics": returns the data of the match team that has changed within 120 seconds (regardless of whether the match is in progress or has ended)

(2)"Team statistics (historical matches)": returns the team statistics of a single match through the ended match id parameter (only matches within 30 days can be obtained). Used as a supplement when real-time data is missing

ps: Only matches in popular competitions have this data, and low-level matches may not have this data. You can refer to the actual return of the interface.

 

 

Standing

 

(1) "Season standing(newest season)": Returns the standings data of this season according to the season id parameter (only the latest season can be queried)

(2) "Season standing(all season)": Returns the standings data of this season according to the season id parameter (all seasons can be queried)

 

 

Season statistics

 


(1) "Season team statistics(newest season)": Returns the team statistics of this season through the season ID (only the latest season can be queried)

(2) "Season team statistics(all season)": Returns the team statistics of this season through the season ID (all seasons can be queried)

(3) "Season player statistics(newest season)" / "Season player statistics(all season)": Same as the above team interface

 

Overview

 

Before viewing this page, first understand the relationship between each data:

(1)A "competition" may have multiple seasons
(For example, the "World Cup" will have 2018, 2014, and 2022 seasons)

(2)A "season" may have multiple stages
(For example, the "2018 World Cup" will have group stages, semi-finals, finals, etc.)

(3)There may be multiple groups in a "stage"
(For example, the "Group Stage" will have 8 groups A-H)

(4)A "group" may have multiple rounds of matches
(For example, Group A has 3 rounds of matches)

 

In the "Competition", "Season" and "Stage" interfaces, you can obtain the relationship between them

 

In the schedule interface, there is a "round" field, which will indicate which "stage", which "group" and which "round" match this match is. This data can be displayed in association with the data from the above three interfaces.

 

@2022 TheSports All Rights Reserved