Formula 1 API — free mock REST API for testing

A Formula 1 testing grid with drivers, constructors, race simulation, lap telemetry and authenticated pit-stop operations.

The Formula 1 API covers drivers, constructors, races, pit stops and lap telemetry. Telemetry returns dense numeric arrays rather than the small object payloads the rest of the catalog serves, which makes it the right page for testing how your client, your assertions and your logging cope with a response that is genuinely large.

Base URL: https://funapi.dev/api/formula1/v1 · 7 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

Example request and response

GET https://funapi.dev/api/formula1/v1/drivers — List drivers by team. No token, no signup:

curl -i https://funapi.dev/api/formula1/v1/drivers

answers 200 OK with:

{
  "total": 4,
  "data": [
    {
      "id": 1,
      "code": "VER",
      "name": "Max Verstappen",
      "teamId": 1,
      "number": 1,
      "points": 0
    },
    {
      "id": 2,
      "code": "LEC",
      "name": "Charles Leclerc",
      "teamId": 2,
      "number": 16,
      "points": 0
    },
    {
      "id": 3,
      "code": "NOR",
      "name": "Lando Norris",
      "teamId": 3,
      "number": 4,
      "points": 0
    },
    {
      "id": 4,
      "code": "HAM",
      "name": "Lewis Hamilton",
      "teamId": 2,
      "number": 44,
      "points": 0
    }
  ]
}

Open and run this endpoint

What you can practise here

grid

drivers and constructors

races

events and results

telemetry

laps and pit stops

All 39 mock REST APIs

Use this response elsewhere

Unofficial and fan-made. The Formula 1 API is a practice API that borrows a theme; it is not affiliated with, sponsored or endorsed by the owners of the names it references, which belong to them. Every record it returns is test data for exercising HTTP behaviour, not an authoritative source on the subject.

Last updated