{"openapi":"3.1.0","info":{"title":"Outlap API","version":"1.0.0","description":"Read-only motorsport schedules in UTC. Free, no key required. See the guide at /api.","license":{"name":"MIT","identifier":"MIT"}},"externalDocs":{"url":"https://outlap.lol/api"},"servers":[{"url":"https://outlap.lol/api/v1"}],"paths":{"/events":{"get":{"operationId":"listEvents","summary":"List events","description":"Events overlapping the requested window, ordered by start and paginated. Without from and to, every event in the current and next season.","parameters":[{"name":"series","in":"query","description":"Comma-separated series ids. Defaults to every series.","schema":{"type":"string"},"example":"f1,motogp"},{"name":"from","in":"query","description":"Only events ending after this instant. A date means 00:00 UTC that day.","schema":{"type":"string"},"example":"2026-03-01"},{"name":"to","in":"query","description":"Only events starting before this instant. A date includes that whole UTC day.","schema":{"type":"string"},"example":"2026-03-31T23:59:59Z"},{"name":"sessions","in":"query","description":"Which sessions to include: all, main (qualifying, sprints and races) or races (sprints and races). Timed events left with no sessions are dropped.","schema":{"type":"string","enum":["all","main","races"],"default":"all"}},{"name":"limit","in":"query","description":"Events per page.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"cursor","in":"query","description":"nextCursor from the previous page. Keep the other parameters the same.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["generatedAt","events","nextCursor"],"properties":{"generatedAt":{"type":"string","format":"date-time"},"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"nextCursor":{"type":["string","null"],"description":"Cursor for the next page; null on the last page."}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events/{id}":{"get":{"operationId":"getEvent","summary":"Get an event","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"f1-2026-1"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["generatedAt","event"],"properties":{"generatedAt":{"type":"string","format":"date-time"},"event":{"$ref":"#/components/schemas/Event"}}}}}},"404":{"description":"No event has this id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/series":{"get":{"operationId":"listSeries","summary":"List series","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["series"],"properties":{"series":{"type":"array","items":{"$ref":"#/components/schemas/Series"}}}}}}}}}},"/status":{"get":{"operationId":"getStatus","summary":"Snapshot freshness","description":"When the schedule was built and whether each data source refreshed. A failed source keeps serving its last good data.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["generatedAt","sources"],"properties":{"generatedAt":{"type":"string","format":"date-time"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}}}}}}}}}},"components":{"schemas":{"SeriesId":{"type":"string","enum":["f1","f2","f3","f1academy","formulae","indycar","indynxt","superformula","sfl","freca","euroformula","gb3","macau","nascar","oreilly","truck","arca","motogp","moto2","moto3","worldsbk","worldssp","bsb","iomtt","nw200","sgp","mxgp","supercross","promx","smx","trialgp","endurogp","wec","elms","alms","lemanscup","imsa","igtc","nls","n24","h24","supertaikyu","dtm","supergt","gtwce","gtwca","gtwcasia","gtwcaus","britishgt","gtmasters","supercup","btcc","supercars","tcr","wrc","erc","dakar","w2rc","rallycross","nhra","formuladrift","pikespeak"]},"Event":{"type":"object","required":["id","series","name","start","end","allDay","calendarUrl","sessions"],"properties":{"id":{"type":"string","description":"Stable across refreshes.","example":"f1-2026-1"},"series":{"$ref":"#/components/schemas/SeriesId"},"name":{"type":"string","example":"Australian Grand Prix"},"round":{"type":"integer"},"location":{"type":"string"},"start":{"type":"string","description":"ISO 8601 UTC date-time, or YYYY-MM-DD when allDay."},"end":{"type":"string","description":"ISO 8601 UTC date-time, or an inclusive YYYY-MM-DD when allDay."},"allDay":{"type":"boolean","description":"True until the organiser publishes a timetable. All-day events have no sessions."},"url":{"type":"string","format":"uri","description":"Event page on the series site or Wikipedia."},"calendarUrl":{"type":"string","format":"uri","description":"iCalendar feed of this event."},"sessions":{"type":"array","items":{"$ref":"#/components/schemas/Session"}}}},"Session":{"type":"object","required":["name","kind","start","end","estimatedEnd"],"properties":{"name":{"type":"string","example":"Qualifying"},"kind":{"type":"string","enum":["practice","qualifying","sprint","race","other"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"estimatedEnd":{"type":"boolean","description":"True when the organiser publishes only the start time."}}},"Series":{"type":"object","required":["id","name","short","color","group"],"properties":{"id":{"$ref":"#/components/schemas/SeriesId"},"name":{"type":"string","example":"Formula 1"},"short":{"type":"string","example":"F1"},"color":{"type":"string","example":"#e10600"},"group":{"type":"string","example":"Single-seater"}}},"Source":{"type":"object","required":["source","series","ok"],"properties":{"source":{"type":"string"},"series":{"type":"array","items":{"$ref":"#/components/schemas/SeriesId"}},"ok":{"type":"boolean"},"fetchedAt":{"type":"string","format":"date-time","description":"When the data now served was fetched."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["status","message"],"properties":{"status":{"type":"integer"},"message":{"type":"string"}}}}}}}}