1. Documentation
  2. API
  3. Precincts
  4. Get

Get a Precinct

Get a specific Precinct.

GET /v1/precincts/{id}
https://api.ballotapi.org/v1/precincts/345-6

There are currently no query parameters for this endpoint.

We will return an Precinct object for the specified id.

Example response:

{
    "type": "precinct",
    "id": "345-6",
    "ocd_id": null,
    "election_id": "123-4",
    "voting_info": {...},
    "geo": {...},
}
Code Response Format Description
Response Successful request.
Error Response The query parameters you included were invalid. The Error Response will include a message describing exactly was invalid.
Error Response We could not find an Precinct with that id.
N/A You are making too many requests to the API. Check the Retry-After header for how many seconds to wait until trying the request again. See our docs on Rate Limiting.
N/A An internal server error occurred. We log these errors and try to fix them quickly, so if you keep getting 500 errors for a few days, please email us.
N/A We are down for maintenance. Please try your request again in a few minutes.
N/A Your request timed out. Please try your request again in a few minutes.