Ricos is Wix's rich content format. Wix Blog, Wix Forum, Wix Comments, and other apps use it to store formatted content, such as text, images, and polls. The Ricos Polls API manages the polls that are embedded in Ricos rich content, and the votes cast on them.
With the Ricos Polls API, you can:
The main client of the Ricos Polls API is the Ricos poll plugin. When a Wix user adds a poll to rich content, the plugin displays it, creates the poll when the content is published, and lets visitors vote, all through this API. In most cases, you don't need to call the API yourself, because the plugin in the Ricos editor and viewer does it for you.
You can also call the API without the plugin, for example to create or display polls in your own UI. In that case, you're responsible for connecting each poll to its POLL node in the Ricos document. For details about the node and the properties it needs, see the Ricos Document reference.
A poll is displayed on a site only when rich content references it. In the rich content, a poll is a node of type POLL, and the poll's ID is in the node's pollData.poll.id field. To find a poll in a Ricos document, look for nodes of type POLL, and specify pollData.poll.id in Get Poll.
createdBy of the copied polls is the new site owner.For more information about rich content and its nodes, see the Rich Content documentation.
The poll's settings control what the poll widget shows to site visitors:
resultsVisibility controls who sees results. When the caller isn't allowed to see the results, results is omitted from the response without an error.showVoteCounts controls whether vote counts are returned. percentage is returned either way.showVoters controls whether voters are listed. Voters are listed only when showVoteCounts is also true.votingAccess controls who can vote. If it's MEMBERS, site visitors who aren't logged in must log in as site members to vote.resultsVisibility value | Who sees the results |
|---|---|
PUBLIC | Everyone. |
VOTERS | Callers who voted, and the poll's creator. |
CREATOR | Only the poll's creator. |
A Wix user who isn't the poll's creator sees results only when the visibility is PUBLIC, or VOTERS after voting.
To retrieve the voting results, specify RESULTS in fields. To find out which options the caller voted for, specify CURRENT_VOTER_VOTES in fields. currentVoterOptionIds is returned regardless of resultsVisibility. Cast Vote and Remove Vote return it, together with the updated results, instead of the full poll.
Votes of site visitors who weren't logged in are counted, but their identities aren't listed. Wix users vote with their own identity, and their votes are listed with their member or Wix user ID.
It's important to note the following points before starting to code:
POLL node is displayed only when the poll plugin is enabled in the Ricos editor and viewer that render the content.url (static.wixstatic.com) from the site's Media Manager.Last updated: 27 November 2026