# Get LaLiga final tables for the last 20 seasons

**Use case:** 

LaLiga's league table for each of the last 20 seasons, with home and away splits: position, points, wins, draws, losses and goals for every team. Swap the URL for any league on Flashscore.

## Input

```json
{
  "leagueUrls": [
    "https://www.flashscore.com/football/spain/laliga/"
  ],
  "seasons": [
    "2024-2025",
    "2023-2024"
  ],
  "lastSeasons": 20,
  "include": [
    "standings"
  ],
  "standingsViews": [
    "overall",
    "home",
    "away"
  ],
  "overUnderLines": [
    "2.5"
  ],
  "maxItems": 10000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "league": {
    "label": "League",
    "format": "string"
  },
  "season": {
    "label": "Season",
    "format": "string"
  },
  "stage": {
    "label": "Stage",
    "format": "string"
  },
  "view": {
    "label": "View",
    "format": "string"
  },
  "group": {
    "label": "Group",
    "format": "string"
  },
  "rank": {
    "label": "#",
    "format": "integer"
  },
  "team": {
    "label": "Team",
    "format": "string"
  },
  "played": {
    "label": "MP",
    "format": "integer"
  },
  "wins": {
    "label": "W",
    "format": "integer"
  },
  "draws": {
    "label": "D",
    "format": "integer"
  },
  "losses": {
    "label": "L",
    "format": "integer"
  },
  "scoresFor": {
    "label": "GF",
    "format": "integer"
  },
  "scoresAgainst": {
    "label": "GA",
    "format": "integer"
  },
  "points": {
    "label": "Pts",
    "format": "integer"
  },
  "zone": {
    "label": "Zone",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Flashscore League Archive: Results & Tables](https://apify.com/incognito_mode/flashscore-league-archive-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/incognito_mode/flashscore-league-archive-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/incognito_mode/flashscore-league-archive-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
