GET
/
api
/
v1
/
locations
/
{locationSlugOrId}
curl -X GET https://api.cravejs.com/api/v1/locations/downtown-pizza \
  -H "X-API-Key: YOUR_API_KEY"
{
  "id": "64a7b8c9d1e2f3a4b5c6d7e8",
  "restaurantSlug": "downtown-pizza",
  "restaurantDisplayName": "Downtown Pizza Co",
  "restaurantBio": "Authentic wood-fired pizza in the heart of downtown",
  "coverPhoto": "https://example.com/images/cover-photo.jpg",
  "restaurantLogo": "https://example.com/images/logo.png",
  "addressData": {
    "street": "456 Main Street",
    "streetOptional": "Suite 100",
    "city": "San Francisco",
    "state": "CA",
    "zipCode": "94102",
    "country": "United States",
    "lat": 37.7749,
    "lng": -122.4194,
    "_id": "64a7b8c9d1e2f3a4b5c6d7e9",
    "id": "64a7b8c9d1e2f3a4b5c6d7e9"
  },
  "addressString": "456 Main Street, Suite 100, San Francisco CA 94102, United States",
  "isOrderingAllowed": true,
  "isScheduledOrderAllowed": true
}

Path Parameters

locationSlugOrId
string
required
The unique identifier or slug for the restaurant location

Playground

curl -X GET https://api.cravejs.com/api/v1/locations/downtown-pizza \
  -H "X-API-Key: YOUR_API_KEY"
{
  "id": "64a7b8c9d1e2f3a4b5c6d7e8",
  "restaurantSlug": "downtown-pizza",
  "restaurantDisplayName": "Downtown Pizza Co",
  "restaurantBio": "Authentic wood-fired pizza in the heart of downtown",
  "coverPhoto": "https://example.com/images/cover-photo.jpg",
  "restaurantLogo": "https://example.com/images/logo.png",
  "addressData": {
    "street": "456 Main Street",
    "streetOptional": "Suite 100",
    "city": "San Francisco",
    "state": "CA",
    "zipCode": "94102",
    "country": "United States",
    "lat": 37.7749,
    "lng": -122.4194,
    "_id": "64a7b8c9d1e2f3a4b5c6d7e9",
    "id": "64a7b8c9d1e2f3a4b5c6d7e9"
  },
  "addressString": "456 Main Street, Suite 100, San Francisco CA 94102, United States",
  "isOrderingAllowed": true,
  "isScheduledOrderAllowed": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

locationSlugOrId
string
required

The unique identifier or slug for the restaurant location

Response

200
application/json

Location information retrieved successfully.

The response is of type object.