# EPL Team xG Table, PPDA & xPoints Scraper

**Use case:** 

Scrape the Premier League team table with xG, xGA, npxGD, PPDA, points and expected points from Understat for season-level team analysis.

## Input

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

## Output

```json
{
  "title": {
    "label": "Team",
    "format": "text"
  },
  "league": {
    "label": "League",
    "format": "text"
  },
  "seasonLabel": {
    "label": "Season",
    "format": "text"
  },
  "matches": {
    "label": "MP",
    "format": "number"
  },
  "wins": {
    "label": "W",
    "format": "number"
  },
  "draws": {
    "label": "D",
    "format": "number"
  },
  "losses": {
    "label": "L",
    "format": "number"
  },
  "goalsFor": {
    "label": "GF",
    "format": "number"
  },
  "goalsAgainst": {
    "label": "GA",
    "format": "number"
  },
  "xG": {
    "label": "xG",
    "format": "number"
  },
  "xGA": {
    "label": "xGA",
    "format": "number"
  },
  "npxGD": {
    "label": "npxGD",
    "format": "number"
  },
  "ppdaCoef": {
    "label": "PPDA",
    "format": "number"
  },
  "points": {
    "label": "Pts",
    "format": "number"
  },
  "xPoints": {
    "label": "xPts",
    "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.