dphiffer / elections-api

An API for retrieving locally-relevant structured data about US elections

Home Page:https://elections.api.aclu.org/v2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elections-api

An API for retrieving locally-relevant structured data about US elections.

Origins

This API was originally created for ACLU Voter and was subsequently used by Vote Smart Justice. Is currently used by scorecards.

Calling the API

The pip (point-in-polygon) endpoint provides most of the details available from the API.

$ curl -s 'https://elections.api.aclu.org/v2/pip?lat=40.7023699&lng=-74.012632' | python -mjson.tool

Output: example-output.json Documentation: API endpoints

Documentation

See also

Related private ACLU repositories:

Data sources

About

An API for retrieving locally-relevant structured data about US elections

https://elections.api.aclu.org/v2/

License:MIT License


Languages

Language:Python 94.3%Language:Shell 2.6%Language:Makefile 2.3%Language:Dockerfile 0.7%