example-data.com

restaurants / #43

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/restaurants/43" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/restaurants/43"
);
const restaurant = await res.json();
import type { Restaurant } from "https://example-data.com/types/restaurants.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/43"
);
const restaurant = (await res.json()) as Restaurant;
import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants/43"
)
restaurant = res.json()
{
  "id": 43,
  "name": "Brown - Johnson",
  "slug": "brown-johnson-43",
  "cuisine": "mexican",
  "priceRange": "$$$",
  "rating": 3.3,
  "ratingCount": 1012,
  "countryAlpha2": "CA",
  "city": "West Bernie",
  "neighborhood": "Clark County",
  "address": "87151 East Street",
  "phone": "(914) 787-6283",
  "website": "https://brown-johnson-43.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -44.909813,
  "longitude": 105.632293,
  "createdAt": "2025-03-22T16:50:06.247Z",
  "updatedAt": "2025-03-22T16:50:06.247Z"
}
Draftbit