The Woot API v2 is in beta and is subject to change without notice.

GET polls

Updated on Fri, 2013-11-15 15:19

Returns a collection of Polls.

Resource URL

http://api.woot.com/2/polls.json

Parameters

key
required
Your public API key. This can be obtained by visiting your applications page.
site
optional
multiple
Restricts events to the specified site.
Valid values for site are:
  • www.woot.com
  • home.woot.com
  • electronics.woot.com
  • computers.woot.com
  • tools.woot.com
  • sport.woot.com
  • accessories.woot.com
  • kids.woot.com
  • shirt.woot.com
  • wine.woot.com
  • sellout.woot.com
select
optional
multiple
Restricts the returned properties to the specified values.

Example

Request

GET http://api.woot.com/2/polls.json?key={yourkey}

Response

[
  {
    "DiscussionUrl": "https://www.woot.com/forums/viewpost.aspx?postid=5212125",
    "Questions": [
      {
        "Responses": [
          {
            "Text": "Rob a bank",
            "VoteCount": 1818
          },
          {
            "Text": "Kill someone",
            "VoteCount": 358
          },
          {
            "Text": "Have an extramarital affair",
            "VoteCount": 301
          },
          {
            "Text": "Burn some $#!% down",
            "VoteCount": 535
          },
          {
            "Text": "Other (comments, please)",
            "VoteCount": 369
          }
        ],
        "Text": "If I knew I could totally get away with it, I would:"
      }
    ],
    "Site": "www.woot.com"
  },
  {
    "DiscussionUrl": "https://electronics.woot.com/forums/viewpost.aspx?postid=5212127",
    "Questions": [
      {
        "Responses": [
          {
            "Text": "Definitely! Where can I get one?",
            "VoteCount": 423
          },
          {
            "Text": "Depends on how much. For the right price, sure.",
            "VoteCount": 728
          },
          {
            "Text": "I don't want a robot in my house!",
            "VoteCount": 57
          },
          {
            "Text": "I'd prefer to keep my human butler.",
            "VoteCount": 132
          }
        ],
        "Text": "Would you buy a robotic butler to help around your house?"
      }
    ],
    "Site": "electronics.woot.com"
  },
  {
    "DiscussionUrl": "https://kids.woot.com/forums/viewpost.aspx?postid=5212122",
    "Questions": [
      {
        "Responses": [
          {
            "Text": "1",
            "VoteCount": 402
          },
          {
            "Text": "2",
            "VoteCount": 107
          },
          {
            "Text": "3 or more",
            "VoteCount": 153
          }
        ],
        "Text": "How many naps does your kid take during the day?"
      }
    ],
    "Site": "kids.woot.com"
  }
]

Data Types

Class Hierarchy

Poll

A community poll.

PropertyTypeDescription
DiscussionUrl String The URL to the discussion forum for this poll.
Questions Question[] A list of questions that are apart of this poll.
Site String The site this poll is featured on.

Question

A poll question.

PropertyTypeDescription
Responses Response[] A list of possible responses to the question.
Text String The text of the question.

Response

A response to a poll question.

PropertyTypeDescription
Text String The text of the response.
VoteCount Int64 A count of how many people voted for this response.