# Formula 1 upcoming races API

Get Formula 1 Upcoming Races data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as count, output, raw, and retrieve structured data including current championship season year and current UTC reference timestamp to power race countdown widgets, trigger pre-session reminders, and show season progress indicators.

Documentation: https://openany.si/formula-1/formula-1-upcoming-races-api/0d73c382-3d40-46e2-a969-054cdf60c55a/
API ID: 0d73c382-3d40-46e2-a969-054cdf60c55a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/f1/v1/schedule
Page update time: 2026-12-03T02:43:27.460Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:26.726Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Formula 1 Upcoming Races API

Send GET with no required parameters, or pass count (default 30, max 30) to cap how many upcoming races are listed. The response returns now, races\_left, races\_total, season\_finished, a detailed next\_race object with seconds\_until\_start and session\_list\[\], and upcoming\[\].

## What You Can Build

- **Power race countdown widgets**: Read next\_race.seconds\_until\_start and next\_race.session\_list\[\] to show live countdowns and started flags.
- **Trigger pre-session reminders**: Check next\_race.session\_list\[\].start and started to schedule notifications for practice, qualifying and race.
- **Show season progress indicators**: Display races\_left, races\_total and season\_finished alongside the upcoming\[\] race queue.

## Returned Data

| Field | Meaning |
| --- | --- |
| `season` | Current championship season year |
| `now` | Current UTC reference timestamp |
| `races_left` | Number of races remaining in the season |
| `races_total` | Total races scheduled in the season |
| `season_finished` | Boolean indicating if the season has ended |
| `next_race.name` | Name of the next scheduled Grand Prix |
| `next_race.round` | Round number of the next Grand Prix |
| `next_race.seconds_until_start` | Countdown in seconds until race start |
| `next_race.circuit.name` | Circuit venue hosting the next race |
| `upcoming[].name` | Names of subsequent upcoming Grands Prix |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Formula 1 upcoming races API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "description": "How many upcoming races to list (default 30, max 30)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_race": {
      "type": "object",
      "properties": {
        "circuit": {
          "type": "object",
          "properties": {
            "circuit_id": {
              "type": "string"
            },
            "country": {
              "type": "string"
            },
            "lat": {
              "type": "number"
            },
            "lng": {
              "type": "number"
            },
            "locality": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "wiki": {
              "type": "string"
            }
          }
        },
        "date": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "round": {
          "type": "integer"
        },
        "season": {
          "type": "integer"
        },
        "seconds_until_start": {
          "type": "integer"
        },
        "session_list": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "session": {
                "type": "string"
              },
              "start": {
                "type": "string"
              },
              "started": {
                "type": "boolean"
              }
            }
          }
        },
        "sessions": {
          "type": "object",
          "properties": {
            "first_practice": {
              "type": "string"
            },
            "qualifying": {
              "type": "string"
            },
            "race": {
              "type": "string"
            },
            "second_practice": {
              "type": "string"
            },
            "sprint": {
              "type": "null"
            },
            "sprint_qualifying": {
              "type": "null"
            },
            "third_practice": {
              "type": "string"
            }
          }
        },
        "start": {
          "type": "string"
        },
        "time": {
          "type": "string"
        },
        "wiki": {
          "type": "string"
        }
      }
    },
    "now": {
      "type": "string"
    },
    "races_left": {
      "type": "integer"
    },
    "races_total": {
      "type": "integer"
    },
    "season": {
      "type": "integer"
    },
    "season_finished": {
      "type": "boolean"
    },
    "upcoming": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "circuit": {
            "type": "object",
            "properties": {
              "circuit_id": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "lat": {
                "type": "number"
              },
              "lng": {
                "type": "number"
              },
              "locality": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "wiki": {
                "type": "string"
              }
            }
          },
          "date": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "round": {
            "type": "integer"
          },
          "season": {
            "type": "integer"
          },
          "sessions": {
            "type": "object",
            "properties": {
              "first_practice": {
                "type": "string"
              },
              "qualifying": {
                "type": "string"
              },
              "race": {
                "type": "string"
              },
              "second_practice": {
                "type": "string"
              },
              "sprint": {
                "type": "null"
              },
              "sprint_qualifying": {
                "type": "null"
              },
              "third_practice": {
                "type": "string"
              }
            }
          },
          "start": {
            "type": "string"
          },
          "time": {
            "type": "string"
          },
          "wiki": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/f1/v1/schedule?count=5&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 3,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:35.662Z",
  "next_race": {
    "circuit": {
      "circuit_id": "vegas",
      "country": "USA",
      "lat": 36.1147,
      "lng": -115.173,
      "locality": "Las Vegas",
      "name": "Las Vegas Strip Street Circuit",
      "wiki": "https://en.wikipedia.org/wiki/Las_Vegas_Grand_Prix#Circuit"
    },
    "date": "2026-11-22",
    "name": "Las Vegas Grand Prix",
    "round": 21,
    "season": 2026,
    "seconds_until_start": 229104,
    "session_list": [
      {
        "session": "first_practice",
        "start": "2026-11-20T00:30:00Z",
        "started": false
      },
      {
        "session": "second_practice",
        "start": "2026-11-20T04:00:00Z",
        "started": false
      },
      {
        "session": "third_practice",
        "start": "2026-11-21T00:30:00Z",
        "started": false
      },
      {
        "session": "qualifying",
        "start": "2026-11-21T04:00:00Z",
        "started": false
      },
      {
        "session": "race",
        "start": "2026-11-22T04:00:00Z",
        "started": false
      }
    ],
    "sessions": {
      "first_practice": "2026-11-20T00:30:00Z",
      "qualifying": "2026-11-21T04:00:00Z",
      "race": "2026-11-22T04:00:00Z",
      "second_practice": "2026-11-20T04:00:00Z",
      "sprint": null,
      "sprint_qualifying": null,
      "third_practice": "2026-11-21T00:30:00Z"
    },
    "start": "2026-11-22T04:00:00Z",
    "time": "04:00:00Z",
    "wiki": "https://en.wikipedia.org/wiki/2026_Las_Vegas_Grand_Prix"
  },
  "now": "2026-11-19T12:21:35.662Z",
  "races_left": 3,
  "races_total": 23,
  "season": 2026,
  "season_finished": false,
  "upcoming": [
    {
      "circuit": {
        "circuit_id": "vegas",
        "country": "USA",
        "lat": 36.1147,
        "lng": -115.173,
        "locality": "Las Vegas",
        "name": "Las Vegas Strip Street Circuit",
        "wiki": "https://en.wikipedia.org/wiki/Las_Vegas_Grand_Prix#Circuit"
      },
      "date": "2026-11-22",
      "name": "Las Vegas Grand Prix",
      "round": 21,
      "season": 2026,
      "sessions": {
        "first_practice": "2026-11-20T00:30:00Z",
        "qualifying": "2026-11-21T04:00:00Z",
        "race": "2026-11-22T04:00:00Z",
        "second_practice": "2026-11-20T04:00:00Z",
        "sprint": null,
        "sprint_qualifying": null,
        "third_practice": "2026-11-21T00:30:00Z"
      },
      "start": "2026-11-22T04:00:00Z",
      "time": "04:00:00Z",
      "wiki": "https://en.wikipedia.org/wiki/2026_Las_Vegas_Grand_Prix"
    },
    {
      "circuit": {
        "circuit_id": "losail",
        "country": "Qatar",
        "lat": 25.49,
        "lng": 51.4542,
        "locality": "Lusail",
        "name": "Lusail International Circuit",
        "wiki": "https://en.wikipedia.org/wiki/Lusail_International_Circuit"
      },
      "date": "2026-11-29",
      "name": "Qatar Grand Prix",
      "round": 22,
      "season": 2026,
      "sessions": {
        "first_practice": "2026-11-27T13:30:00Z",
        "qualifying": "2026-11-28T18:00:00Z",
        "race": "2026-11-29T16:00:00Z",
        "second_practice": "2026-11-27T17:00:00Z",
        "sprint": null,
        "sprint_qualifying": null,
        "third_practice": "2026-11-28T14:30:00Z"
      },
      "start": "2026-11-29T16:00:00Z",
      "time": "16:00:00Z",
      "wiki": "https://en.wikipedia.org/wiki/2026_Qatar_Grand_Prix"
    },
    {
      "circuit": {
        "circuit_id": "yas_marina",
        "country": "UAE",
        "lat": 24.4672,
        "lng": 54.6031,
        "locality": "Abu Dhabi",
        "name": "Yas Marina Circuit",
        "wiki": "https://en.wikipedia.org/wiki/Yas_Marina_Circuit"
      },
      "date": "2026-12-06",
      "name": "Abu Dhabi Grand Prix",
      "round": 23,
      "season": 2026,
      "sessions": {
        "first_practice": "2026-12-04T09:30:00Z",
        "qualifying": "2026-12-05T14:00:00Z",
        "race": "2026-12-06T13:00:00Z",
        "second_practice": "2026-12-04T13:00:00Z",
        "sprint": null,
        "sprint_qualifying": null,
        "third_practice": "2026-12-05T10:30:00Z"
      },
      "start": "2026-12-06T13:00:00Z",
      "time": "13:00:00Z",
      "wiki": "https://en.wikipedia.org/wiki/2026_Abu_Dhabi_Grand_Prix"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are any query parameters required?
No. You can call the endpoint with no filters, or pass count (1 to 30, default 30) to limit upcoming races.

### Does next_race include individual weekend sessions?
Yes. next_race provides both session_list[] (with session, start and started flags) and the sessions timestamp map.

### How can my app detect the off-season?
Check season_finished and races_left to determine whether the current championship calendar has concluded.

### How does this differ from the Formula 1 Season Calendar API?
Upcoming Races focuses on real-time countdowns and future events; Season Calendar returns every round of any season from 1950 onward.

### How do I ensure seconds_until_start is fresh?
Pass fresh=1 to skip the 24-hour cache when computing live countdowns.

### Can I trim the response to only next_race?
Yes. Pass fields=next_race,now,races_left and raw=0 to reduce payload size.

## Available implementations
- apish: https://openany.si/formula-1/formula-1-upcoming-races-api/0d73c382-3d40-46e2-a969-054cdf60c55a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
