> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ListVoters

# Package: richContent

# Namespace: RicosPolls

# Method link: https://dev.wix.com/docs/api-reference/assets/rich-content/polls-v1/list-voters.md

## Permission Scopes:
Manage Ricos Polls: SCOPE.DC-RICOS.MANAGE-POLLS

## Introduction

Retrieves the site members and Wix users who voted for a poll option, with cursor paging.

Site visitors, site members and Wix users can call this method. Voters are available only when `settings.showVoteCounts` and `settings.showVoters` are `true`, and the caller is allowed to see the results. Votes of site visitors who weren't logged in aren't listed.

To get member names and photos, call Query Members with the returned `voter.memberId` values.

---

## REST API

### Schema

```
 Method: listVoters
 Description: Retrieves the site members and Wix users who voted for a poll option, with cursor paging.  Site visitors, site members and Wix users can call this method. Voters are available only when `settings.showVoteCounts` and `settings.showVoters` are `true`, and the caller is allowed to see the results. Votes of site visitors who weren't logged in aren't listed.  To get member names and photos, call Query Members with the returned `voter.memberId` values.
 URL: https://www.wixapis.com/ricos/v1/polls/{pollId}/options/{optionId}/voters
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  pollId, optionId
 Method parameters: 
   param name: optionId | type:   none | required: true 
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
   param name: pollId | type:   none | required: true 
 Return type: ListVotersResponse
  - name: voters | type: array<Voter> | description: Site members who voted for the option, most recent first.  | validation: maxItems 100
     - name: voter | type: IdentificationData | description: Identity of the voter: a site member or a Wix user.  
        - ONE-OF: 
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor who isn't logged in.  | validation: format GUID
           - name: memberId | type: string | description: GUID of a site member.  | validation: format GUID
           - name: wixUserId | type: string | description: GUID of a Wix user, such as the site owner or a contributor.  | validation: format GUID
           - name: appId | type: string | description: GUID of an app.  | validation: format GUID
     - name: voteDate | type: string | description: Date and time of the vote.  | validation: format date-time
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: VOTERS_HIDDEN | Description: The poll's settings or results visibility don't allow the caller to see the voters.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: POLL_OPTION_NOT_FOUND | Description: Couldn't find the poll option.


```

### Examples

### List Voters
Retrieves the site members who voted for the "Performance tuning" option, most recent first, 2 per page.

```curl
curl -X GET \
  'https://www.wixapis.com/ricos/v1/polls/bee2255e-17c6-47a2-89a9-718e3317befb/options/d3ed0db9-62c9-4a4e-8af3-33c556c5039c/voters?paging.limit=2' \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.richContent.ricosPolls.listVoters(identifiers, options)
 Description: Retrieves the site members and Wix users who voted for a poll option, with cursor paging.  Site visitors, site members and Wix users can call this method. Voters are available only when `settings.showVoteCounts` and `settings.showVoters` are `true`, and the caller is allowed to see the results. Votes of site visitors who weren't logged in aren't listed.  To get member names and photos, call Query Members with the returned `voter.memberId` values.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  identifiers.pollId, identifiers.optionId, identifiers
 Method parameters: 
   param name: identifiers | type: ListVotersIdentifiers  none | required: true 
        - name: pollId | type: string | description: Poll GUID. | required: true | validation: format GUID
        - name: optionId | type: string | description: Option GUID. | required: true | validation: format GUID
   param name: options | type: ListVotersOptions  none  
        - name: paging | type: CursorPaging | description: Cursor paging options.  Default: `paging.limit` is `20`.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListVotersResponse>
  - name: voters | type: array<Voter> | description: Site members who voted for the option, most recent first.  | validation: maxItems 100
     - name: voter | type: IdentificationData | description: Identity of the voter: a site member or a Wix user.  
        - ONE-OF: 
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor who isn't logged in.  | validation: format GUID
           - name: memberId | type: string | description: GUID of a site member.  | validation: format GUID
           - name: wixUserId | type: string | description: GUID of a Wix user, such as the site owner or a contributor.  | validation: format GUID
           - name: appId | type: string | description: GUID of an app.  | validation: format GUID
     - name: voteDate | type: Date | description: Date and time of the vote.  
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  

 Possible Errors:
   HTTP Code: 403 | Status Code: PERMISSION_DENIED | Application Code: VOTERS_HIDDEN | Description: The poll's settings or results visibility don't allow the caller to see the voters.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: POLL_OPTION_NOT_FOUND | Description: Couldn't find the poll option.


```

### Examples

### List voters of an option
Retrieves the site members who voted for the "Performance tuning" option, most recent first, 2 per page.

```javascript
import { ricosPolls } from "@wix/rich-content";

async function listVoters() {
  const response = await ricosPolls.listVoters(
    {
      pollId: "bee2255e-17c6-47a2-89a9-718e3317befb",
      optionId: "d3ed0db9-62c9-4a4e-8af3-33c556c5039c",
    },
    {
      paging: { limit: 2 },
    },
  );
}

/* Promise resolves to:
 * {
 *   "voters": [
 *     { "voter": { "memberId": "5c1a7f0e-3b52-4d1c-9a6e-2f8d4b7e1c93" }, "voteDate": "2026-11-11T13:55:09.402Z" },
 *     { "voter": { "memberId": "a7e3d9b2-6c41-4f58-8b0d-91e5c2f3a604" }, "voteDate": "2026-11-11T12:31:46.870Z" }
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "cursors": { "next": "eyJ2b3RlRGF0ZSI6IjIwMjYtMTEtMTFUMTI6MzE6NDYifQ" },
 *     "hasNext": true
 *   }
 * }
 */

```

### listVoters (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { ricosPolls } from '@wix/rich-content';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { ricosPolls },
  // Include the auth strategy and host as relevant
});


async function listVoters(identifiers,options) {
  const response = await myWixClient.ricosPolls.listVoters(identifiers,options);
};
```

---