{"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/open-data:bikewise/get-version-incidents-format":{"get":{"operationId":"open_data_bikewise_get_version_incidents_format","summary":"Paginated incidents matching parameters","description":"GET /v2/incidents","tags":["open-data"],"parameters":[{"name":"page","in":"query","required":false,"description":"Page of results to fetch.","schema":{"type":"integer","default":1,"description":"Page of results to fetch."}},{"name":"per_page","in":"query","required":false,"description":"Number of results to return per page.","schema":{"type":"integer","description":"Number of results to return per page."}},{"name":"occurred_before","in":"query","required":false,"description":"End of period","schema":{"type":"integer","description":"End of period"}},{"name":"occurred_after","in":"query","required":false,"description":"Start of period","schema":{"type":"integer","description":"Start of period"}},{"name":"incident_type","in":"query","required":false,"description":"Only incidents of specific type","schema":{"type":"string","enum":["crash","hazard","theft","unconfirmed","infrastructure_issue","chop_shop"],"description":"Only incidents of specific type"}},{"name":"proximity","in":"query","required":false,"description":"Center of location for proximity search","schema":{"type":"string","description":"Center of location for proximity search"}},{"name":"proximity_square","in":"query","required":false,"description":"Size of the proximity search","schema":{"type":"integer","default":100,"description":"Size of the proximity search"}},{"name":"query","in":"query","required":false,"description":"Full text search of incidents","schema":{"type":"string","description":"Full text search of incidents"}}],"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:bikewise/get-version-incidents-id-format":{"get":{"operationId":"open_data_bikewise_get_version_incidents_id_format","summary":"GET /v2/incidents/{id}","description":"GET /v2/incidents/{id}","tags":["open-data"],"parameters":[{"name":"id","in":"query","required":true,"description":"Incident ID","schema":{"type":"integer","description":"Incident ID"}}],"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:bikewise/get-version-locations-format":{"get":{"operationId":"open_data_bikewise_get_version_locations_format","summary":"Unpaginated geojson response","description":"GET /v2/locations","tags":["open-data"],"parameters":[{"name":"occurred_before","in":"query","required":false,"description":"End of period","schema":{"type":"integer","description":"End of period"}},{"name":"occurred_after","in":"query","required":false,"description":"Start of period","schema":{"type":"integer","description":"Start of period"}},{"name":"incident_type","in":"query","required":false,"description":"Only incidents of specific type","schema":{"type":"string","enum":["crash","hazard","theft","unconfirmed","infrastructure_issue","chop_shop"],"description":"Only incidents of specific type"}},{"name":"proximity","in":"query","required":false,"description":"Center of location for proximity search","schema":{"type":"string","description":"Center of location for proximity search"}},{"name":"proximity_square","in":"query","required":false,"description":"Size of the proximity search","schema":{"type":"integer","default":100,"description":"Size of the proximity search"}},{"name":"query","in":"query","required":false,"description":"Full text search of incidents","schema":{"type":"string","description":"Full text search of incidents"}},{"name":"limit","in":"query","required":false,"description":"Max number of results to return. Defaults to 100","schema":{"type":"integer","description":"Max number of results to return. Defaults to 100"}},{"name":"all","in":"query","required":false,"description":"Give ‘em all to me. Will ignore limit","schema":{"type":"boolean","description":"Give ‘em all to me. Will ignore limit"}}],"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:bikewise/get-version-locations-markers-format":{"get":{"operationId":"open_data_bikewise_get_version_locations_markers_format","summary":"Unpaginated geojson response with simplestyled markers","description":"GET /v2/locations/markers","tags":["open-data"],"parameters":[{"name":"occurred_before","in":"query","required":false,"description":"End of period","schema":{"type":"integer","description":"End of period"}},{"name":"occurred_after","in":"query","required":false,"description":"Start of period","schema":{"type":"integer","description":"Start of period"}},{"name":"incident_type","in":"query","required":false,"description":"Only incidents of specific type","schema":{"type":"string","enum":["crash","hazard","theft","unconfirmed","infrastructure_issue","chop_shop"],"description":"Only incidents of specific type"}},{"name":"proximity","in":"query","required":false,"description":"Center of location for proximity search","schema":{"type":"string","description":"Center of location for proximity search"}},{"name":"proximity_square","in":"query","required":false,"description":"Size of the proximity search","schema":{"type":"integer","default":100,"description":"Size of the proximity search"}},{"name":"query","in":"query","required":false,"description":"Full text search of incidents","schema":{"type":"string","description":"Full text search of incidents"}},{"name":"limit","in":"query","required":false,"description":"Max number of results to return. Defaults to 100","schema":{"type":"integer","description":"Max number of results to return. Defaults to 100"}},{"name":"all","in":"query","required":false,"description":"Give ‘em all to me. Will ignore limit","schema":{"type":"boolean","description":"Give ‘em all to me. Will ignore limit"}}],"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"}}}}}}}