# Match Shot Map Scraper with x/y Coordinates

**Use case:** 

Scrape every shot of a single match — x/y pitch coordinates, xG, situation, body part and result — from Understat to build shot maps and heatmaps.

## Input

```json
{
  "mode": "match_shots",
  "leagues": [],
  "seasons": [],
  "teams": [],
  "matchIds": [
    "26630"
  ],
  "playerIds": [],
  "positions": [],
  "nLastMatches": 0,
  "dateStart": "",
  "dateEnd": "",
  "minAppearances": 0,
  "maxResults": 50,
  "maxCostUsd": 25,
  "includeRawJson": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "matchId": {
    "label": "Match",
    "format": "number"
  },
  "matchDate": {
    "label": "Date",
    "format": "text"
  },
  "minute": {
    "label": "Min",
    "format": "number"
  },
  "teamTitle": {
    "label": "Team",
    "format": "text"
  },
  "player": {
    "label": "Player",
    "format": "text"
  },
  "result": {
    "label": "Result",
    "format": "text"
  },
  "situation": {
    "label": "Situation",
    "format": "text"
  },
  "shotType": {
    "label": "Body",
    "format": "text"
  },
  "xG": {
    "label": "xG",
    "format": "number"
  },
  "x": {
    "label": "X",
    "format": "number"
  },
  "y": {
    "label": "Y",
    "format": "number"
  },
  "distanceMeters": {
    "label": "Dist (m)",
    "format": "number"
  },
  "angleDegrees": {
    "label": "Angle°",
    "format": "number"
  },
  "assistPlayer": {
    "label": "Assist",
    "format": "text"
  },
  "homeScore": {
    "label": "H",
    "format": "number"
  },
  "awayScore": {
    "label": "A",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [Understat xG & Shot Data - Football Analytics](https://apify.com/constructive_calm/understat-football-analytics) with a specific input configuration. Visit the [Actor detail page](https://apify.com/constructive_calm/understat-football-analytics) to learn more, explore other use cases, and run it yourself.