{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/places:rest-countries/by-name":{"get":{"operationId":"places_rest_countries_by_name","summary":"By name","description":"Countries matching a name.","tags":["places"],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"example":"japan"},{"name":"fields","in":"query","required":false,"description":"Comma-separated fields to return","schema":{"type":"string","description":"Comma-separated fields to return"}}],"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:rest-countries/by-code":{"get":{"operationId":"places_rest_countries_by_code","summary":"By code","description":"Country by ISO 3166 alpha-2 or alpha-3 code.","tags":["places"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"},"example":"BR"}],"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:rest-countries/by-region":{"get":{"operationId":"places_rest_countries_by_region","summary":"By region","description":"Countries in a region.","tags":["places"],"parameters":[{"name":"region","in":"query","required":true,"schema":{"type":"string","enum":["africa","americas","asia","europe","oceania"]},"example":"europe"},{"name":"fields","in":"query","required":false,"schema":{"type":"string","default":"name,cca2,capital,population,flags"}}],"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:rest-countries/by-currency":{"get":{"operationId":"places_rest_countries_by_currency","summary":"By currency","description":"Countries using a currency.","tags":["places"],"parameters":[{"name":"currency","in":"query","required":true,"schema":{"type":"string"},"example":"eur"}],"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"}}}}}}}