# Fantasy Premier League Scraper - FPL Players, Prices & xG (`datawright/fantasy-premier-league-scraper`) Actor

Official Fantasy Premier League data: every player's price, ownership, form, points, xG/xA and injury news; gameweek-by-gameweek player history; past seasons; fixtures with difficulty; gameweek summaries and live points. Filter by team, position, price.

- **URL**: https://apify.com/datawright/fantasy-premier-league-scraper.md
- **Developed by:** [Datawright](https://apify.com/datawright) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 row of data

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Fantasy Premier League Scraper - FPL Players, Prices, xG & Fixtures

**Official Fantasy Premier League data** as clean JSON, CSV or Excel - for FPL research, models, spreadsheets, apps and AI agents:

- 👥 **Players** - every player's **price** and price changes, **ownership %**, status and **injury news**, total points, form, points per game, minutes, goals, assists, clean sheets, bonus/BPS, **defensive contribution**, **xG, xA, xGI, xGC**, ICT index, transfers in/out, set-piece order
- 📈 **Gameweek history** - one row per player per gameweek: opponent, home/away, score, points and every stat including xG/xA, tackles, recoveries, price and ownership at the time
- 🗂️ **Past seasons** - each player's previous FPL seasons
- 📅 **Fixtures** - all 380 with **fixture difficulty ratings** and scores
- 🏆 **Gameweeks** - average and highest score, most captained, most transferred in, top player, chips played
- ⚡ **Live points** - every player's points for the current (or any) gameweek

Filter by **team, position, price range and minutes**, and sort by points, form, value or transfers. No login, no API key.

### Quick start

All players, best first:

```json
{
  "dataType": "players"
}
```

Budget forwards and their gameweek-by-gameweek history:

```json
{
  "dataType": "playerHistory",
  "positions": [
    "FWD"
  ],
  "maxPrice": 7
}
```

The next six gameweeks of fixtures for your teams, with difficulty:

```json
{
  "dataType": "fixtures",
  "teams": [
    "Arsenal",
    "LIV"
  ],
  "gameweekFrom": 8,
  "gameweekTo": 13
}
```

This gameweek's live points:

```json
{
  "dataType": "gameweekLive"
}
```

### Output

Player row:

```json
{
  "playerId": 115,
  "player": "De Cuyper",
  "firstName": "Maxim",
  "lastName": "De Cuyper",
  "team": "Brighton",
  "teamShort": "BHA",
  "position": "DEF",
  "price": 5.3,
  "priceChangeSeason": 0.8,
  "priceChangeGameweek": 0.1,
  "selectedByPercent": 41.1,
  "status": "available",
  "chanceOfPlayingNextRound": null,
  "news": null,
  "totalPoints": 59,
  "gameweekPoints": 6,
  "pointsPerGame": 8.4,
  "form": 10.5,
  "expectedPointsNext": 10.5,
  "valueSeason": 11.1,
  "minutes": 580,
  "starts": 7,
  "goals": 2,
  "assists": 3,
  "cleanSheets": 5,
  "goalsConceded": 5,
  "saves": 0,
  "bonus": 8,
  "bps": 197,
  "yellowCards": 2,
  "redCards": 0,
  "penaltiesSaved": 0,
  "penaltiesMissed": 0,
  "ownGoals": 0,
  "defensiveContribution": 23,
  "expectedGoals": 1.8,
  "expectedAssists": 0.8,
  "expectedGoalInvolvements": 2.6,
  "expectedGoalsConceded": 9.92,
  "influence": 159.8,
  "creativity": 223.8,
  "threat": 78,
  "ictIndex": 46.2,
  "transfersInGameweek": 160261,
  "transfersOutGameweek": 12494,
  "transfersIn": 4248888,
  "transfersOut": 468311,
  "dreamteamCount": 3,
  "penaltiesOrder": null,
  "cornersOrder": 2,
  "directFreekicksOrder": 4
}
```

Gameweek history row:

```json
{
  "playerId": 115,
  "player": "De Cuyper",
  "team": "Brighton",
  "position": "DEF",
  "gameweek": 7,
  "fixtureId": 63,
  "kickoff": "2026-10-18T13:00:00Z",
  "opponent": "Crystal Palace",
  "homeAway": "home",
  "teamScore": 5,
  "opponentScore": 0,
  "points": 6,
  "minutes": 90,
  "starts": 1,
  "goals": 0,
  "assists": 0,
  "cleanSheets": 1,
  "goalsConceded": 0,
  "saves": 0,
  "bonus": 0,
  "bps": 29,
  "yellowCards": 0,
  "redCards": 0,
  "defensiveContribution": 4,
  "tackles": 3,
  "recoveries": 3,
  "clearancesBlocksInterceptions": 1,
  "expectedGoals": 0,
  "expectedAssists": 0.13,
  "expectedGoalInvolvements": 0.13,
  "expectedGoalsConceded": 0.77,
  "influence": 13.8,
  "creativity": 51.2,
  "threat": 4,
  "ictIndex": 6.9,
  "price": 5.2,
  "selected": 4445377,
  "transfersIn": 921170,
  "transfersOut": 9351
}
```

### Pricing

Pay per row - see the **Pricing** tab. Per-gameweek rows (history and live points) are priced lower because there are many of them. Use filters and *Max rows* to cap spending.

### FAQ

**How fresh is it?** Live from the official FPL game - prices, news and points update as FPL publishes them. Between gameweeks FPL briefly takes its data offline while it updates; the actor retries automatically.

**Can I get my own team or league?** Not in this version - it focuses on players, fixtures and gameweeks.

### Disclaimer

Not affiliated with, endorsed by or connected to the Premier League or Fantasy Premier League. Provides publicly available factual football and FPL statistics. It only reads publicly accessible data and grants you no rights in it: you are responsible for making sure your use complies with the data source's terms of use and applicable laws (including copyright, database and privacy laws).

# Actor input Schema

## `dataType` (type: `string`):

Choose the data. Per-gameweek rows are priced lower.

## `players` (type: `array`):

Names (partial is fine), e.g. Haaland, Saka. Empty = all players.

## `teams` (type: `array`):

Team names or short codes, e.g. Arsenal, LIV.

## `positions` (type: `array`):

Empty = all positions.

## `minPrice` (type: `number`):

e.g. 4.5

## `maxPrice` (type: `number`):

e.g. 7.0 - great for finding budget picks.

## `minMinutes` (type: `integer`):

Skip players who have barely played.

## `gameweekFrom` (type: `integer`):

For history, fixtures, gameweeks and live points.

## `gameweekTo` (type: `integer`):

Inclusive. Live points default to the current gameweek.

## `sortBy` (type: `string`):

Order of the Players output.

## `maxItems` (type: `integer`):

Stop after this many rows (0 = no limit).

## Actor input object example

```json
{
  "dataType": "players",
  "sortBy": "totalPoints",
  "maxItems": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("datawright/fantasy-premier-league-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxItems": 200 }

# Run the Actor and wait for it to finish
run = client.actor("datawright/fantasy-premier-league-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 200
}' |
apify call datawright/fantasy-premier-league-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datawright/fantasy-premier-league-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LZFn2v37McM3FfEPo/builds/5gzaSyCGGoz3jjcpp/openapi.json
