{"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/analytics:googleapis-civicinfo/civicinfo-divisions-query-division-by-address":{"get":{"operationId":"analytics_googleapis_civicinfo_civicinfo_divisions_query_division_by_address","summary":"Lookup OCDIDs and names for divisions related to an address.","description":"GET /civicinfo/v2/divisionsByAddress","tags":["analytics"],"parameters":[{"name":"address","in":"query","required":false,"schema":{"type":"string"}}],"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/analytics:googleapis-civicinfo/civicinfo-divisions-search":{"get":{"operationId":"analytics_googleapis_civicinfo_civicinfo_divisions_search","summary":"Searches for political divisions by their natural name or OCD ID.","description":"GET /civicinfo/v2/divisions","tags":["analytics"],"parameters":[{"name":"query","in":"query","required":false,"description":"The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as…","schema":{"type":"string","description":"The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as…"}}],"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/analytics:googleapis-civicinfo/civicinfo-elections-election-query":{"get":{"operationId":"analytics_googleapis_civicinfo_civicinfo_elections_election_query","summary":"List of available elections to query.","description":"GET /civicinfo/v2/elections","tags":["analytics"],"parameters":[{"name":"productionDataOnly","in":"query","required":false,"description":"Whether to include data that has not been allowlisted yet","schema":{"type":"boolean","default":"true","description":"Whether to include data that has not been allowlisted yet"}}],"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/analytics:googleapis-civicinfo/civicinfo-elections-voter-info-query":{"get":{"operationId":"analytics_googleapis_civicinfo_civicinfo_elections_voter_info_query","summary":"Looks up information relevant to a voter based on the voter's registered address.","description":"GET /civicinfo/v2/voterinfo","tags":["analytics"],"parameters":[{"name":"address","in":"query","required":false,"description":"The registered address of the voter to look up.","schema":{"type":"string","description":"The registered address of the voter to look up."}},{"name":"electionId","in":"query","required":false,"description":"The unique ID of the election to look up. A list of election IDs can be obtained at…","schema":{"type":"string","default":"0","description":"The unique ID of the election to look up. A list of election IDs can be obtained at…"}},{"name":"officialOnly","in":"query","required":false,"description":"If set to true, only data from official state sources will be returned.","schema":{"type":"boolean","default":"false","description":"If set to true, only data from official state sources will be returned."}},{"name":"productionDataOnly","in":"query","required":false,"description":"Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a…","schema":{"type":"boolean","default":"true","description":"Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a…"}},{"name":"returnAllAvailableData","in":"query","required":false,"description":"If set to true, the query will return the success code and include any partial information when it is unable to determine a matching…","schema":{"type":"boolean","default":"false","description":"If set to true, the query will return the success code and include any partial information when it is unable to determine a matching…"}}],"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"}}}}}}}