# Formula 1 seasons API

Get Formula 1 Seasons data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as driver_id, output, raw, and retrieve structured data including championship season year to populate valid season dropdowns, audit circuit hosting history, and check team or driver overlap, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/formula-1/formula-1-seasons-api/30589e76-c3c5-481f-a7a3-a1855af2b624/
API ID: 30589e76-c3c5-481f-a7a3-a1855af2b624
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/f1/v1/seasons
Page update time: 2026-12-03T02:43:27.424Z
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.345Z. 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 Seasons API

Query GET with optional driver\_id (such as max\_verstappen), constructor\_id (such as ferrari), circuit\_id (such as monza), limit (default 100, max 100) and offset (default 0). Returned seasons\[\] entries expose season year and wiki URL alongside total, count and next\_offset.

## What You Can Build

- **Populate valid season dropdowns**: Fetch all seasons for a driver, constructor or circuit before querying race results.
- **Audit circuit hosting history**: Pass circuit\_id=monza or silverstone to list every championship year hosted at that track.
- **Check team or driver overlap**: Combine driver\_id and constructor\_id to find the exact seasons a driver raced for a team.

## Returned Data

| Field | Meaning |
| --- | --- |
| `total` | Total matching seasons across all pages |
| `count` | Number of seasons returned in this page |
| `offset` | Row offset applied to the query |
| `next_offset` | Next pagination offset, or null |
| `applied_filters.driver_id` | Driver filter echoed by the API |
| `seasons[].season` | Championship season year |
| `seasons[].wiki` | Wikipedia reference URL for the season |
| `cached` | Whether the response came from cache |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Formula 1 seasons 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": {
        "driver_id": {
          "type": "string",
          "description": "Only seasons this driver raced (Ergast id like max_verstappen, or the name)."
        },
        "constructor_id": {
          "type": "string",
          "description": "Only seasons this team raced (e.g. ferrari, red_bull)."
        },
        "circuit_id": {
          "type": "string",
          "description": "Only seasons with a race at this circuit (e.g. monza)."
        },
        "limit": {
          "type": "integer",
          "description": "Rows per page (default 100, max 100)."
        },
        "offset": {
          "type": "integer",
          "description": "Rows to skip (default 0)."
        },
        "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": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "circuit_id": {
          "type": "null"
        },
        "constructor_id": {
          "type": "null"
        },
        "driver_id": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_offset": {
      "type": "null"
    },
    "offset": {
      "type": "integer"
    },
    "seasons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "season": {
            "type": "integer"
          },
          "wiki": {
            "type": "string"
          }
        }
      }
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH recording · HTTP 200
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/f1/v1/seasons?driver_id=max_verstappen&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
{
  "applied_filters": {
    "circuit_id": null,
    "constructor_id": null,
    "driver_id": "max_verstappen"
  },
  "cached": false,
  "count": 12,
  "credits_used": 1,
  "fetched_at": "2026-11-19T09:21:36.890Z",
  "next_offset": null,
  "offset": 0,
  "seasons": [
    {
      "season": 2015,
      "wiki": "https://en.wikipedia.org/wiki/2015_Formula_One_World_Championship"
    },
    {
      "season": 2016,
      "wiki": "https://en.wikipedia.org/wiki/2016_Formula_One_World_Championship"
    },
    {
      "season": 2017,
      "wiki": "https://en.wikipedia.org/wiki/2017_Formula_One_World_Championship"
    },
    {
      "season": 2018,
      "wiki": "https://en.wikipedia.org/wiki/2018_Formula_One_World_Championship"
    },
    {
      "season": 2019,
      "wiki": "https://en.wikipedia.org/wiki/2019_Formula_One_World_Championship"
    },
    {
      "season": 2020,
      "wiki": "https://en.wikipedia.org/wiki/2020_Formula_One_World_Championship"
    },
    {
      "season": 2021,
      "wiki": "https://en.wikipedia.org/wiki/2021_Formula_One_World_Championship"
    },
    {
      "season": 2022,
      "wiki": "https://en.wikipedia.org/wiki/2022_Formula_One_World_Championship"
    },
    {
      "season": 2023,
      "wiki": "https://en.wikipedia.org/wiki/2023_Formula_One_World_Championship"
    },
    {
      "season": 2024,
      "wiki": "https://en.wikipedia.org/wiki/2024_Formula_One_World_Championship"
    },
    {
      "season": 2025,
      "wiki": "https://en.wikipedia.org/wiki/2025_Formula_One_World_Championship"
    },
    {
      "season": 2026,
      "wiki": "https://en.wikipedia.org/wiki/2026_Formula_One_World_Championship"
    }
  ],
  "total": 12
}
```

## 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
### Can I list every Formula 1 season without any filters?
Yes. All filter parameters are optional; omitting them lists championship seasons from 1950 onward.

### Can I combine driver_id, constructor_id and circuit_id?
Yes. Filters narrow the returned seasons[] list, and applied_filters echoes the active constraints.

### How do I paginate if more than 100 rows exist?
Use limit (default 100, max 100) and offset (default 0), passing next_offset back until it is null.

### Does this endpoint return the race calendar inside each season?
No. Pass a returned season year to the Formula 1 Season Calendar API to retrieve its rounds.

### Are driver names accepted in addition to Ergast IDs?
The contract notes driver_id accepts an Ergast ID like max_verstappen or the driver name.

### How do caching and compact output work?
Pass fresh=1 to bypass the 24-hour cache and raw=0 to omit bulky raw source blocks.

## Available implementations
- apish: https://openany.si/formula-1/formula-1-seasons-api/30589e76-c3c5-481f-a7a3-a1855af2b624/

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