{"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:transitfeeds/get-feed-versions":{"get":{"operationId":"places_transitfeeds_get_feed_versions","summary":"Retrieve a list of versions of specified (or all) feeds.","description":"GET /getFeedVersions","tags":["places"],"parameters":[{"name":"key","in":"query","required":true,"description":"Your personal API key, used for authentication.","schema":{"type":"string","default":"YOUR_API_KEY","description":"Your personal API key, used for authentication."}},{"name":"feed","in":"query","required":false,"description":"If you only want to retrieve feed versions for a particular feed, include its ID here. You can use the `/getFeeds` call to discover feed…","schema":{"type":"string","description":"If you only want to retrieve feed versions for a particular feed, include its ID here. You can use the `/getFeeds` call to discover feed…"}},{"name":"page","in":"query","required":false,"description":"The page number of results to return. For example, if you specify a `page` of `2` with a `limit` of 10, then results 11-20 are returned.…","schema":{"type":"integer","default":1,"description":"The page number of results to return. For example, if you specify a `page` of `2` with a `limit` of 10, then results 11-20 are returned.…"}},{"name":"limit","in":"query","required":false,"description":"The maximum number of results to return..","schema":{"type":"integer","default":10,"description":"The maximum number of results to return.."}},{"name":"err","in":"query","required":false,"description":"To include any errors detected when importing this feed in the response, specify a valud of `1`.","schema":{"type":"integer","enum":[0,1],"default":1,"description":"To include any errors detected when importing this feed in the response, specify a valud of `1`."}},{"name":"warn","in":"query","required":false,"description":"To include any warnings detected when importing this feed in the response, specify a valud of `1`.","schema":{"type":"integer","enum":[0,1],"default":1,"description":"To include any warnings detected when importing this feed in the response, specify a valud of `1`."}}],"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/places:transitfeeds/get-feeds":{"get":{"operationId":"places_transitfeeds_get_feeds","summary":"Retrieve a list of feeds.","description":"GET /getFeeds","tags":["places"],"parameters":[{"name":"key","in":"query","required":true,"description":"Your personal API key, used for authentication.","schema":{"type":"string","default":"YOUR_API_KEY","description":"Your personal API key, used for authentication."}},{"name":"location","in":"query","required":false,"description":"This is the unique ID of a location. If specified, feeds will only be returned that belong to this location (and perhaps sub-locations…","schema":{"type":"integer","description":"This is the unique ID of a location. If specified, feeds will only be returned that belong to this location (and perhaps sub-locations…"}},{"name":"descendants","in":"query","required":false,"description":"If a location is specified in `location`, this flag can be used to control if returned feeds must be assigned directly to the location, or…","schema":{"type":"integer","enum":[0,1],"default":1,"description":"If a location is specified in `location`, this flag can be used to control if returned feeds must be assigned directly to the location, or…"}},{"name":"page","in":"query","required":false,"description":"The page number of results to return. For example, if you specify a `page` of `2` with a `limit` of 10, then results 11-20 are returned.…","schema":{"type":"integer","default":1,"description":"The page number of results to return. For example, if you specify a `page` of `2` with a `limit` of 10, then results 11-20 are returned.…"}},{"name":"limit","in":"query","required":false,"description":"The maximum number of results to return..","schema":{"type":"integer","default":10,"description":"The maximum number of results to return.."}},{"name":"type","in":"query","required":false,"description":"The type of feeds to return. If unspecified, feeds of all types are returned.","schema":{"type":"string","enum":["gtfs","gtfsrealtime"],"description":"The type of feeds to return. If unspecified, feeds of all types are returned."}}],"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/places:transitfeeds/get-latest-feed-version":{"get":{"operationId":"places_transitfeeds_get_latest_feed_version","summary":"Retrieve the download URL for the latest version of a feed.","description":"GET /getLatestFeedVersion","tags":["places"],"parameters":[{"name":"key","in":"query","required":true,"description":"Your personal API key, used for authentication.","schema":{"type":"string","default":"YOUR_API_KEY","description":"Your personal API key, used for authentication."}},{"name":"feed","in":"query","required":true,"description":"The ID of the feed to retrieve the latest feed version for. You can use the `/getFeeds` call to discover feed IDs.","schema":{"type":"string","description":"The ID of the feed to retrieve the latest feed version for. You can use the `/getFeeds` call to discover feed IDs."}}],"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/places:transitfeeds/get-locations":{"get":{"operationId":"places_transitfeeds_get_locations","summary":"Retrieve a list of locations.","description":"GET /getLocations","tags":["places"],"parameters":[{"name":"key","in":"query","required":true,"description":"Your personal API key, used for authentication.","schema":{"type":"string","default":"YOUR_API_KEY","description":"Your personal API key, used for authentication."}}],"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"}}}}}}}