VIP 5.1.2: Election

list: Return all upcoming elections.

retrieve: Return a specific upcoming election.

GET /api/elections/
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "count": 9,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://michiganelections.io/api/elections/41/",
            "id": 41,
            "name": "State General",
            "date": "2020-11-03",
            "date_humanized": "Tuesday, November 3rd",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/State%20General.md",
            "active": true,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/40/",
            "id": 40,
            "name": "State Primary",
            "date": "2020-08-04",
            "date_humanized": "Tuesday, August 4th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/State%20Primary.md",
            "active": true,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/39/",
            "id": 39,
            "name": "May Consolidated",
            "date": "2020-05-05",
            "date_humanized": "Tuesday, May 5th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/May%20Consolidated.md",
            "active": false,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/38/",
            "id": 38,
            "name": "Presidential Primary",
            "date": "2020-03-10",
            "date_humanized": "Tuesday, March 10th",
            "description": "The presidential primary elections and caucuses held in the various states, the District of Columbia, and territories of the United States form part of the nominating process of candidates for United States presidential elections.",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/Presidential%20Primary.md",
            "active": false,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/5/",
            "id": 5,
            "name": "November Consolidated",
            "date": "2019-11-05",
            "date_humanized": "Tuesday, November 5th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/November%20Consolidated.md",
            "active": false,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/4/",
            "id": 4,
            "name": "May Consolidated",
            "date": "2019-05-07",
            "date_humanized": "Tuesday, May 7th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/May%20Consolidated.md",
            "active": false,
            "reference_url": "https://www.michigan.gov/documents/sos/May_2019_Calendar_643102_7.pdf"
        },
        {
            "url": "http://michiganelections.io/api/elections/3/",
            "id": 3,
            "name": "State General",
            "date": "2018-11-06",
            "date_humanized": "Tuesday, November 6th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/State%20General.md",
            "active": false,
            "reference_url": "https://www.michigan.gov/documents/sos/2018_Dates_600221_7.pdf"
        },
        {
            "url": "http://michiganelections.io/api/elections/1/",
            "id": 1,
            "name": "State Primary",
            "date": "2018-08-07",
            "date_humanized": "Tuesday, August 7th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/State%20Primary.md",
            "active": false,
            "reference_url": null
        },
        {
            "url": "http://michiganelections.io/api/elections/2/",
            "id": 2,
            "name": "November Consolidated",
            "date": "2017-11-07",
            "date_humanized": "Tuesday, November 7th",
            "description": "",
            "description_edit_url": "https://github.com/citizenlabsgr/elections-api/edit/main/content/elections/November%20Consolidated.md",
            "active": false,
            "reference_url": null
        }
    ]
}