Skip to main content
GET
Get match shotmap
Walkthrough with code: Player and team stats.

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

player_id
string

Only shots by this player

Response

The shots and xG summary.

match_id
string
Example:

"mt_838955483"

event
object
data
object[]
np_xg_summary
object

Non-penalty xG per team. live adds up the per-shot xG in data (penalties left out). stored is the match-level figure when one is recorded, otherwise the same as live.

meta
object