{"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:nominatim/search":{"get":{"operationId":"places_nominatim_search","summary":"Search","description":"Turn an address or place name into coordinates.","tags":["places"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"},"example":"Brandenburger Tor, Berlin"},{"name":"limit","in":"query","required":false,"description":"Number of results","schema":{"type":"integer","default":5,"minimum":1,"maximum":40,"description":"Number of results"}},{"name":"countryCodes","in":"query","required":false,"description":"Comma-separated ISO 3166-1 alpha-2 codes","schema":{"type":"string","description":"Comma-separated ISO 3166-1 alpha-2 codes"}}],"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":86400,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/places:nominatim/reverse":{"get":{"operationId":"places_nominatim_reverse","summary":"Reverse","description":"Turn coordinates into an address.","tags":["places"],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number"},"example":51.5007},{"name":"lon","in":"query","required":true,"schema":{"type":"number"},"example":-0.1246},{"name":"zoom","in":"query","required":false,"schema":{"type":"integer","default":18,"minimum":3,"maximum":18}}],"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":86400,"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"}}}}}}}