{"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/transport:transavia/58d8bcb7a9e6240e200cff24":{"get":{"operationId":"transport_transavia_58d8bcb7a9e6240e200cff24","summary":"All airports","description":"GET /","tags":["transport"],"parameters":[],"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":"byok"}},"/v1/transport:transavia/58d8bcb8a9e6240e200cff26":{"get":{"operationId":"transport_transavia_58d8bcb8a9e6240e200cff26","summary":"Airport(s) by country code.","description":"GET /countrycode/{countryCode}","tags":["transport"],"parameters":[{"name":"countryCode","in":"query","required":true,"description":"Comma-separated list of country codes (2-character ISO 3166-1). More than 3 country codes is not allowed.","schema":{"type":"string","description":"Comma-separated list of country codes (2-character ISO 3166-1). More than 3 country codes is not allowed."}}],"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":"byok"}},"/v1/transport:transavia/58d8bcb8a9e6240e200cff27":{"get":{"operationId":"transport_transavia_58d8bcb8a9e6240e200cff27","summary":"Nearest airport(s) by geo coordinates.","description":"GET /nearest","tags":["transport"],"parameters":[{"name":"latitude","in":"query","required":false,"description":"Latitude in decimals, lower than -90.0 and higher than 90.0 is not allowed.","schema":{"type":"string","description":"Latitude in decimals, lower than -90.0 and higher than 90.0 is not allowed."}},{"name":"longitude","in":"query","required":false,"description":"Longitude in decimals, lower than -180.0 and higher than 180.0 is not allowed.","schema":{"type":"string","description":"Longitude in decimals, lower than -180.0 and higher than 180.0 is not allowed."}},{"name":"maxDistanceInKm","in":"query","required":false,"description":"Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied.","schema":{"type":"string","description":"Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied."}},{"name":"limit","in":"query","required":false,"description":"Limits the result, lower than 0 is not allowed. If not set, the result is not limited.","schema":{"type":"string","description":"Limits the result, lower than 0 is not allowed. If not set, the result is not limited."}}],"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":"byok"}},"/v1/transport:transavia/58d8bcb8a9e6240e200cff28":{"get":{"operationId":"transport_transavia_58d8bcb8a9e6240e200cff28","summary":"Nearest airport(s) by airport id.","description":"GET /nearest/{id}","tags":["transport"],"parameters":[{"name":"id","in":"query","required":true,"description":"Airport (IATA code) to search nearest airports for.","schema":{"type":"string","description":"Airport (IATA code) to search nearest airports for."}},{"name":"maxDistanceInKm","in":"query","required":false,"description":"Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied.","schema":{"type":"string","description":"Maximum distance in kilometers, lower than 1 and higher than 500 is not allowed. If not set, max value is applied."}},{"name":"limit","in":"query","required":false,"description":"Limits the result, lower than 0 is not allowed. If not set, the result is not limited.","schema":{"type":"string","description":"Limits the result, lower than 0 is not allowed. If not set, the result is not limited."}}],"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":"byok"}},"/v1/transport:transavia/58d8bcb7a9e6240e200cff25":{"get":{"operationId":"transport_transavia_58d8bcb7a9e6240e200cff25","summary":"Airport by id.","description":"GET /{id}","tags":["transport"],"parameters":[{"name":"id","in":"query","required":true,"description":"Airport code (3-character IATA code).","schema":{"type":"string","description":"Airport code (3-character IATA code)."}}],"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":"byok"}}},"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"}}}}}}}