SinglePlatform Publisher API Documentation

Introduction

The SinglePlatform Publisher API enables you to retrieve information about our merchants and their products.

Resources

Base URL for all requests: http://publishing-api.singleplatform.com

(GET) /locations/<id>/

Fetch a Location by its alphanumeric id.

(GET) /locations/updated_since/

Returns a list of Locations that have been updated since the specified date

Parameters:

  • date (required): Date must be in YYYY-MM-DD format.
  • limit: Number of results per page. The default is 500.

(GET) /locations/<id>/menus/

Returns a JSON document containing the product lists of the given Location.

Parameters:

  • format: Excluding this parameter will return the full product lists.

(GET) /locations/<id>/photos/

Returns a JSON document containing the photos of the given Location.

Parameters:

  • height: Maximum height (in pixels) for the photos returned.
  • width: Maximum width (in pixels) for the photos returned.
  • type: Limit photos returned to those belonging to the specified type. Valid types include: interior, exterior, item, logo, or unclassified. Excluding this parameter from your request will return all photo categories.

(GET) /locations/<id>/all/

Returns a JSON document containing the Location details, product lists and photos of the given Location.

Location Object

A Location object contains the following attributes:

  • location_id (string): The unique ID of this location as used in the REST API. This is alpha-numeric.
  • location_nid (integer): A unique, numerical ID for this location.
  • has_menus (boolean): Indicates whether this location has associated menus.
  • published_at (datetime): Indicates the date/time that the location was first publicly exposed in our API.
  • out_of_business (boolean): Indicates whether the location is in business or out of business (i.e., closed).
  • has_hours (boolean): Indicates whether the location has hours of operation available.
  • location:
    • address1 (string): Location's physical street address.
    • address2 (string): Location's suite number, building number, etc.
    • city (string): Location's city.
    • state (string): location's state
    • country (string): Location's country.
    • postal_code (string): Location's postal code.
    • latitude (float): Location's latitude.
    • longitude (float): Location's longitude.
    • cross_street (string): Location's cross streets (i.e. 2nd Avenue and 4th Street).
    • neighborhood (string): Location's neighborhood (i.e. East Village).
    • directions (string): Location's driving and/or public transport directions.
  • sp_photos (boolean): Whether the location has photos.
  • email (string): Location's primary email address.
  • website (string): Location's primary website.
  • updated (datetime): The date / time the location was last updated in SinglePlatform's data store.
  • description (string): General description of the location.
  • hours: Daily operating hours for the location.
    • {day of week, e.g. Monday} (array): An array of opening/closing times for the day. A day may contain multiple noncontiguous operating periods.
      • opening (string): Opening time.
      • closing (string): Closing time.
      • description (string): Description for that day's operating hours.
  • phone (string): Location's primary phone number represented as a 10-digit number formatted as: 555-867-5309.
  • business_type (string): Type of business for the location.
  • is_owner_verified (boolean): Indicates if a location is a SinglePlatform paying customer. Priority should be given to all SinglePlatform owner verified locations.
  • is_published (boolean): Indicates if the location is exposed publicly in our API. If you are seeing the location, this value will always be true.
  • name (string): The name of the location.
  • created (datetime): The date and time the location was created in SinglePlatform's data store.
  • foreign_ids: IDs for this location in other applications. Provided when available.
    • yelp (string): ID for this location's Yelp listing.
    • facebook_page_id (string): ID for this location's Facebook page.
    • foursquare (string): ID for this location's Foursquare listing.
    • zagat_web (string): ID for this location's Zagat Web listing.
    • zagat_mobile (string): ID for this location Zagat Mobile listing.
    • opentable (string): ID for this location's OpenTable listing.
  • time_zone (string): Location's time zone. Possible values include: PST, MST, CST, EST.
  • attributes: Miscelleneous attributes about the location.
    • take_out (boolean): Whether the location offers take out.
    • cuisine (array): An array of string descriptions for this location's cuisine. Restaurants only. See a list of possible cuisine types.
    • dine_in (boolean): Whether the location has seating for in-store dining.
    • alcohol (string): Whether the location serves alcohol. Possible values are: None, Full Bar, Beer/Wine, BYOB
    • drive_thru (boolean): Whether the location has a drive through ordering option.
    • reservations (boolean): Whether the location accept reservations.
    • average_price (boolean): Average price of all of the location's offerings.
    • meals_served (string): Array of strings describing meals served. Possible values include: Breakfast, Brunch, Lunch, Dinner, Late Night
    • wheelchair_access (boolean): Whether the location provides wheelchair access.
    • delivery (boolean): Whether the location delivers to customers.
    • price_rating (string): Number 1-5 representing how the location's pricing compares to similar nearby locations, with 1 meaning the location's pricing is relatively inexpensive while 5 signals the location is relatively expensive.
    • payment_types_accepted (string): Array of accepted payment methods. Possible values include: All Major Credit Cards, Cash Only, Visa, Diner Club, Mastercard, American Express, Discover, Check
    • catering (boolean): Whether the location offers catering services.

A Menu object contains the following attributes:

  • id (integer): The unique, numeric id of this menu.
  • location_id (string): The unique id of this location as used in the REST API.
  • name (string): The name for this menu. This name is unique among the menus for a given location.
  • description (string): The description of the menu (i.e. "Lunch menu served from 11am – 3pm")
  • menu_type (string): Indicates if the menu is a list of food items or a listing of products and/or services. Possible values include: Menu and Listing.
  • footnote (string): A note, typically added below the menu, which may include information about the chef, suggested gratuity, etc.
  • order_num (integer): The order number of this menu to be used in sorting menus when displaying them.
  • currency (string): Indicates the menu's currency.
  • created (datetime): Indicates the date and time that this menu was created.
  • updated (datetime): Indicates the date and time that this menu was last updated.
  • attribution_image (string): URL to the attribution image for this menu. SinglePlatform requires that this attribution image be loaded below each menu.
  • attribution_image_link (string): URL for the link to apply to the attribution image for this menu.
  • secure_attribution_image (string): A secure URL to the attribution image for this menu.
  • secure_attribution_image_link (string): A secure URL for the link to apply to the attribution image for this menu
  • sections:
    • id (integer): The unique, numeric id of this section.
    • name (string): The name for this section.
    • description (string): The description of this section.
    • order_num (integer) The order number of this section.
    • items (array): An array of menu items.
      • id (integer): The unique, numeric id of this item.
      • name (string): The name for this item.
      • description (string): The description for this item.
      • order_num (string): The order number of this item.
      • photos (string): An array of photo URLs associated with this item.
      • choices (array): An array of choices.
        • name (string): The price label, which is entered before the price (e.g., large).
        • unit (string): The price unit, which is entered after the price (e.g., per pound or each)
        • order_num (integer): The order number of this price for sorting.
        • prices:
          • max (decimal): The maximum price in a price range.
          • min (decimal): The minimum price in a price range. NOTE: If there is no price range, then min and max price will be equal.
        • calories:
          • max (integer): The maximum calorie count in a range.
          • min (integer): The minimum calorie count in a range. NOTE: If there is no calorie range, then min and max calories will be equal.
      • additions:
        • name (string): The item add-on label (e.g., add pepperoni).
        • unit (string): The price unit for the add-on (e.g., per pound).
        • order_num (integer): The order number for this add-on for sorting.
        • prices:
          • max (decimal): The maximum price in a price range for this add-on.
          • min (decimal): The minimum price in a price range for this add-on. NOTE: If there is no price range, then min and max price will be equal.
      • attributes: Attributes about this item (e.g. vegan or gluten-free). The following will only appear in the response if specifically marked by the merchant.
        • dairy (boolean): Indicates if the item contains dairy.
        • dairy-free (boolean): Indicates if the item is dairy-free.
        • egg (boolean): Indicates if the item contains egg.
        • egg-free (boolean): Indicates if the item is egg-free.
        • fish (boolean): Indicates if the item contains fish.
        • fish-free (boolean): Indicates if the item is fish-free.
        • gluten-free (boolean): Indicates if the item is gluten-free.
        • halal (boolean): Indicates if the item is Halal.
        • kosher (boolean): Indicates if the item is Kosher.
        • organic (boolean): Indicates if the item is organic.
        • peanut (boolean): Indicates if the item contains peanut.
        • peanut-free (boolean): Indicates if the item is peanut-free.
        • shellfish (boolean): Indicates if the item contains shellfish.
        • shellfish-free (boolean): Indicates if the item is shellfish-free.
        • soy (boolean): Indicates if the item contains soy.
        • soy-free (boolean): Indicates if the item is soy-free.
        • spicy (boolean): Indicates if the item is spicy.
        • tree-nut (boolean): Indicates if the item contains tree nuts.
        • tree-nut-free (boolean): Indicates if the item is tree-nut-free.
        • vegan (boolean): Indicates if the item is vegan.
        • vegetarian (boolean): Indicates if the item is vegetarian.
        • wheat (boolean): Indicates if the item contains wheat.

Short Menu

A short menu consists of up to 5 items from a maximum number of sections. This short menu will contain a representative sample of entrees, appetizers, salads, desserts, and beverages. SinglePlatform also gives our paying customers the ability to select the items that are returned at this short menu end-point. The data descriptions are identical to that of the full menu.

Photo Object

A Photo object contains the following attributes:

  • location_id (string): The unique alphanumeric id of this Location.
  • photo_id (integer): The unique id of this photo.
  • title (string): The name for this photo. This is not unique.
  • type (string): A category for the photo. Possible values include: interior, exterior, item, logo, or unclassified.
  • url (string): The photo URL. You may apply URL transformations to our photos; these URL transformations are documented here.
  • original_height (integer): The original height of the photo in pixels.
  • original_width (integer): The original width of the photo in pixels.
  • size (integer): The original size of the photo in bytes.
  • source (string): Possible values include: SinglePlatform or Mobile. SinglePlatform indicates the photo was uploaded by a merchant via our web portal. Mobile indicates the photo was uploaded by a merchant via a mobile device.
  • main_image (boolean): Indicates if the merchant has marked this photo as their main image. There will only be one main image per location.
  • items (array): An array of numeric menu item IDs to which this photo has been tagged.

Sample Requests

Fetch a single location
GET /locations/island-prime/
{
   "data" : {
      "updated" : "2014-03-31T14:28:42",
      "published_at" : "2013-09-06T12:14:53",
      "is_owner_verified" : true,
      "out_of_business" : false,
      "phone" : "619-298-6802",
      "email" : "info@dinecrg.com",
      "location" : {
         "postal_code" : "92101",
         "directions" : "Across from the San Diego International Airport (Terminal 1).  Next to the Sunroad Marina.",
         "country" : "US",
         "neighborhood" : "Harbor Island",
         "state" : "CA",
         "longitude" : -117.19511,
         "latitude" : 32.72495,
         "cross_street" : "N Harbor Drive",
         "city" : "San Diego",
         "address1" : "880 Harbor Island Dr",
         "address2" : "Test Suit"
      },
      "foreign_ids" : {
         "yelp" : "sNhSsshDp5fuIhjl99tfng",
         "foursquare" : "48331810f964a520e24f1fe3"
      },
      "hours" : {
         "Wednesday" : [
            {
               "closing" : "09:00pm",
               "opening" : "11:30am",
               "description" : ""
            }
         ],
         "Saturday" : [
            {
               "description" : "",
               "opening" : "11:30am",
               "closing" : "10:00pm"
            }
         ],
         "Sunday" : [
            {
               "closing" : "09:30pm",
               "description" : "",
               "opening" : "11:30am"
            }
         ],
         "Monday" : [
            {
               "closing" : "09:00pm",
               "description" : "",
               "opening" : "11:30am"
            }
         ],
         "Tuesday" : [
            {
               "description" : "",
               "opening" : "11:30am",
               "closing" : "09:00pm"
            }
         ],
         "Thursday" : [
            {
               "opening" : "11:30am",
               "description" : "",
               "closing" : "09:00pm"
            }
         ],
         "Friday" : [
            {
               "closing" : "10:00pm",
               "opening" : "11:30am",
               "description" : ""
            }
         ]
      },
      "created" : "2011-12-01T00:00:00",
      "location_id" : "island-prime",
      "description" : "Resting on stilts atop San Diego Bay overlooking the city skyline and Coronado, there",
      "name" : "Island Prime",
      "website" : "http://www.islandprime.com/",
      "attributes" : {
         "delivery" : true,
         "alcohol" : "Full Bar",
         "cuisine" : [
            "American - Contemporary",
            "American - Traditional",
            "Seafood",
            "Steakhouse"
         ],
         "wheelchair_access" : true,
         "drive_thru" : true,
         "reservations" : true,
         "dine_in" : true,
         "catering" : true,
         "meals_served" : [
            "Lunch",
            "Dinner"
         ],
         "payment_types_accepted" : [
            "All Major Cards"
         ],
         "take_out" : true,
         "price_rating" : "3",
         "average_price" : "12"
      },
      "time_zone" : "PST",
      "business_type" : "Restaurant",
      "is_published" : true,
      "sp_photos" : true
   },
   "code" : 200
}
Fetch all locations updated since a particular date
GET /locations/updated_since/date=2012-01-01&limit=3
{
   "code" : 200,
   "data" : {
      "results" : [
         {
            "hours" : {
               "Wednesday" : [
                  {
                     "opening" : "09:00am",
                     "description" : "",
                     "closing" : "06:00pm"
                  }
               ],
               "Thursday" : [
                  {
                     "closing" : "05:00pm",
                     "description" : "",
                     "opening" : "09:00am"
                  }
               ],
               "Saturday" : [
                  {
                     "description" : "",
                     "closing" : "closed",
                     "opening" : "closed"
                  }
               ],
               "Monday" : [
                  {
                     "opening" : "09:00am",
                     "closing" : "05:00pm",
                     "description" : ""
                  }
               ],
               "Sunday" : [
                  {
                     "closing" : "closed",
                     "description" : "",
                     "opening" : "closed"
                  }
               ],
               "Friday" : [
                  {
                     "opening" : "09:00am",
                     "description" : "",
                     "closing" : "05:00pm"
                  }
               ],
               "Tuesday" : [
                  {
                     "description" : "",
                     "closing" : "05:00pm",
                     "opening" : "09:00am"
                  }
               ],
               "holiday_schedule" : [
                  "Closed Christmas Day\r\nClosed New Year's Day\r\nClosed on Labor Day\r\nClosed on Memorial Day\r\nClosed on Thanksgiving and the day following Thanksgiving"
               ]
            },
            "is_published" : true,
            "published_at" : "2013-09-06 12:13:47.408897",
            "foreign_ids" : {
               "yelp" : "fw71vSEdGCehdB61CwgqhA",
               "foursquare" : "4d572d68cff7721ed570bff5"
            },
            "time_zone" : "PST",
            "updated" : "2012-04-23T17:23:46.000000Z-0400",
            "name" : "GT Recording",
            "business_type" : "Business & Professional Services",
            "created" : "2012-04-06T10:36:00.000000Z-0400",
            "hasPhotos" : false,
            "description" : "GT Recording is a Seattle based company involved in the audio industry for over 30 years. We closely follow the
changes in technology, understanding old formats as well as cutting edge digital technologies, and we are involved in all phases of recording,
duplication, restoration, preservation and distribution. We provide services for both individuals and organizations across the nation and
worldwide. Experienced problem solvers with attention to integrity and detail, our dedicated seasoned in house technicians utilize and engineer
top quality processes. Our goal is to make you a lifelong customer!",
            "attributes" : {
               "wheelchair_access" : "",
               "average_price" : "None"
            },
            "out_of_business" : false,
            "is_owner_verified" : true,
            "phone" : "",
            "location_id" : "gt-recording",
            "website" : "http://gtrecording.com/",
            "has_photos" : true,
            "location" : {
               "country" : "US",
               "longitude" : -122.34453,
               "postal_code" : "98103",
               "latitude" : 47.70107,
               "address1" : "9921 Aurora Ave N",
               "cross_street" : "",
               "city" : "Seattle",
               "state" : "WA",
               "directions" : "",
               "address2" : "",
               "neighborhood" : "Greenwood, Oaktree"
            },
            "email" : ""
         },
         {
            "attributes" : {
               "wheelchair_access" : true,
               "average_price" : "2000"
            },
            "out_of_business" : false,
            "hasPhotos" : false,
            "description" : "",
            "location_id" : "robbins-law-office",
            "is_owner_verified" : true,
            "phone" : "",
            "has_photos" : true,
            "website" : "http://lawyerinpuyallup.com/",
            "email" : "cmrobbins@qwest.net",
            "location" : {
               "longitude" : -122.29293,
               "country" : "US",
               "latitude" : 47.19297,
               "postal_code" : "98372",
               "address1" : "122 E Stewart Ave",
               "cross_street" : "",
               "city" : "Puyallup",
               "state" : "WA",
               "directions" : "",
               "neighborhood" : "",
               "address2" : ""
            },
            "hours" : {
               "Thursday" : [
                  {
                     "opening" : "09:00am",
                     "closing" : "06:00pm",
                     "description" : ""
                  }
               ],
               "Tuesday" : [
                  {
                     "opening" : "09:00am",
                     "closing" : "06:00pm",
                     "description" : ""
                  }
               ],
               "Friday" : [
                  {
                     "closing" : "06:00pm",
                     "description" : "",
                     "opening" : "09:00am"
                  }
               ],
               "Saturday" : [
                  {
                     "closing" : "closed",
                     "description" : "",
                     "opening" : "closed"
                  }
               ],
               "Monday" : [
                  {
                     "description" : "",
                     "closing" : "06:00pm",
                     "opening" : "09:00am"
                  }
               ],
               "Wednesday" : [
                  {
                     "description" : "",
                     "closing" : "06:00pm",
                     "opening" : "09:00am"
                  }
               ],
               "Sunday" : [
                  {
                     "description" : "",
                     "closing" : "closed",
                     "opening" : "closed"
                  }
               ]
            },
            "foreign_ids" : {
               "foursquare" : "4f96b5257b0c59c3dcd9c842",
               "yelp" : "zXTZ-ysNxkpirnVnMKiZ5w"
            },
            "published_at" : "2013-09-06 12:13:45.962863",
            "is_published" : true,
            "created" : "2012-03-19T13:45:39.000000Z-0400",
            "name" : "Robbins Law Office",
            "business_type" : "Legal & Financial Services",
            "updated" : "2012-05-29T11:13:16.000000Z-0400",
            "time_zone" : ""
         },
         {
            "location" : {
               "address2" : "",
               "neighborhood" : "",
               "directions" : "",
               "state" : "IN",
               "city" : "Kokomo",
               "address1" : "1200 E Firmin St",
               "cross_street" : "",
               "postal_code" : "46902",
               "latitude" : 40.46801,
               "country" : "US",
               "longitude" : -86.11673
            },
            "email" : "",
            "has_photos" : true,
            "website" : "http://bmwinvestproperties.com/default.aspx",
            "is_owner_verified" : true,
            "phone" : "",
            "location_id" : "bmw-properties",
            "description" : "Our mission is to be a full real estate investment company who specializes in helping people solve whatever
financial challenges they may have so they may take back control of their lives, finding investment opportunities that offer a higher return
on an investors money, and to assist anyone deserving to become a homeowner, the chance to be one by providing affordable and safe housing
to the public.\r\n  \r\n\r\nLet us be able to put our knowledge to work in finding the right solution that is tailored for your needs.  We enjoy
helping people and are not to simply gain on other people's challenges or misfortunes.  In fact if we can not create a WIN-WIN solution where
everyone benefits and is satisfied then we will walk away from the deal.\r\n \r\nBMW Investment Properties LLC takes great pride in our
honesty, directness, and straightforwardness when offering options, possibilities, and solutions.",
            "hasPhotos" : false,
            "attributes" : {
               "wheelchair_access" : true
            },
            "out_of_business" : false,
            "time_zone" : "",
            "updated" : "2012-07-02T13:08:45.000000Z-0400",
            "business_type" : "Non Food & Beverage Retail",
            "name" : "Bmw Properties",
            "created" : "2012-03-22T14:29:57.000000Z-0400",
            "is_published" : true,
            "published_at" : "2013-09-06 12:13:45.958872",
            "foreign_ids" : {
               "foursquare" : "4f95bc17754af8efd41a7704",
               "yelp" : "ypV03hS8jFNrrnkVEWLfSQ"
            },
            "hours" : {}
         }
      ],
      "next" : "http://publishing-api.singleplatform.com/locations/updated_since?date=2012-11-16T18:34:04.000000Z-0500&limit=11"
   }
}
Fetch all product lists for a given location
GET /locations/island-prime/menus/
{
   "data" : [
      {
         "attribution_image" : "http://a.singleplatform.com/sp/island-prime/provided_by_2.png",
         "location_id" : "island-prime",
         "footnote" : "",
         "currency" : "USD",
         "description" : "",
         "sections" : [
            {
               "items" : [
                  {
                     "additions" : [],
                     "id" : 25765840,
                     "order_num" : 0,
                     "name" : "Island Prime's Lobster Bisque",
                     "photos" : [],
                     "description" : "sherry, cream & lobster",
                     "attributes" : {},
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "prices" : {
                              "min" : 12,
                              "max" : 13
                           },
                           "order_num" : 0,
                           "name" : "",
                           "unit" : ""
                        }
                     ]
                  },
                  {
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "prices" : {
                              "max" : 18,
                              "min" : 18
                           },
                           "name" : "",
                           "order_num" : 0,
                           "unit" : ""
                        }
                     ],
                     "attributes" : {},
                     "description" : "blue crab salad, avocado, \npapaya-mango salsa, taro chips & caviar",
                     "photos" : [
                        {
                           "title" : "Seared Ahi Stack",
                           "type" : "Product",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1.jpg",
                           "source" : "singleplatform",
                           "photo_id" : "a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1"
                        }
                     ],
                     "name" : "Seared Ahi Stack",
                     "order_num" : 1,
                     "id" : 25765874,
                     "additions" : []
                  }
               ],
               "order_num" : 0,
               "name" : "Appetizers From The Sea",
               "description" : "",
               "id" : 3497452
            },
            {
               "items" : [
                  {
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "order_num" : 0,
                           "name" : "8oz",
                           "unit" : "",
                           "prices" : {
                              "min" : 36,
                              "max" : 36
                           }
                        },
                        {
                           "prices" : {
                              "min" : 45,
                              "max" : 45
                           },
                           "unit" : "",
                           "order_num" : 0,
                           "name" : "12oz",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           }
                        }
                     ],
                     "description" : "",
                     "attributes" : {},
                     "photos" : [],
                     "additions" : [],
                     "name" : "\"CAB\" Center Cut Filet Mignon",
                     "order_num" : 0,
                     "id" : 25765950
                  },
                  {
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "unit" : "",
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "max" : 45,
                              "min" : 45
                           }
                        }
                     ],
                     "attributes" : {},
                     "description" : "16oz",
                     "photos" : [],
                     "additions" : [],
                     "id" : 25765961,
                     "order_num" : 1,
                     "name" : "\"CAB\" Center Cut New York"
                  }
               ],
               "description" : "Our Steaks Are Hand Selected & Cut To Chef Deborah's Specifications",
               "name" : "Island Prime Artisan Steaks",
               "order_num" : 1,
               "id" : 3497473
            },
            {
               "items" : [
                  {
                     "description" : "seabeans, roasted pineapple salsa, yuzu beurre blanc",
                     "attributes" : {},
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "unit" : "",
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "max" : 32,
                              "min" : 32
                           }
                        }
                     ],
                     "additions" : [],
                     "name" : "Macadamia Crusted Seabass",
                     "order_num" : 0,
                     "id" : 25766096,
                     "photos" : []
                  },
                  {
                     "attributes" : {},
                     "description" : "black linguini, cucumber salsa, dill moleta & chipotle cream",
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "unit" : "",
                           "prices" : {
                              "min" : 32,
                              "max" : 32
                           }
                        }
                     ],
                     "additions" : [],
                     "id" : 25766102,
                     "name" : "Indigo Grill's Cedar Plank Salmon",
                     "order_num" : 1,
                     "photos" : [
                        {
                           "title" : "Indigo Grill's Cedar Plank Salmon",
                           "type" : "unclassified",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/0cec0bda6bcf6cd598e5a98856decf0473e1040c.jpg",
                           "source" : "singleplatform",
                           "photo_id" : "0cec0bda6bcf6cd598e5a98856decf0473e1040c"
                        }
                     ]
                  },
                  {
                     "description" : "baked potato & brown butter broccoli",
                     "attributes" : {},
                     "choices" : [
                        {
                           "name" : "",
                           "order_num" : 0,
                           "unit" : "",
                           "prices" : {
                              "min" : 48,
                              "max" : 48
                           },
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           }
                        }
                     ],
                     "additions" : [],
                     "order_num" : 2,
                     "name" : "1lb Alaskan King Crab Legs",
                     "id" : 25766162,
                     "photos" : []
                  }
               ],
               "id" : 3497500,
               "order_num" : 2,
               "name" : "Deborah's Compositions",
               "description" : ""
            }
         ],
         "attribution_image_link" : "http://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "secure_attribution_image_link" : "https://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "updated" : "2014-03-31T14:28:42",
         "secure_attribution_image" : "https://as.singleplatform.com/sp/island-prime/provided_by_2.png",
         "id" : 617618,
         "created" : "2012-08-23T18:03:04",
         "order_num" : 0,
         "name" : "Island Prime",
         "menu_type" : "Menu"
      },
      {
         "updated" : "2013-11-23T17:50:06",
         "secure_attribution_image" : "https://as.singleplatform.com/sp/island-prime/provided_by_2.png",
         "created" : "2013-11-23T17:50:06",
         "name" : "Dessert",
         "order_num" : 5,
         "id" : 935054,
         "menu_type" : "Menu",
         "attribution_image" : "http://a.singleplatform.com/sp/island-prime/provided_by_2.png",
         "location_id" : "island-prime",
         "currency" : "USD",
         "description" : "",
         "footnote" : "",
         "secure_attribution_image_link" : "https://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "attribution_image_link" : "http://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "sections" : [
            {
               "items" : [
                  {
                     "photos" : [],
                     "additions" : [],
                     "order_num" : 0,
                     "name" : "Potted Brownie Banana Split",
                     "id" : 38071826,
                     "choices" : [
                        {
                           "unit" : "",
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "max" : 10,
                              "min" : 10
                           },
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           }
                        }
                     ],
                     "description" : "homemade peanut butter ice cream over a warm brownie with butterscotch fudge & bruleed bananas",
                     "attributes" : {}
                  },
                  {
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "unit" : "",
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "max" : 10,
                              "min" : 10
                           }
                        }
                     ],
                     "description" : "rich lime custard baked in a graham cracker crust, finished with meringue & pomegranate coulis",
                     "attributes" : {},
                     "photos" : [
                        {
                           "title" : "Key Lime Pie",
                           "type" : "unclassified",
                           "source" : "singleplatform",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/e8adb3eebbdfd228adddde03d20eac16cda3b253.jpg",
                           "photo_id" : "e8adb3eebbdfd228adddde03d20eac16cda3b253"
                        }
                     ],
                     "additions" : [],
                     "order_num" : 1,
                     "name" : "Key Lime Pie",
                     "id" : 38071828
                  },
                  {
                     "additions" : [],
                     "id" : 38071832,
                     "name" : "Retro Island Prime Mud Pie",
                     "order_num" : 2,
                     "photos" : [],
                     "attributes" : {},
                     "description" : "mountains of coffee ice cream over a chocolate ganache, homemade fudge",
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "unit" : "",
                           "order_num" : 0,
                           "name" : "",
                           "prices" : {
                              "min" : 10,
                              "max" : 10
                           }
                        }
                     ]
                  },
                  {
                     "description" : "seasonal selections: raspberry white chocolate with a raspberry white chocolate cookie | apricot chai with apricot biscotti | vanilla bean with a mint sprig and icebox cookie",
                     "attributes" : {},
                     "choices" : [
                        {
                           "prices" : {
                              "min" : 10,
                              "max" : 10
                           },
                           "order_num" : 0,
                           "name" : "",
                           "unit" : "",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           }
                        }
                     ],
                     "additions" : [],
                     "name" : "Trio of Brulees",
                     "order_num" : 3,
                     "id" : 38071827,
                     "photos" : []
                  }
               ],
               "id" : 5452113,
               "order_num" : 0,
               "name" : "Desserts",
               "description" : ""
            }
         ]
      }
   ],
   "code" : 200
}
Fetch short menu for a location
GET /locations/island-prime/menus/?format=short
{
   "code" : 200,
   "data" : [
      {
         "name" : "Island Prime",
         "attribution_image_link" : "http://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "currency" : "USD",
         "secure_attribution_image" : "https://as.singleplatform.com/sp/island-prime/provided_by_2.png",
         "created" : "2012-08-23T18:03:04",
         "location_id" : "island-prime",
         "description" : "",
         "order_num" : 0,
         "attribution_image" : "http://a.singleplatform.com/sp/island-prime/provided_by_2.png",
         "footnote" : "",
         "id" : 617618,
         "menu_type" : "Menu",
         "updated" : "2014-03-31T14:28:42",
         "secure_attribution_image_link" : "https://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "sections" : [
            {
               "items" : [
                  {
                     "description" : "sherry, cream & lobster",
                     "order_num" : 0,
                     "attributes" : {},
                     "name" : "Island Prime's Lobster Bisque",
                     "choices" : [
                        {
                           "unit" : "",
                           "prices" : {
                              "min" : 12,
                              "max" : 13
                           },
                           "order_num" : 0,
                           "name" : "",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           }
                        }
                     ],
                     "id" : 25765840,
                     "photos" : [],
                     "additions" : []
                  },
                  {
                     "additions" : [],
                     "id" : 25765874,
                     "photos" : [
                        {
                           "title" : "Seared Ahi Stack",
                           "source" : "singleplatform",
                           "type" : "Product",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1.jpg",
                           "photo_id" : "a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1"
                        }
                     ],
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "min" : 18,
                              "max" : 18
                           },
                           "unit" : ""
                        }
                     ],
                     "name" : "Seared Ahi Stack",
                     "attributes" : {},
                     "order_num" : 1,
                     "description" : "blue crab salad, avocado, \npapaya-mango salsa, taro chips & caviar"
                  }
               ],
               "order_num" : 0,
               "description" : "",
               "name" : "Appetizers From The Sea",
               "id" : 3497452
            },
            {
               "items" : [
                  {
                     "order_num" : 0,
                     "description" : "",
                     "attributes" : {},
                     "name" : "\"CAB\" Center Cut Filet Mignon",
                     "choices" : [
                        {
                           "name" : "8oz",
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "prices" : {
                              "max" : 36,
                              "min" : 36
                           },
                           "unit" : "",
                           "order_num" : 0
                        },
                        {
                           "name" : "12oz",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "prices" : {
                              "min" : 45,
                              "max" : 45
                           },
                           "unit" : "",
                           "order_num" : 0
                        }
                     ],
                     "additions" : [],
                     "id" : 25765950,
                     "photos" : []
                  },
                  {
                     "photos" : [],
                     "id" : 25765961,
                     "additions" : [],
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "max" : 45,
                              "min" : 45
                           },
                           "unit" : ""
                        }
                     ],
                     "name" : "\"CAB\" Center Cut New York",
                     "attributes" : {},
                     "description" : "16oz",
                     "order_num" : 1
                  }
               ],
               "description" : "Our Steaks Are Hand Selected & Cut To Chef Deborah's Specifications",
               "order_num" : 1,
               "name" : "Island Prime Artisan Steaks",
               "id" : 3497473
            },
            {
               "id" : 3497500,
               "name" : "Deborah's Compositions",
               "order_num" : 2,
               "description" : "",
               "items" : [
                  {
                     "choices" : [
                        {
                           "name" : "",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "prices" : {
                              "min" : 32,
                              "max" : 32
                           },
                           "unit" : "",
                           "order_num" : 0
                        }
                     ],
                     "additions" : [],
                     "id" : 25766096,
                     "photos" : [],
                     "order_num" : 0,
                     "description" : "seabeans, roasted pineapple salsa, yuzu beurre blanc",
                     "attributes" : {},
                     "name" : "Macadamia Crusted Seabass"
                  },
                  {
                     "id" : 25766102,
                     "photos" : [
                        {
                           "source" : "singleplatform",
                           "type" : "unclassified",
                           "title" : "Indigo Grill's Cedar Plank Salmon",
                           "photo_id" : "0cec0bda6bcf6cd598e5a98856decf0473e1040c",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/0cec0bda6bcf6cd598e5a98856decf0473e1040c.jpg"
                        }
                     ],
                     "additions" : [],
                     "choices" : [
                        {
                           "name" : "",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "unit" : "",
                           "prices" : {
                              "max" : 32,
                              "min" : 32
                           },
                           "order_num" : 0
                        }
                     ],
                     "name" : "Indigo Grill's Cedar Plank Salmon",
                     "attributes" : {},
                     "description" : "black linguini, cucumber salsa, dill moleta & chipotle cream",
                     "order_num" : 1
                  },
                  {
                     "description" : "baked potato & brown butter broccoli",
                     "order_num" : 2,
                     "attributes" : {},
                     "name" : "1lb Alaskan King Crab Legs",
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "min" : 48,
                              "max" : 48
                           },
                           "unit" : ""
                        }
                     ],
                     "id" : 25766162,
                     "photos" : [],
                     "additions" : []
                  }
               ]
            }
         ]
      },
      {
         "sections" : [
            {
               "name" : "Desserts",
               "id" : 5452113,
               "items" : [
                  {
                     "additions" : [],
                     "id" : 38071826,
                     "photos" : [],
                     "choices" : [
                        {
                           "order_num" : 0,
                           "prices" : {
                              "max" : 10,
                              "min" : 10
                           },
                           "unit" : "",
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "name" : ""
                        }
                     ],
                     "attributes" : {},
                     "name" : "Potted Brownie Banana Split",
                     "order_num" : 0,
                     "description" : "homemade peanut butter ice cream over a warm brownie with butterscotch fudge & bruleed bananas"
                  },
                  {
                     "description" : "rich lime custard baked in a graham cracker crust, finished with meringue & pomegranate coulis",
                     "order_num" : 1,
                     "name" : "Key Lime Pie",
                     "attributes" : {},
                     "choices" : [
                        {
                           "calories" : {
                              "min" : "",
                              "max" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "unit" : "",
                           "prices" : {
                              "min" : 10,
                              "max" : 10
                           }
                        }
                     ],
                     "photos" : [
                        {
                           "photo_id" : "e8adb3eebbdfd228adddde03d20eac16cda3b253",
                           "url" : "https://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/e8adb3eebbdfd228adddde03d20eac16cda3b253.jpg",
                           "title" : "Key Lime Pie",
                           "source" : "singleplatform",
                           "type" : "unclassified"
                        }
                     ],
                     "id" : 38071828,
                     "additions" : []
                  },
                  {
                     "photos" : [],
                     "id" : 38071832,
                     "additions" : [],
                     "choices" : [
                        {
                           "order_num" : 0,
                           "prices" : {
                              "min" : 10,
                              "max" : 10
                           },
                           "unit" : "",
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "name" : ""
                        }
                     ],
                     "attributes" : {},
                     "name" : "Retro Island Prime Mud Pie",
                     "description" : "mountains of coffee ice cream over a chocolate ganache, homemade fudge",
                     "order_num" : 2
                  },
                  {
                     "choices" : [
                        {
                           "calories" : {
                              "max" : "",
                              "min" : ""
                           },
                           "name" : "",
                           "order_num" : 0,
                           "prices" : {
                              "min" : 10,
                              "max" : 10
                           },
                           "unit" : ""
                        }
                     ],
                     "photos" : [],
                     "id" : 38071827,
                     "additions" : [],
                     "description" : "seasonal selections: raspberry white chocolate with a raspberry white chocolate cookie | apricot chai
with apricot biscotti | vanilla bean with a mint sprig and icebox cookie",
                     "order_num" : 3,
                     "attributes" : {},
                     "name" : "Trio of Brulees"
                  }
               ],
               "order_num" : 0,
               "description" : ""
            }
         ],
         "secure_attribution_image_link" : "https://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "updated" : "2013-11-23T17:50:06",
         "attribution_image" : "http://a.singleplatform.com/sp/island-prime/provided_by_2.png",
         "menu_type" : "Menu",
         "id" : 935054,
         "footnote" : "",
         "secure_attribution_image" : "https://as.singleplatform.com/sp/island-prime/provided_by_2.png",
         "order_num" : 5,
         "created" : "2013-11-23T17:50:06",
         "description" : "",
         "location_id" : "island-prime",
         "attribution_image_link" : "http://www.singleplatform.com/partner-lp?ref=sp&sp_channel=viral&sp_source=publisher&sp_campaign=sp",
         "name" : "Dessert",
         "currency" : "USD"
      }
   ]
}
Fetch photos for a given location
GET /locations/island-prime/photos/
{
   "code" : 200,
   "data" : [
      {
         "size" : 68727,
         "url" : "http://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/c_fit/e8adb3eebbdfd228adddde03d20eac16cda3b253.jpg",
         "items" : [
            38071828
         ],
         "main_image" : false,
         "type" : "unclassified",
         "photo_id" : "e8adb3eebbdfd228adddde03d20eac16cda3b253",
         "title" : "Key Lime Pie",
         "original_height" : 672,
         "location_id" : "island-prime",
         "source" : "singleplatform",
         "original_width" : 1000
      },
      {
         "main_image" : false,
         "items" : [
            25766102
         ],
         "url" : "http://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/c_fit/0cec0bda6bcf6cd598e5a98856decf0473e1040c.jpg",
         "size" : 74119,
         "location_id" : "island-prime",
         "source" : "singleplatform",
         "original_width" : 1000,
         "title" : "Indigo Grill's Cedar Plank Salmon",
         "original_height" : 667,
         "photo_id" : "0cec0bda6bcf6cd598e5a98856decf0473e1040c",
         "type" : "unclassified"
      },
      {
         "size" : 71897,
         "url" : "http://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/c_fit/a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1.jpg",
         "main_image" : false,
         "items" : [
            25765874
         ],
         "photo_id" : "a3b8de0f48c57ea83c252c7e34f5f3cef919f2f1",
         "type" : "Product",
         "source" : "singleplatform",
         "location_id" : "island-prime",
         "original_width" : 682,
         "title" : "Seared Ahi Stack",
         "original_height" : 960
      },
      {
         "url" : "http://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/c_fit/e07ae758f89643623eb485192b76e3caba119566.jpg",
         "size" : 60647,
         "main_image" : false,
         "items" : [],
         "photo_id" : "e07ae758f89643623eb485192b76e3caba119566",
         "type" : "Product",
         "original_width" : 730,
         "source" : "singleplatform",
         "location_id" : "island-prime",
         "title" : "yt",
         "original_height" : 960
      },
      {
         "source" : "singleplatform",
         "original_width" : 960,
         "location_id" : "island-prime",
         "title" : "y7",
         "original_height" : 672,
         "photo_id" : "a27ca88722438dd0952f826c07867f4eda8f0b3c",
         "type" : "Exterior",
         "main_image" : true,
         "items" : [],
         "url" : "http://d3lawkbdj6aabd.cloudfront.net/singleplatform/image/upload/c_fit/a27ca88722438dd0952f826c07867f4eda8f0b3c.jpg",
         "size" : 145895
      }
   ]
}