List polls OAuth Scope: polls:read
Retrieve all polls belonging to a specific publication. Poll choices are always included. Use expand[]=stats to include aggregate vote counts per choice.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Query parameters
Cursor-based pagination (recommended): Use this opaque cursor token to fetch the next page of results. When provided, pagination will use cursor-based method which is more efficient and consistent than offset-based pagination.
Offset-based pagination (deprecated): Page number for offset-based pagination. Please migrate to cursor-based pagination using the cursor parameter. If not specified, results 1-10 from page 1 will be returned.
The field that the results are sorted by. Defaults to created.
created - The time the poll was created.
name - The name of the poll.
The direction that the results are sorted in. Defaults to asc.
asc - Ascending, sorts from smallest to largest.
desc - Descending, sorts from largest to smallest.
Filter to only return polls that were embedded in the specified post. Accepts a prefixed post ID (e.g. post_abc123).
Response
Offset pagination only: The page number the results are from. Only present when using deprecated offset-based pagination.
Offset pagination only: The total number of pages. Only present when using deprecated offset-based pagination.
Cursor pagination only: Indicates whether there are more results available after the current page. Only present when using cursor-based pagination.
Cursor pagination only: The cursor token to use for fetching the next page of results. This will be null if has_more is false. Only present when using cursor-based pagination.