Get all votes with identifier

Retrieve all the votes by using the custom identifier property

We love our servers, like everyone else, which is why this API sends our paginated response. You can pass in offset & limit to fetch votes in bulk as pages.

There is a max limit of 100, so even if you pass ?limit=150 it will only send at max 100.

get
Get all votes

https://api.pollsapi.com/v1/get/votes-with-identifier/{identifier}?offset=0&limit=25
This endpoint allows you to fetch paginated response for all the Votes on a poll.
Request
Response
Request
Path Parameters
identifier
required
string
Custom identifier used to create the vote
Headers
Content-Type
required
string
application/json
api-key
required
string
API Key for your account
Query Parameters
offset
optional
number
Number of items to be skipped
limit
optional
number
Number of items to be fetched (Max: 100)
Response
200: OK
{
"status": "success",
"statusCode": 200,
"data": {
"docs": [
{
"identifier": "user_12",
"poll_id": "5f9f7b186477891e5bc646a1",
"option_id": "5f9f7b186477891e5bc646a2",
"created_at": "2020-11-02T06:24:24.760Z",
"updated_at": "2020-11-02T06:24:24.760Z",
"id": "5f9fa6186477891e5bc646a5",
"entity": "Vote"
}
],
"totalDocs": 1,
"offset": 0,
"limit": 10,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
}
‚Äč

Example cURL Request

curl "https://api.pollsapi.com/v1/get/votes-with-identifier/user_12" \
-H "content-type: application/json" \
-H "api-key: $API_KEY"