Voting

Vote Results

Get aggregated voting results with percentages. Public endpoint.

get/api/v1/votes/{url}/results

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v1/votes/{url}/results
  • Auth: none required

Response

vote_namestring
total_votesinteger

Example response

{
  "vote_name": "Where to eat?",
  "total_votes": 10,
  "results": [
    {
      "name": "Italian",
      "votes_count": 6,
      "percentage": 60
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.