example-data.com

restaurants / #24

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/restaurants/24" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/restaurants/24"
);
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/24"
);
const restaurant = (await res.json()) as Restaurant;
import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants/24"
)
restaurant = res.json()
{
  "id": 24,
  "name": "Hirthe, Klein and Baumbach",
  "slug": "hirthe-klein-and-baumbach-24",
  "cuisine": "mexican",
  "priceRange": "$$",
  "rating": 4.2,
  "ratingCount": 2597,
  "countryAlpha2": "NZ",
  "city": "North Giles",
  "neighborhood": "Cornwall",
  "address": "4717 Marcia Street",
  "phone": "(975) 748-3608",
  "website": "https://hirthe-klein-and-baumbach-24.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": 43.767795,
  "longitude": -153.191783,
  "createdAt": "2025-12-02T02:46:06.385Z",
  "updatedAt": "2025-12-02T02:46:06.385Z"
}
Draftbit