{"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/open-data:openuv/get-forecast":{"get":{"operationId":"open_data_openuv_get_forecast","summary":"Get hourly UV Index Forecast by location and date. Optional altitude, ozone level and datetime could be…","description":"GET /forecast","tags":["open-data"],"parameters":[{"name":"lat","in":"query","required":true,"description":"latitude, from -90.00 to 90.00","schema":{"type":"number","description":"latitude, from -90.00 to 90.00"}},{"name":"lng","in":"query","required":true,"description":"longitude, from -180.00 to 180.00","schema":{"type":"number","description":"longitude, from -180.00 to 180.00"}},{"name":"alt","in":"query","required":false,"description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…","schema":{"type":"number","description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…"}},{"name":"ozone","in":"query","required":false,"description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.","schema":{"type":"number","description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default."}},{"name":"dt","in":"query","required":false,"description":"UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time.","schema":{"type":"string","description":"UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time."}},{"name":"x-access-token","in":"query","required":true,"description":"This header is used to send data that contains your OpenUV API key","schema":{"type":"string","description":"This header is used to send data that contains your OpenUV API key"}}],"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"}},"/v1/open-data:openuv/get-protection":{"get":{"operationId":"open_data_openuv_get_protection","summary":"Get daily protection time by location, UV Index from and UV Index to with 10 minutes accuracy. Optional…","description":"GET /protection","tags":["open-data"],"parameters":[{"name":"lat","in":"query","required":true,"description":"latitude, from -90.00 to 90.00","schema":{"type":"number","description":"latitude, from -90.00 to 90.00"}},{"name":"lng","in":"query","required":true,"description":"longitude, from -180.00 to 180.00","schema":{"type":"number","description":"longitude, from -180.00 to 180.00"}},{"name":"from","in":"query","required":true,"description":"UV Index from value for protection datetime lookup. From 0 to 40.","schema":{"type":"number","description":"UV Index from value for protection datetime lookup. From 0 to 40."}},{"name":"to","in":"query","required":true,"description":"UV Index to value for protection datetime lookup. From 0 to 40.","schema":{"type":"number","description":"UV Index to value for protection datetime lookup. From 0 to 40."}},{"name":"alt","in":"query","required":false,"description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…","schema":{"type":"number","description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…"}},{"name":"ozone","in":"query","required":false,"description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.","schema":{"type":"number","description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default."}},{"name":"x-access-token","in":"query","required":true,"description":"This header is used to send data that contains your OpenUV API key","schema":{"type":"string","description":"This header is used to send data that contains your OpenUV API key"}}],"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"}},"/v1/open-data:openuv/get-uv":{"get":{"operationId":"open_data_openuv_get_uv","summary":"Get real-time UV Index by location. Optional altitude, ozone level and datetime could be provided.","description":"GET /uv","tags":["open-data"],"parameters":[{"name":"lat","in":"query","required":true,"description":"latitude, from -90.00 to 90.00","schema":{"type":"number","description":"latitude, from -90.00 to 90.00"}},{"name":"lng","in":"query","required":true,"description":"longitude, from -180.00 to 180.00","schema":{"type":"number","description":"longitude, from -180.00 to 180.00"}},{"name":"alt","in":"query","required":false,"description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…","schema":{"type":"number","description":"Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV…"}},{"name":"ozone","in":"query","required":false,"description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.","schema":{"type":"number","description":"Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default."}},{"name":"dt","in":"query","required":false,"description":"UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time.","schema":{"type":"string","description":"UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time."}},{"name":"x-access-token","in":"query","required":true,"description":"This header is used to send data that contains your OpenUV API key","schema":{"type":"string","description":"This header is used to send data that contains your OpenUV API key"}}],"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"}}}}}}}