Select parameter

All resources support an optional select parameter. This parameter allows you to specify which properties will be returned from each resource. To use, add the select query parameter to the url with a comma separated list of the properties you would like returned.

Examples

Request

GET http://api.woot.com/2/events.json?site=www.woot.com&eventType=Daily&key={yourkey}&select=Title

Response

[
  {
    "Type": "Daily",
    "Id": "ae74b3fd-c635-421d-ad83-18be98699ff9",
    "Title": "Motorola Bluetooth Headphones"
  }
]

Request

GET http://api.woot.com/2/events.json?site=www.woot.com&eventType=Daily&key={yourkey}&select=Title,Site,StartDate,EndDate

Response

[
  {
    "Type": "Daily",
    "Id": "ae74b3fd-c635-421d-ad83-18be98699ff9",
    "Title": "Motorola Bluetooth Headphones",
    "Site": "www.woot.com",
    "StartDate": "2012-07-06T05:00:00Z",
    "EndDate": "2012-07-07T05:00:00Z"
  }
]

Request

GET http://api.woot.com/2/events.json?site=www.woot.com&eventType=Daily&key={yourkey}&select=Offers

Response

[
  {
    "Type": "Daily",
    "Id": "ae74b3fd-c635-421d-ad83-18be98699ff9",
    "Offers": [
      {
        "Id": "648a142d-5524-408b-a2d1-057e89a33dfb",
        "Items": [
          {
            "Id": "5bc865ca-4953-4134-bd3f-883205b2c7a6",
            "SalePrice": 24.99,
            "Attributes": [
              {
                "Key": "Condition",
                "Value": "Refurbished"
              },
              {
                "Key": "Color",
                "Value": "Black/Red"
              }
            ],
            "PurchaseLimit": 0
          }
        ],
        "Url": "http://www.woot.com/offers/motorola-bluetooth-headphones-1",
        "EstimatedShipDate": {
          "MessagePrefix": "In stock.",
          "MessageBody": "Ships in 3-5 business days."
        },
        "PercentageRemaining": 100,
        "Photos": [
          {
            "Url": "http://d3gqasl9vmjfd8.cloudfront.net/c359a5ab-179f-4d9d-9578-8e23420564f9.jpg",
            "Width": 1080,
            "Height": 410,
            "Tags": []
          },
          {
            "Url": "http://d3gqasl9vmjfd8.cloudfront.net/979c9028-8c38-4dbe-b7de-25f10fe45c8f.jpg",
            "Width": 588,
            "Height": 441,
            "Tags": [
              "gallery",
              "fullsize-0"
            ]
          }
        ],
        "ShippingMethods": [
          {
            "Name": "Standard",
            "PerOrderAmount": 5.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 0.00
          },
          {
            "Name": "Two-Day",
            "PerOrderAmount": 0.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 7.00
          },
          {
            "Name": "One-Day",
            "PerOrderAmount": 0.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 11.00
          }
        ],
        "SoldOut": false,
        "Specs": "<table style=\"width: 380px;\"><tr><td>...</td></tr></table>",
        "Subtitle": "Take A Listen",
        "Teaser": "It takes a big person to apologize when they know they're wrong, but it takes an even bigger one to listen to it.",
        "Title": "Motorola Bluetooth Headphones",
        "WriteUp": "<p>Dear Uncle Rocco,</p><p>I hope this letter finds you well..."
      }
    ]
  }
]

Request

GET http://api.woot.com/2/events.json?site=www.woot.com&eventType=Daily&key={yourkey}&select=Offers.ShippingMethods

Response

[
  {
    "Type": "Daily",
    "Id": "ae74b3fd-c635-421d-ad83-18be98699ff9",
    "Offers": [
      {
        "Id": "648a142d-5524-408b-a2d1-057e89a33dfb",
        "ShippingMethods": [
          {
            "Name": "Standard",
            "PerOrderAmount": 5.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 0.00
          },
          {
            "Name": "Two-Day",
            "PerOrderAmount": 0.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 7.00
          },
          {
            "Name": "One-Day",
            "PerOrderAmount": 0.00,
            "PerEventAmount": 0.00,
            "PerItemAmount": 11.00
          }
        ]
      }
    ]
  }
]