Skip to main content

GET /measures

tip

Check out our GraphQL API for a more flexible approach to incorporate BallotReady data in your projects.

Returns all measures up for election on a given election date when given an address or lat/Lon pair.

Parameters

Either lat/lng or address is required AND an election_id OR an election_date is required.

  • address (optional): address to search for
  • lat (optional)
  • lng (optional)
  • election_id (optional): filter by a specific election
  • election_date (optional): filter by a specific election date in YYYY-MM-DD format

Request

curl -H 'x-api-key: APIKEY' "https://api.civicengine.com/measures?address=60202&election_date=2018-11-07"

Response

{
"timestamp": datetime,
"positions": [
{
"pro_snippet": string,
"con_snippet": string,
"title": string,
"text": string,
"summary": string,
"state": string,
"row_order": int,
"name": string
}
],
"coords": {
"latitude": float,
"longitude": float
},
"result_count": int
}