# Team Situation & Game-State xG Breakdown Scraper

**Use case:** 

Scrape a team's Understat breakdowns by situation, formation, game-state and shot zone — open-play, set-piece and penalty xG split out for tactical analysis.

## Input

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

## Output

```json
{
  "team": {
    "label": "Team",
    "format": "text"
  },
  "league": {
    "label": "League",
    "format": "text"
  },
  "seasonLabel": {
    "label": "Season",
    "format": "text"
  },
  "breakdown": {
    "label": "Group",
    "format": "text"
  },
  "label": {
    "label": "Label",
    "format": "text"
  },
  "shots": {
    "label": "Shots",
    "format": "number"
  },
  "goals": {
    "label": "Goals",
    "format": "number"
  },
  "xG": {
    "label": "xG",
    "format": "number"
  },
  "againstShots": {
    "label": "vs Shots",
    "format": "number"
  },
  "againstGoals": {
    "label": "vs Goals",
    "format": "number"
  },
  "againstXG": {
    "label": "vs xG",
    "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.