# Motorsport — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access comprehensive Formula 1 data from Motorsport.com, including the latest news headlines, driver profiles, race schedules, championship standings, and detailed race results by season.

**Category:** Sports | **Website:** [motorsport.com/](https://motorsport.com/) | **Docs:** [parse.bot/marketplace/ef20f585-3b06-4a2b-b60b-33f0957b3ef2/motorsport-com-api](https://parse.bot/marketplace/ef20f585-3b06-4a2b-b60b-33f0957b3ef2/motorsport-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_f1_drivers

Get the current F1 driver grid with names, teams, biographical details (number, birthdate, nationality), and profile URLs. Returns all drivers on the current season grid.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_f1_drivers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_f1_news

Fetch the latest F1 news from the Motorsport.com RSS feed. Returns articles with titles, links, publication dates, and descriptions. The feed typically contains 20-30 recent items.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_f1_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_f1_schedule

Get the F1 race schedule for a specific year. Returns race events with dates and session times. Each event includes a link to the circuit page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | Year of the schedule in YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_f1_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"year":"<string>"}'
```

### get_f1_standings

Get the F1 championship standings (Drivers or Teams) for a specific year. Returns position, name, total points, and per-race point breakdowns with abbreviated circuit codes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `type` | string | No | Type of standings to retrieve. |
| `year` | string | No | Year of the standings in YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_f1_standings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"<string>","year":"<string>"}'
```

### get_latest_news

Get the latest F1 headlines from the Motorsport.com news page. Returns article titles and URLs. Lighter than get_f1_news (no descriptions or dates) but scraped from the rendered page.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_latest_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_race_list

Get the list of races for a specific year. Returns race names with slugs that serve as identifiers for get_race_results. Use this to discover valid event_slug values.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | Year of the race list in YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_race_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"year":"<string>"}'
```

### get_race_results

Get detailed finishing results for a specific race event. Returns positions, driver names, lap counts, finishing times, intervals, average speed, pit stops, points scored, and car details. Use get_race_list to discover valid event_slug values.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_slug` | string | Yes | Slug identifier of the race event, obtained from get_race_list (e.g. 'bahrain-gp-639919', 'monaco-gp-639949'). |
| `year` | string | No | Year of the race event in YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-motorsport-com-api-ef20f585/get_race_results \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event_slug":"<string>","year":"<string>"}'
```
