example-data.com

restaurants / #1

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/1"
)
restaurant = res.json()
{
  "id": 1,
  "name": "O'Hara and Sons",
  "slug": "o-hara-and-sons-1",
  "cuisine": "mediterranean",
  "priceRange": "$",
  "rating": 4.4,
  "ratingCount": 2759,
  "countryAlpha2": "NZ",
  "city": "New Eloisaboro",
  "neighborhood": "Hamilton County",
  "address": "96634 Ursula Forks",
  "phone": "(668) 959-4852",
  "website": "https://o-hara-and-sons-1.example.com",
  "hasDelivery": false,
  "isOpen": false,
  "latitude": 24.816431,
  "longitude": -126.109296,
  "createdAt": "2025-11-16T06:33:21.422Z",
  "updatedAt": "2025-11-16T06:33:21.422Z"
}
Draftbit