# Formula 1 Results, Laps and Standings Scraper (`parselab/f1-racing-data-scraper`) Actor

Get Formula 1 race results, qualifying, sprints, standings, pit stops, calendars, drivers and circuits back to 1950. From 2023 you also get every lap with sector times, speed traps, tyre compound and tyre age, plus race control flags and safety cars. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/f1-racing-data-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** Sports, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Formula 1 Results, Laps and Standings Scraper

This Formula 1 scraper returns race results, qualifying, sprint results, championship standings, pit stops, race calendars, drivers, constructors and circuits as clean rows. Results and standings go back to the first season in 1950. From 2023 you also get every lap of a session with sector times, speed trap readings, tyre compound and tyre age, plus the race control feed with flags, safety cars and steward messages.

Each result row already includes the numbers people calculate by hand: positions gained from the grid, a finished flag, win and podium flags, the fastest lap rank and time, and the driver and team details in the same row. You do not have to join five tables to answer a simple question.

Fantasy players, betting analysts, journalists, YouTubers, data scientists and fans use it to build charts, models and race reports.

### What can you do with this Formula 1 scraper?

- Get the full results of every Grand Prix in a season
- Find all wins, podiums and pole positions of a driver
- Compare qualifying times from Q1 to Q3
- Track how many positions a driver gained from the grid
- Download the championship standings after any round
- List pit stops with duration and lap for a race
- Build a lap chart from lap times and positions
- Analyze tyre strategy with compound and tyre age for every lap
- Find every red flag, safety car and virtual safety car of a race
- Get the season calendar with practice, qualifying and race times
- Export Formula 1 data to CSV or Excel

### What data can you extract from Formula 1?

| Mode | One row is | Highlights |
|---|---|---|
| Race results | One driver in one race | Grid, finish, points, status, race time, fastest lap, positions gained, win and podium flags |
| Qualifying | One driver in one session | Q1, Q2 and Q3 times, position |
| Sprint results | One driver in one sprint | Same fields as race results |
| Race calendar | One race | Circuit, location, coordinates, all session times |
| Standings | One driver or team after a round | Position, points, wins |
| Pit stops | One stop | Driver, stop number, lap, time of day, duration |
| Laps | One driver on one lap | Lap time, three sector times, speed traps, pit out lap flag, tyre compound, tyre age |
| Race control | One message | Time, lap, flag, scope, category, message |
| Drivers, constructors, circuits | One item | Names, nationality, birth date, coordinates |

### How to scrape Formula 1 data

1. Choose **What to collect**, for example Race results.
2. Enter one or more seasons such as `2024`. Leave it empty for the latest season.
3. Optionally add rounds, drivers or constructors to narrow the search.
4. Set **Max Items** and click **Start**.
5. Export the dataset as CSV, Excel or from the Apify console.

### Input example

```json
{
  "mode": "results",
  "seasons": ["2024"],
  "drivers": ["VER", "NOR"],
  "maxItems": 100
}
```

### Race results output example

```json
{
  "season": 2024,
  "round": 1,
  "raceName": "Bahrain Grand Prix",
  "date": "2024-03-02",
  "driverName": "Max Verstappen",
  "driverCode": "VER",
  "constructorName": "Red Bull",
  "grid": 1,
  "position": 1,
  "points": 26,
  "status": "Finished",
  "raceTime": "1:31:44.742",
  "positionsGained": 0,
  "isWin": true,
  "isPodium": true,
  "fastestLapRank": 1,
  "fastestLapTime": "1:32.608"
}
```

### Laps output example

```json
{
  "season": 2024,
  "round": 12,
  "raceName": "British Grand Prix",
  "driverCode": "VER",
  "team": "Red Bull Racing",
  "lapNumber": 1,
  "lapDurationSeconds": 97.211,
  "sector1Seconds": 33.528,
  "sector2Seconds": 37.975,
  "sector3Seconds": 25.708,
  "speedTrap1Kph": 298,
  "finishLineSpeedKph": 290,
  "tyreCompound": "MEDIUM",
  "tyreAgeLaps": 0
}
```

### How much does it cost to scrape Formula 1 data?

You pay per result: $16 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run. A full season of race results is about 480 rows, and the laps of one race are roughly 1,100 rows.

### Coverage by season

- Results, standings, drivers, constructors and circuits: 1950 to today
- Qualifying: from the 1990s, with the older seasons partly missing
- Lap times and positions: 1996 to 2022
- Pit stops: 2011 to today
- Sector times, speed traps, tyres and race control: 2023 to today

### Tips for better results

- Filter by driver code, for example `HAM`, or by team, for example `ferrari`, to keep a dataset small.
- Use the rounds field to limit laps and pit stops to one race. Laps for a whole season are large.
- The driver number in a results row is the permanent number. The car number can differ, for example for the reigning champion.
- Set the session to Qualifying or Sprint to get laps and messages from those sessions from 2023.
- The Actor spaces out its requests to respect the data sources, so a full season of laps takes a few minutes.

### Who uses Formula 1 data?

- **Fantasy and betting players** study form, qualifying pace and tyre strategy.
- **Journalists and YouTubers** back stories with numbers.
- **Data scientists** build lap-time and strategy models.
- **Fans** compare drivers across eras.

### Automate and connect

Schedule the Actor for Monday after each race weekend to pull the new results and standings. Send finished datasets to Google Sheets, Zapier, Make or n8n, or trigger a webhook when a run ends.

### FAQ

**Do I need a Formula 1 account?**
No. The Actor works without any login.

**Where does the data come from?**
Historical results come from the community-run Jolpica F1 project, the successor of the Ergast database. Laps, tyres and race control come from the open OpenF1 project.

**Does it include live timing?**
No. Data is available after sessions finish.

**Why are qualifying times missing for old seasons?**
Complete qualifying records do not exist for the early decades of the championship.

**Can I get telemetry such as speed and throttle?**
Not in this version. You get sector times, speed traps and tyre data per lap.

### Legal note

This Actor collects information that is publicly visible on the website. Check the source site's terms and your local rules before using the data. It is not affiliated with Formula 1 or the FIA.

### Support

Missing a field or found a bug? Open an issue from the Actor page.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `mode` (type: `string`):

Results, qualifying and sprint give one row per driver per race. Races gives the calendar with session times. Standings give the championship table. Pit stops give one row per stop. Laps give one row per driver per lap. Race control gives flags, safety cars and steward messages. Drivers, constructors and circuits are directories.

## `seasons` (type: `array`):

Seasons to collect, for example 2024 or 1988. Leave empty for the latest season. Results and standings go back to 1950, qualifying to the 1990s, lap timings to 1996, pit stops to 2011, and detailed laps and race control to 2023.

## `rounds` (type: `array`):

Race numbers within the season, for example 1, 2, 3. Leave empty for the whole season. For standings this returns the table after that round.

## `drivers` (type: `array`):

Keep only these drivers. Use a code, a name or a number, for example VER, Hamilton or 44.

## `constructors` (type: `array`):

Keep only these teams, for example Ferrari, mclaren or red\_bull.

## `sessionName` (type: `string`):

Which session to use in laps and race control modes from 2023. Race is the default. Other values include Qualifying, Sprint, Practice 1, Practice 2 and Practice 3.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "results",
  "seasons": [
    "2024"
  ],
  "sessionName": "Race"
}
```

# Actor output Schema

## `overview` (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": 10,
    "seasons": [
        "2024"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/f1-racing-data-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": 10,
    "seasons": ["2024"],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/f1-racing-data-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": 10,
  "seasons": [
    "2024"
  ]
}' |
apify call parselab/f1-racing-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/f1-racing-data-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/Ap6pxfyH967ljFplv/builds/hg5eXuXgEfGRzOx5R/openapi.json
