# Player Career xG History Scraper (Understat)

**Use case:** 

Scrape a footballer's full multi-season career from Understat — every team, season, xG, xA, npxG and xGChain in one run for trajectory analysis.

## Input

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

## Output

```json
{
  "playerId": {
    "label": "PlayerID",
    "format": "number"
  },
  "playerName": {
    "label": "Player",
    "format": "text"
  },
  "seasonLabel": {
    "label": "Season",
    "format": "text"
  },
  "team": {
    "label": "Team",
    "format": "text"
  },
  "position": {
    "label": "Pos",
    "format": "text"
  },
  "games": {
    "label": "Apps",
    "format": "number"
  },
  "goals": {
    "label": "G",
    "format": "number"
  },
  "assists": {
    "label": "A",
    "format": "number"
  },
  "xG": {
    "label": "xG",
    "format": "number"
  },
  "xA": {
    "label": "xA",
    "format": "number"
  },
  "npxG": {
    "label": "npxG",
    "format": "number"
  },
  "xGChain": {
    "label": "xGChain",
    "format": "number"
  },
  "xGBuildup": {
    "label": "xGBuildup",
    "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.