API Documentation
Generate 800×480 BMP images for E-Ink displays showing F1 race schedules in 1bit, B/W/R, B/W/R/Y, or Spectra 6 mode.
GET
/calendar.bmp
Generates F1 calendar as a BMP image (800×480) for 1bit, 4-bit B/W/R, 4-bit B/W/R/Y, and Spectra 6 E-Ink displays.
Without year plus round or race_key, the next race is selected. Copy round or race_key from /api/races/{year}. Exception: race_key without year returns HTTP 400.
Track style: track_style=relief · Track source: track_source=jules · Colour accents: track_accent=all.
Height and colour divisions are decorative. Uses colours supported by your display. For all four accents use display=spectra6.
GET /api/tracks — All styles, accents and circuits. GET /api/tracks/{circuit_id} — Authors and licences.
GET /api/tracks/{circuit_id}.{svg|png|bmp} · GET /preview/configure/calendar.png — The same track_style, track_source, track_accent parameters.
Parameters
| Parameter | Type | Description |
|---|---|---|
| lang | string |
Language code for calendar text
Values: cs, de, en, es, fr, it, ja, nl, pl, pt-BR, sk, tr, zh-CN (default:
en)
|
| year | integer |
Season year for specific race
optional — e.g. 2026
|
| round | integer |
Round number from the season race list; ignored without year
optional — e.g. ?year=2026&round=5
|
| race_key | string |
Race identifier from /api/races/{year}; requires year
optional — e.g. 2026-round-6-monaco-2026-06-07
|
| tz | string |
Timezone for schedule times (IANA format)
optional — e.g. America/New_York,
Europe/Prague
(default: Europe/Prague)
|
| display | string |
Output mode for 1bit, B/W/R, B/W/R/Y, or Spectra 6 displays
Values: 1bit,
bwr,
bwry,
spectra6 (default:
1bit)
|
| weather | boolean |
Enable or disable the weather overlay
Values: true,
false
(default: true)
|
| weather_type | string |
Which weather data variant to render
Values: off,
race_day,
race,
current
(default: race_day)
|
| track_style | string |
Track style
Values: relief, poster, clean, lino, riso, screenprint, contours, geometric, blueprint, ribbon, mosaic, halftone, negative, papercut, typographic, artdeco, stencil, pixel
(default: relief)
|
| track_source | string |
Track source
Values: jules, commons
(default: jules)
|
| track_accent | string |
Colour accents
Values: all, mono, red, yellow, blue, green, warm, red-blue, red-green, yellow-blue, yellow-green, cool, red-yellow-blue, red-yellow-green, red-blue-green, yellow-blue-green
(default: all)
|
Response
image/bmp
800×480
1bit / 4-bit B/W/R / 4-bit B/W/R/Y / Spectra 6
public, max-age=3600
BMP responses include ETag. Send If-None-Match to receive 304 when the image is unchanged.
Code Examples
# Download next race calendar
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp"
# With Czech language and timezone
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?lang=cs&tz=Europe/Prague"
# Specific race (year and round)
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?year=2026&round=6"
# B/W/R/Y output for four-color E-Ink
curl -o calendar.bmp "https://f1.inkycloud.click/calendar.bmp?display=bwry"
import httpx
async def get_f1_calendar(lang: str = "en", tz: str = "Europe/Prague"):
"""Download F1 calendar as BMP image."""
async with httpx.AsyncClient() as client:
response = await client.get(
"https://f1.inkycloud.click/calendar.bmp",
params={"lang": lang, "tz": tz}
)
response.raise_for_status()
with open("calendar.bmp", "wb") as f:
f.write(response.content)
print("Calendar saved as calendar.bmp")
# Usage
import asyncio
asyncio.run(get_f1_calendar(lang="cs"))
// Fetch and display calendar
async function loadF1Calendar(lang = 'en', tz = 'Europe/Prague') {
const url = new URL('https://f1.inkycloud.click/calendar.bmp');
url.searchParams.set('lang', lang);
url.searchParams.set('tz', tz);
const response = await fetch(url);
const blob = await response.blob();
// Display in img element
const img = document.getElementById('calendar');
img.src = URL.createObjectURL(blob);
}
// Download as file
async function downloadCalendar() {
const response = await fetch('/calendar.bmp?lang=cs');
const blob = await response.blob();
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = 'f1-calendar.bmp';
link.click();
}
E-Ink Display Usage
Fetch /calendar.bmp and display directly on your E-Ink display. Recommended refresh interval: every 1-6 hours. Compatible with any 800×480 E-Ink display (e.g., Waveshare 7.5", LaskaKit).
For LaskaKit / zivyobraz.eu:
- 1 In zivyobraz.eu select content source: URL with image
-
2
Paste URL:
https://f1.inkycloud.click/calendar.bmp?lang=cs&tz=Europe/Prague - 3 Set refresh interval to 1-6 hours
GET
/teams.bmp
Generate a BMP image showing all F1 teams with their drivers, photos, and championship points in 1bit, B/W/R, B/W/R/Y, or Spectra 6 output modes.
Image attribution and licences (track artwork CC BY 4.0, Open-Meteo weather CC BY 4.0): see Credits. Responses also carry a Link header with rel="license".
Parameters
| Parameter | Type | Description |
|---|---|---|
| lang | string |
Language code for calendar text
Values: cs, de, en, es, fr, it, ja, nl, pl, pt-BR, sk, tr, zh-CN (default:
en)
|
| year | integer |
Season year for team data
optional — e.g. 2026
|
| display | string |
Display output mode
Values: 1bit,
bwr,
bwry,
spectra6 (default:
1bit)
|
| extra | string | Optional panel: none (default), countdown, flags, track, weather. Uses local season data and cached weather only; unavailable panels fall back to none. |
| tz | string | Optional IANA timezone for extra panels showing a time or date: countdown, flags, track, weather. Defaults to the server's DEFAULT_TIMEZONE; ignored for none or unavailable panels. Invalid values return HTTP 400. Also supported by /preview/configure/teams.png. |
Response
image/bmp
800×480
1-bit / 4-bit / Spectra 6
no-cache
Other Endpoints
/api/teams/{year}
Get all teams with drivers and points for a season (JSON)
/api/standings/leader
Get current championship leaders (driver and constructor)
/api/standings/leader/{year}
/api/races/{year}
List of all races for a given season
/api/race/{year}/{round}
Detailed race information including schedule
/api/stats
Request statistics for the last 24 hours
GET /api/stats/history
Hourly request history; limit: 1–720 (default 168).
GET / POST /api/perf-metrics
GET: performance summaries; hours: 1–720 (default 24). POST: numeric Web Vitals; visitor and device metadata are ignored.
GET /preview/{screen_type}.png
GET /preview/configure/{screen_type}.png
PNG previews for calendar or teams; lang selects the language. Configure previews also accept display and calendar weather_type (default off).
extra — Optional panel: none (default), countdown, flags, track, weather. Uses local season data and cached weather only; unavailable panels fall back to none.
track_style, track_source, track_accent — Track style, Track source, Colour accents (calendar).
GET /health/ready
Database, writable storage and image freshness; HTTP 200 when ready, 503 otherwise.
/health
Service health check
Statistics read APIs require X-Admin-Token or Authorization: Bearer <token> when ADMIN_API_TOKEN is configured. With MINIMAL_DATA_MODE=true, all statistics APIs return 410.
Rate-limited requests return 429 with Retry-After.