{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/entertainment:openf1/sessions":{"get":{"operationId":"entertainment_openf1_sessions","summary":"Sessions","description":"Sessions by year or country.","tags":["entertainment"],"parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"integer"},"example":2025},{"name":"country","in":"query","required":false,"schema":{"type":"string"},"example":"Monaco"},{"name":"sessionName","in":"query","required":false,"schema":{"type":"string"},"example":"Race"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/entertainment:openf1/drivers":{"get":{"operationId":"entertainment_openf1_drivers","summary":"Drivers","description":"Drivers in a session.","tags":["entertainment"],"parameters":[{"name":"sessionKey","in":"query","required":false,"schema":{"type":"string","default":"latest"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/entertainment:openf1/positions":{"get":{"operationId":"entertainment_openf1_positions","summary":"Positions","description":"Position changes in a session.","tags":["entertainment"],"parameters":[{"name":"sessionKey","in":"query","required":false,"schema":{"type":"string","default":"latest"}},{"name":"driverNumber","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}