Get polls by identifer

The custom identifier which is used in poll creation can also be used to retrieve the polls.

The max limit that can be used is 100, anything above it would be disregarded.

We love our servers, like everyone else, which is why this API sends our paginated response. You can pass in offset & limit to fetch polls 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 polls by identifier

https://api.pollsapi.com/v1/get/polls-with-identifier/{identifier}?offset=0&limit=25
Fetch all the polls by the custom identifier property
Request
Response
Request
Path Parameters
identifier
required
string
Identifier for which all polls need to be fetched
Headers
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, default is 25 (Max: 100)
Response
200: OK
Cake successfully retrieved.
{
"status": "success",
"statusCode": 200,
"data": {
"docs": [],
"totalDocs": 0,
"offset": 0,
"limit": 25,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
}
‚Äč

Example cURL Request

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