Skip to main content
GET
Get match timeline
During a match, use Get live match timeline. How the live and post-match endpoints fit together: Live matches.

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys

Path Parameters

match_id
string
required

Match ID, e.g. mt_838955483. Find IDs with GET /football/matches

Query Parameters

event_type
string

Comma-separated event types to keep (values of type, e.g. goal, yellow_card, substitution). Defaults to all. Unknown values return 400. Penalty goals are penalty_scored and own goals are own_goal, not goal, so use goal,penalty_scored,own_goal to get every goal; shoot-out kicks are also penalty_scored with period penalties

period
string

Comma-separated periods to keep. Values are first_half, second_half, extra_time_first_half, extra_time_second_half and penalties

team_id
string

Only events for this team. For corner_kick that means corners this team conceded

Response

The timeline.

data
object
required
meta
object
required
Example: