# Jolpica F1 Scraper - Race Results, Qualifying & Standings (`jungle_synthesizer/jolpica-f1-results-scraper`) Actor

Extract Formula 1 race results, qualifying times, driver and constructor standings, lap times, and pit stops from the Jolpica F1 API — the maintained successor to the defunct Ergast API. Covers all seasons from 1950 to present including 2025-2026.

- **URL**: https://apify.com/jungle\_synthesizer/jolpica-f1-results-scraper.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Sports, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Jolpica F1 Scraper - Race Results, Qualifying & Standings

Extract Formula 1 race results, qualifying times, driver and constructor standings, lap times, and pit stops from the **Jolpica F1 API** — the community-maintained successor to the Ergast API (retired end-2024). All seasons 1950 through 2025-2026 are available.

> **Why Jolpica?** Ergast was the de-facto F1 data standard for a decade. When it was retired at the end of 2024, every fantasy app, sim-racing tool, and analytics script had to migrate. Jolpica is the migration target — same schema, live updates, free and open. This actor points at Jolpica, not the dead Ergast endpoint.

---

### What Data Does It Return?

Each record type is a flat JSON object with all relevant fields:

#### Race Results (`race_results`)
Position, driver, constructor, grid, laps, status, fastest lap time and speed, race time, and championship points — per driver per race.

#### Qualifying (`qualifying`)
Q1, Q2, and Q3 session lap times per driver per race.

#### Driver Standings (`driver_standings`)
Championship points, wins, and position per driver, per season (or per round).

#### Constructor Standings (`constructor_standings`)
Championship points, wins, and position per constructor, per season (or per round).

#### Lap Times (`lap_times`)
Per-lap position and time for every driver in a specific race (requires `season` + `round`).

#### Pit Stops (`pit_stops`)
Stop number, lap, time of day, and duration for every pit stop in a specific race (requires `season` + `round`).

---

### Input

| Field | Type | Description |
|-------|------|-------------|
| `dataType` | string | Data to fetch: `race_results`, `qualifying`, `driver_standings`, `constructor_standings`, `lap_times`, `pit_stops` |
| `season` | string | Season year (e.g. `2024`, `2025`) or `current`. Leave empty for all seasons. |
| `round` | string | Race round number. Required for `lap_times` and `pit_stops`. |
| `driverId` | string | Filter to one driver (e.g. `max_verstappen`, `hamilton`). |
| `constructorId` | string | Filter to one constructor (e.g. `red_bull`, `mercedes`). |
| `maxItems` | integer | Maximum records to return. `0` = unlimited. |

#### Example Inputs

**Get 2024 race results (all races, all drivers):**
```json
{
  "dataType": "race_results",
  "season": "2024",
  "maxItems": 100
}
````

**Get Hamilton's full race results career:**

```json
{
  "dataType": "race_results",
  "driverId": "hamilton",
  "maxItems": 0
}
```

**Get lap times for the 2024 Bahrain Grand Prix (round 1):**

```json
{
  "dataType": "lap_times",
  "season": "2024",
  "round": "1",
  "maxItems": 0
}
```

**Get 2025 driver championship standings:**

```json
{
  "dataType": "driver_standings",
  "season": "2025",
  "maxItems": 25
}
```

***

### Output Schema

All record types share common race metadata fields and include a `data_type` field for filtering.

**Common fields:** `data_type`, `season`, `round`, `race_name`, `circuit_id`, `circuit_name`, `circuit_locality`, `circuit_country`, `circuit_lat`, `circuit_long`, `race_date`, `race_time_utc`

**Race results / qualifying:** `driver_id`, `driver_code`, `driver_name`, `driver_nationality`, `driver_dob`, `constructor_id`, `constructor_name`, `position`, `position_text`, `grid`, `laps`, `status`, `points`, `fastest_lap_rank`, `fastest_lap_time`, `fastest_lap_speed_kph`, `q1_time`, `q2_time`, `q3_time`

**Standings:** `standings_position`, `standings_points`, `standings_wins`, driver/constructor fields as applicable

**Lap times:** `driver_id`, `lap_number`, `lap_time`, `lap_position`

**Pit stops:** `driver_id`, `pit_stop_number`, `pit_stop_lap`, `pit_stop_time_of_day`, `pit_stop_duration`

***

### Data Source

[Jolpica F1 API](https://api.jolpi.ca/ergast/f1/) — free, open, no authentication required. Maintained by the F1 data community as a drop-in replacement for Ergast. Covers 1950-present with ongoing updates.

***

### Need More Features?

Have a use case that isn't covered — sprint results, fastest lap history by circuit, tyre strategy data, or a specific filtering combination? Open an issue or get in touch. We are happy to extend the actor for your needs.

# Actor input Schema

## `sp_intended_usage` (type: `string`):

Please describe how you plan to use the data extracted by this crawler.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

Provide your email address so we can get in touch with you.

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

Type of F1 data to fetch. race\_results = race finishing positions. qualifying = Q1/Q2/Q3 times. standings = driver or constructor championship standings. lap\_times = per-lap timing per driver. pit\_stops = pit stop laps and durations.

## `season` (type: `string`):

Season year (e.g. 2024, 2025) or 'current' for the ongoing season. Leave empty to get all seasons (pagination applies).

## `round` (type: `string`):

Race round number within the season (e.g. 1 for the first race). Leave empty to get all rounds for the season. Required for lap\_times and pit\_stops.

## `driverId` (type: `string`):

Jolpica driver identifier (e.g. max\_verstappen, hamilton, leclerc). Filters results to a single driver. Leave empty for all drivers.

## `constructorId` (type: `string`):

Jolpica constructor identifier (e.g. red\_bull, mercedes, ferrari). Filters results to a single constructor. Leave empty for all.

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

Maximum number of records to return. Each record is one result row (per driver per race, per lap, etc.). Set to 0 for unlimited.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "dataType": "race_results",
  "season": "2024",
  "maxItems": 10
}
```

# 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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "dataType": "race_results",
    "season": "2024",
    "round": "",
    "driverId": "",
    "constructorId": "",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/jolpica-f1-results-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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "dataType": "race_results",
    "season": "2024",
    "round": "",
    "driverId": "",
    "constructorId": "",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/jolpica-f1-results-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "dataType": "race_results",
  "season": "2024",
  "round": "",
  "driverId": "",
  "constructorId": "",
  "maxItems": 10
}' |
apify call jungle_synthesizer/jolpica-f1-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jungle_synthesizer/jolpica-f1-results-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Jolpica F1 Scraper - Race Results, Qualifying & Standings",
        "description": "Extract Formula 1 race results, qualifying times, driver and constructor standings, lap times, and pit stops from the Jolpica F1 API — the maintained successor to the defunct Ergast API. Covers all seasons from 1950 to present including 2025-2026.",
        "version": "1.0",
        "x-build-id": "KlTwctgdzCMNWdzFd"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jungle_synthesizer~jolpica-f1-results-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jungle_synthesizer-jolpica-f1-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jungle_synthesizer~jolpica-f1-results-scraper/runs": {
            "post": {
                "operationId": "runs-sync-jungle_synthesizer-jolpica-f1-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jungle_synthesizer~jolpica-f1-results-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-jungle_synthesizer-jolpica-f1-results-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "sp_intended_usage": {
                        "title": "What is the intended usage of this data?",
                        "minLength": 1,
                        "type": "string",
                        "description": "Please describe how you plan to use the data extracted by this crawler."
                    },
                    "sp_improvement_suggestions": {
                        "title": "How can we improve this crawler for you?",
                        "minLength": 1,
                        "type": "string",
                        "description": "Provide any feedback or suggestions for improvements."
                    },
                    "sp_contact": {
                        "title": "Contact Email",
                        "minLength": 1,
                        "type": "string",
                        "description": "Provide your email address so we can get in touch with you."
                    },
                    "dataType": {
                        "title": "Data Type",
                        "enum": [
                            "race_results",
                            "qualifying",
                            "driver_standings",
                            "constructor_standings",
                            "lap_times",
                            "pit_stops"
                        ],
                        "type": "string",
                        "description": "Type of F1 data to fetch. race_results = race finishing positions. qualifying = Q1/Q2/Q3 times. standings = driver or constructor championship standings. lap_times = per-lap timing per driver. pit_stops = pit stop laps and durations.",
                        "default": "race_results"
                    },
                    "season": {
                        "title": "Season (Year)",
                        "type": "string",
                        "description": "Season year (e.g. 2024, 2025) or 'current' for the ongoing season. Leave empty to get all seasons (pagination applies)."
                    },
                    "round": {
                        "title": "Round Number",
                        "type": "string",
                        "description": "Race round number within the season (e.g. 1 for the first race). Leave empty to get all rounds for the season. Required for lap_times and pit_stops."
                    },
                    "driverId": {
                        "title": "Driver ID",
                        "type": "string",
                        "description": "Jolpica driver identifier (e.g. max_verstappen, hamilton, leclerc). Filters results to a single driver. Leave empty for all drivers."
                    },
                    "constructorId": {
                        "title": "Constructor ID",
                        "type": "string",
                        "description": "Jolpica constructor identifier (e.g. red_bull, mercedes, ferrari). Filters results to a single constructor. Leave empty for all."
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of records to return. Each record is one result row (per driver per race, per lap, etc.). Set to 0 for unlimited.",
                        "default": 10
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
