Locations .: Get Details

API Reference / v14

Get Location Details

This endpoint returns details about a visible location. Requesting an invisible location will return HTTP 404.

Request Endpoint

GET /v14/locations/:id

No Authorization Required

cURL Example

curl -X GET -H Accept:application/json -H Content-Type:application/json https://api.thelevelup.com/v14/locations/123

Example Response

HTTP/1.1 200 OK

{
  "location": {
    "categories": [1, 2, 3],
    "extended_address": "Suite 101",
    "facebook_url": "http://facebook.com/pizza",
    "hours": "...",
    "id": 123,
    "latitude": 46.08237,
    "locality": "Boston",
    "longitude": 18.23873,
    "menu_url": "http://pizza.com/menu",
    "merchant_description_html": "pizza, pizza, pizza!",
    "merchant_id": 456,
    "merchant_name": "LevelUp Cafe",
    "merchant_tip_preference": "expected",
    "newsletter_url": null,
    "opentable_url": "http://opentable.com/pizza",
    "postal_code": "02114",
    "region": "MA",
    "shown": true,
    "street_address": "1 Congress St",
    "twitter_url": "http://twitter.com/pizza",
    "updated_at": "2014-01-01T00:00:00-04:00",
    "yelp_url": null
  }
}

Errors

No live location matches the given ID.

HTTP/1.1 404 Not Found

(No response body.)