# MotoGP Official Results & Standings Scraper (`artsiom_k/motogp-scraper`) Actor

Scrape official MotoGP/Moto2/Moto3 race results and championship standings, including historical seasons. No login required.

- **URL**: https://apify.com/artsiom\_k/motogp-scraper.md
- **Developed by:** [Artsiom Kunitsyn](https://apify.com/artsiom_k) (community)
- **Categories:** Other, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## motogp-scraper

Scrapes official **MotoGP/Moto2/Moto3 race results** and **championship standings** from
[motogp.com](https://www.motogp.com), via the site's own public results API — no login required.

### Contents

- [Key features](#key-features)
- [Output](#output)
- [Input](#input)
- [Input examples](#input-examples)
- [Incremental (delta) mode](#incremental-delta-mode)
- [How to scrape motogp.com](#how-to-scrape-motogpcom)
- [FAQ](#faq)

### 🔑 Key features

- **Two entity types, one Actor.** Set `entityType` to `results` (session-by-session finishing
  order) or `standings` (final championship standings).
- **Real historical depth.** MotoGP's own API has real data for ~78 seasons.
- **Full session detail.** Every result includes rider, team, constructor, time, gap to the
  leader, average speed, laps, points, and status — for every session type (practice, qualifying,
  sprint, warm-up, race).
- **Real season-long rollups on every standings row** — wins, podiums, sprint wins, and sprint
  podiums, computed by the site's own API, not estimated.
- **`seasonYear`/`category` scoping** — crawl one season and/or one class instead of walking all
  history.
- **Delta mode built in.** Every run classifies each item as `new`, `changed`, `unchanged`, or
  `delisted` against a persisted baseline.
- **`maxItems` defaults to 50** — a fast preview, and what keeps an unconfigured run within Apify's
  automated 5-minute QA check. Clear `maxItems` (`null`) for a full run.

### 📋 Output

One dataset item per rider-per-session (`results`) or rider-per-season (`standings`) — see
[`.actor/dataset_schema.json`](.actor/dataset_schema.json) for the full field list, or the
Output tab's **Results** / **Standings** views for a readable table.

**Example result record:**

```json
{
  "source": "motogp",
  "entity_type": "results",
  "external_id": "8c630d23-bb85-4827-81d7-f9b2e4c9f342",
  "url": "https://www.motogp.com/en/gp-results/2025/tha/motogp/rac/classification",
  "season_year": 2025,
  "category": "MotoGP",
  "event_name": "GRAND PRIX OF THAILAND",
  "circuit": "Chang International Circuit",
  "country": "Thailand",
  "session_type": "RAC",
  "position": 1,
  "rider_name": "Marc Marquez",
  "rider_country": "Spain",
  "team_name": "Ducati Lenovo Team",
  "constructor_name": "Ducati",
  "time": "39:37.244",
  "average_speed": 179.3,
  "total_laps": 26,
  "points": 25,
  "status": "INSTND",
  "change_type": "new"
}
```

**Example standing record:**

```json
{
  "source": "motogp",
  "entity_type": "standings",
  "external_id": "c02e9026-9bba-4788-95cc-cab16b3283f6",
  "url": "https://www.motogp.com/en/gp-results/2025/standings/motogp",
  "season_year": 2025,
  "category": "MotoGP",
  "position": 1,
  "rider_name": "Marc Marquez",
  "team_name": "Ducati Lenovo Team",
  "points": 545,
  "race_wins": 11,
  "podiums": 15,
  "sprint_wins": 14,
  "sprint_podiums": 16,
  "change_type": "new"
}
```

### 🔧 Input

| Field | Type | Default | Description |
|---|---|---|---|
| `entityType` | string | `results` | `results` or `standings`. |
| `seasonYear` | integer | — | Scope to one season, e.g. `2025`. |
| `category` | string | — | Scope to one class: `motogp` / `moto2` / `moto3`. |
| `maxItems` | integer | `50` | Stop after pushing this many items. Set to `null` for a full crawl. |
| `mode` | string | `auto` | `auto` / `full` / `incremental` — see [Incremental mode](#incremental-delta-mode). |
| `concurrency` | integer | `20` | How many API calls to fetch in parallel — validated at real sustained scale, see FAQ. |
| `impersonate` | string | `chrome` | curl\_cffi TLS-impersonation target. |
| `proxyConfiguration` | object | off | Apify Proxy config — not needed; no anti-bot friction found. |

### 📥 Input examples

**Default preview (50 results):**

```json
{ "entityType": "results" }
```

**A full season's race results:**

```json
{ "entityType": "results", "seasonYear": 2025, "maxItems": null }
```

**A season's final MotoGP standings only:**

```json
{ "entityType": "standings", "seasonYear": 2025, "category": "motogp", "maxItems": null }
```

### 🔁 Incremental (delta) mode

`auto` mode does a full scan the first time it runs for a given `entityType`/scope, then only pushes
new/changed items on later runs. Only an uncapped, error-free run can detect delistings or update
the baseline. In practice, results for a finished session/season rarely change — this mostly matters
for catching mid-weekend corrections or a season still in progress.

### 🌐 How to scrape motogp.com

motogp.com's own frontend calls a real, public REST API
(`api.pulselive.motogp.com/motogp/v1/results/...`) with no authentication required — this Actor
replicates exactly those calls: seasons → events → categories → sessions → classification (or,
for standings, seasons → categories → standings directly).

### ❓ FAQ

**Is there a rider/team directory?**
Not as a separate entity type — motogp.com's own rider-profile pages are thin (bio text only, no
structured career stats) and its team sitemap is empty. Every rider/team name you'd want is already
on every `results`/`standings` row.

**Does this need a proxy or API key?**
No — the results API is fully open, no authentication or key required, and no anti-bot friction was
found anywhere.

**Why is `concurrency` capped at 20?**
That's the highest level validated so far — a full season of results and the complete 78-season
standings history were both crawled at concurrency 20 with zero errors and no rate-limit wall found.

**A season's total points looks like a decimal (e.g. 207.5) — is that a bug?**
No — MotoGP awards half points for a race stopped early or shortened by weather, so both a single
session's points and a season's summed total can be genuinely fractional. `points` is a real
number, not always a whole one.

# Actor input Schema

## `entityType` (type: `string`):

Scrape session results (finishing order for a specific practice/qualifying/sprint/race session) or final championship standings for a season+class. Both come from MotoGP's own real, public, unauthenticated results API — real history back decades. See dataset\_schema.json for the full field list per entity type.

## `seasonYear` (type: `integer`):

Optional. Scope the crawl to one season (e.g. 2025) instead of walking all ~78 real seasons this site has data for. Filters at discovery time, not just what's pushed.

## `category` (type: `string`):

Optional. Scope the crawl to one racing class instead of all three.

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

Stop after pushing this many dataset items. Defaults to 50 — a fast, cheap preview, and what keeps an unconfigured run within Apify's automated 5-minute QA check. A full unscoped crawl (entityType=results, no seasonYear/category) covers real historical depth back decades — clear this (set to null) and/or scope with seasonYear/category for a larger run.

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

"auto" (recommended): full scan on the first run for a given entityType/scope, incremental (new/changed only) afterwards. "full": always push every item and refresh the baseline. "incremental": always push only new/changed items. Only an uncapped, error-free run can detect delistings or update the baseline.

## `concurrency` (type: `integer`):

How many session/season API calls to fetch in parallel. Defaults to 20. Validated at real sustained scale (a full season of results and the complete 78-season standings history, both at concurrency 20) with zero errors and no rate-limit wall found.

## `impersonate` (type: `string`):

curl\_cffi browser TLS-impersonation target. Defaults to "chrome" internally, though no anti-bot friction was found on this API — it's a plain, open REST endpoint with no auth or key required.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Leave off unless you start seeing blocks from your own IP reputation — no anti-bot friction was found while building this actor.

## Actor input object example

```json
{
  "entityType": "results",
  "maxItems": 50,
  "mode": "auto",
  "concurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("artsiom_k/motogp-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("artsiom_k/motogp-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 '{}' |
apify call artsiom_k/motogp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,artsiom_k/motogp-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/zDIDv1Vs1df69mqO5/builds/gk2sH86AwNmdB6e1s/openapi.json
