---
title: "Search Formula 1 history"
method: GET
path: "/api/v2/mcp/history/search"
---

# Search Formula 1 history

`GET /api/v2/mcp/history/search`

## Request

- Base URL: `https://api.racecalendar.app`
- URL: `https://api.racecalendar.app/api/v2/mcp/history/search`
- Auth: none declared

Bounded prefix/substring search over historical drivers, teams, circuits, and races from the F1DB web dataset. Cache hits skip the miss limiter; cache misses share a route-family budget and may return 429 with Retry-After.

## Query parameters

- `cursor` string: Opaque pagination cursor from a previous response.
- `limit` string: Maximum number of matches to return.
- `q` string, required: Search query of at least two characters.
- `types` string: Optional comma-separated list of driver, team, circuit, or race.

## Response `200`

Bounded search over historical drivers, teams, circuits, and races

- McpHistorySearchPayload
  - `generatedAt` string, required
  - `items` McpHistorySearchItem[], required
    - `bestChampionshipPosition` integer, nullable, required
    - `firstYear` integer, required
    - `id` string, required
    - `label` string, required
    - `lastYear` integer, required
    - `match` 'exact' | 'prefix' | 'substring', required
    - `metadata` string, required
    - `sourceUrl` string, uri, required
    - `type` 'driver' | 'team' | 'circuit' | 'race', required
    - `url` string, uri, required
  - `nextCursor` string, nullable, required
  - `query` string, required
  - `sourceUpdatedAt` string, nullable, required
  - `types` string[], required

## Other responses

- `400`: Invalid request. Keeps `ok: false` and `error` for existing JSON clients.
- `429`: MCP data query rate limit exceeded after a cache miss. Includes Retry-After and RateLimit headers.
- `500`: Feature query failed. Keeps `ok: false` and `error` for existing JSON clients.

---

[API](https://skmtc.dev/racecalendar/apis/race-calendar-formula-1-api.md) · [All operations](https://skmtc.dev/racecalendar/apis/race-calendar-formula-1-api/llms.txt) · [OpenAPI document](https://skmtc.dev/racecalendar/apis/race-calendar-formula-1-api/revisions/b2c2532b5f80?raw)
