{"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/open-data:mtaa-api-herokuapp/tanzania-regions":{"get":{"operationId":"open_data_mtaa_api_herokuapp_tanzania_regions","summary":"Returns all regions present in Tanzania","description":"GET /{country}","tags":["open-data"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country name in lowercase eg (Tanzania)","schema":{"type":"string","description":"Country name in lowercase eg (Tanzania)"}}],"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:mtaa-api-herokuapp/districts-in-a-region":{"get":{"operationId":"open_data_mtaa_api_herokuapp_districts_in_a_region","summary":"Returns all districts in region","description":"GET /{country}/{region}","tags":["open-data"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country name in lowercase eg( tanzania)","schema":{"type":"string","description":"Country name in lowercase eg( tanzania)"}},{"name":"region","in":"query","required":true,"description":"Name of the region eg (Mbeya)","schema":{"type":"string","description":"Name of the region eg (Mbeya)"}}],"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:mtaa-api-herokuapp/wards-in-a-district":{"get":{"operationId":"open_data_mtaa_api_herokuapp_wards_in_a_district","summary":"Returns all wards in a district","description":"GET /{country}/{region}/{district}","tags":["open-data"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country name in lowercase eg( tanzania)","schema":{"type":"string","description":"Country name in lowercase eg( tanzania)"}},{"name":"region","in":"query","required":true,"description":"Name of the region eg (Mbeya)","schema":{"type":"string","description":"Name of the region eg (Mbeya)"}},{"name":"district","in":"query","required":true,"description":"Name of the District eg (Rungwe)","schema":{"type":"string","description":"Name of the District eg (Rungwe)"}}],"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:mtaa-api-herokuapp/streets-in-a-ward":{"get":{"operationId":"open_data_mtaa_api_herokuapp_streets_in_a_ward","summary":"Returns all streets in a ward","description":"GET /{country}/{region}/{district}/{ward}","tags":["open-data"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country name in lowercase eg( tanzania)","schema":{"type":"string","description":"Country name in lowercase eg( tanzania)"}},{"name":"region","in":"query","required":true,"description":"Name of the region eg (Mbeya)","schema":{"type":"string","description":"Name of the region eg (Mbeya)"}},{"name":"district","in":"query","required":true,"description":"Name of the District eg (Rungwe)","schema":{"type":"string","description":"Name of the District eg (Rungwe)"}},{"name":"ward","in":"query","required":true,"description":"Name of the Ward eg (Kiwira)","schema":{"type":"string","description":"Name of the Ward eg (Kiwira)"}}],"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:mtaa-api-herokuapp/neighborhood-in-a-street":{"get":{"operationId":"open_data_mtaa_api_herokuapp_neighborhood_in_a_street","summary":"Returns all neighborhood in a street","description":"GET /{country}/{region}/{district}/{ward}/{street}","tags":["open-data"],"parameters":[{"name":"country","in":"query","required":true,"description":"Country name in lowercase eg( tanzania)","schema":{"type":"string","description":"Country name in lowercase eg( tanzania)"}},{"name":"region","in":"query","required":true,"description":"Name of the region eg (Mbeya)","schema":{"type":"string","description":"Name of the region eg (Mbeya)"}},{"name":"district","in":"query","required":true,"description":"Name of the District eg (Rungwe)","schema":{"type":"string","description":"Name of the District eg (Rungwe)"}},{"name":"ward","in":"query","required":true,"description":"Name of the Ward eg (Kiwira)","schema":{"type":"string","description":"Name of the Ward eg (Kiwira)"}},{"name":"street","in":"query","required":true,"description":"Name of the Street eg (Ilundo)","schema":{"type":"string","description":"Name of the Street eg (Ilundo)"}}],"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"}}}}}}}