{"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/places:usgs-earthquakes/feed":{"get":{"operationId":"places_usgs_earthquakes_feed","summary":"Live feed","description":"Summary feed as GeoJSON.","tags":["places"],"parameters":[{"name":"magnitude","in":"query","required":false,"schema":{"type":"string","enum":["significant","4.5","2.5","1.0","all"],"default":"4.5"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["hour","day","week","month"],"default":"day"}}],"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":120,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/places:usgs-earthquakes/search":{"get":{"operationId":"places_usgs_earthquakes_search","summary":"Search","description":"Earthquakes by time window, magnitude and area.","tags":["places"],"parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string"},"example":"2024-01-01"},{"name":"end","in":"query","required":false,"schema":{"type":"string"}},{"name":"minMagnitude","in":"query","required":false,"schema":{"type":"number","default":4}},{"name":"latitude","in":"query","required":false,"schema":{"type":"number"}},{"name":"longitude","in":"query","required":false,"schema":{"type":"number"}},{"name":"maxRadiusKm","in":"query","required":false,"schema":{"type":"number","maximum":20001.6}},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":50,"minimum":1,"maximum":2000,"description":"Number of results"}},{"name":"orderBy","in":"query","required":false,"schema":{"type":"string","enum":["time","time-asc","magnitude","magnitude-asc"],"default":"time"}}],"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":300,"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"}}}}}}}