Circuit browser
The catalogue is a tree: a country holds cities, a city holds circuits, a circuit holds layouts. Each level has a route; pick an entry to make the next call. Every layout shows its track image.
1. Countries
/circuits lists every country, and nests its whole tree inside each one.
The JSON answer
2. Cities of a country
/circuits/{country} answers {"cities": [...]}, each city with its circuits.
The JSON answer
3. Circuits in a city
/circuits/{country}/{city} answers {"circuits": [...]}.
The JSON answer
4. One circuit and its layouts
/circuits/{country}/{city}/{circuit} answers the circuit’s name, its Wikipedia and Fandom pages and
its layouts. Each layout’s image below is its own call,
/circuits/{country}/{city}/{circuit}/layout/{layout}/svg (see Track images).
The JSON answer
5. One layout
/circuits/{country}/{city}/{circuit}/layout/{layout} answers one layout: its slug, its description
and imageUrl, the source drawing on the F1 Fandom wiki.