# Formula 1 drivers API

Get Formula 1 Drivers data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as constructor_id, output, raw, and retrieve structured data including resolved championship season year, number of drivers returned, canonical driver identifier, driver full name, and three-letter broadcast code to resolve driver_id values, list team rosters by season, and enrich broadcast overlays.

Documentation: https://openany.si/formula-1/formula-1-drivers-api/c5ca9a3d-c37f-4e32-b6ad-ee7363167f61/
API ID: c5ca9a3d-c37f-4e32-b6ad-ee7363167f61
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/f1/v1/drivers
Page update time: 2026-12-03T02:43:27.328Z
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:25.721Z. 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 Drivers API

Query GET with optional season (year from 1950 or current by default) and optional constructor\_id (such as ferrari) to list matching Formula 1 drivers. Each entry in drivers\[\] exposes driver\_id, given\_name, family\_name, name, code, number, nationality, date\_of\_birth and wiki.

## What You Can Build

- **Resolve driver\_id values**: Fetch canonical driver\_id slugs to pass into Driver Career, Lap Times, Pit Stops or Race Results APIs.
- **List team rosters by season**: Combine season and constructor\_id to show every driver who raced for a constructor that year.
- **Enrich broadcast overlays**: Map three-letter driver codes and car numbers to full names and nationalities.

## Returned Data

| Field | Meaning |
| --- | --- |
| `season` | Resolved championship season year |
| `constructor_id` | Applied constructor filter, if any |
| `count` | Number of drivers returned |
| `drivers[].driver_id` | Canonical driver identifier |
| `drivers[].name` | Driver full name |
| `drivers[].code` | Three-letter broadcast code |
| `drivers[].number` | Driver racing number |
| `drivers[].nationality` | Driver nationality |
| `drivers[].date_of_birth` | Driver birth date |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Formula 1 drivers 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": {
        "season": {
          "type": "string",
          "description": "Season year from 1950, or current (default)."
        },
        "constructor_id": {
          "type": "string",
          "description": "Only drivers of this constructor."
        },
        "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"
    },
    "constructor_id": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "drivers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "date_of_birth": {
            "type": "string"
          },
          "driver_id": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nationality": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "wiki": {
            "type": "string"
          }
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "season": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/f1/v1/drivers?constructor_id=ferrari&output=json&raw=0&season=2024' \
  -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,
  "constructor_id": "ferrari",
  "count": 3,
  "credits_used": 1,
  "drivers": [
    {
      "code": "BEA",
      "date_of_birth": "2005-05-08",
      "driver_id": "bearman",
      "family_name": "Bearman",
      "given_name": "Oliver",
      "name": "Oliver Bearman",
      "nationality": "British",
      "number": "87",
      "wiki": "http://en.wikipedia.org/wiki/Oliver_Bearman"
    },
    {
      "code": "LEC",
      "date_of_birth": "1997-10-16",
      "driver_id": "leclerc",
      "family_name": "Leclerc",
      "given_name": "Charles",
      "name": "Charles Leclerc",
      "nationality": "Monegasque",
      "number": "16",
      "wiki": "http://en.wikipedia.org/wiki/Charles_Leclerc"
    },
    {
      "code": "SAI",
      "date_of_birth": "1994-09-01",
      "driver_id": "sainz",
      "family_name": "Sainz",
      "given_name": "Carlos",
      "name": "Carlos Sainz",
      "nationality": "Spanish",
      "number": "55",
      "wiki": "http://en.wikipedia.org/wiki/Carlos_Sainz_Jr."
    }
  ],
  "fetched_at": "2026-11-19T12:21:28.833Z",
  "season": 2024
}
```

## 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 season and constructor_id required?
No. Both are optional; omitting them returns drivers for the current Formula 1 season.

### Can I list only drivers who raced for a specific team?
Yes. Pass constructor_id (such as ferrari or mclaren) optionally paired with season.

### Does this endpoint return career wins or podiums?
No. Pass a driver_id from this list into the Formula 1 Driver Career API for career statistics.

### How far back can I query historical driver rosters?
Pass any season year from 1950 onward to list drivers from that championship.

### How do I skip cached responses when a substitute driver joins?
Pass fresh=1 to bypass the 24-hour cache and fetch the latest roster.

### Can I return only driver_id and name?
Yes. Pass fields=drivers.driver_id,drivers.name and raw=0 to minimize payload size.

## Available implementations
- apish: https://openany.si/formula-1/formula-1-drivers-api/c5ca9a3d-c37f-4e32-b6ad-ee7363167f61/

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