example-data.com

restaurants / #22

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/22"
)
restaurant = res.json()
{
  "id": 22,
  "name": "Mitchell, O'Kon and Kunde",
  "slug": "mitchell-o-kon-and-kunde-22",
  "cuisine": "ethiopian",
  "priceRange": "$$",
  "rating": 3.2,
  "ratingCount": 1254,
  "countryAlpha2": "ID",
  "city": "South Janelle",
  "neighborhood": "Grampian",
  "address": "1794 DuBuque Ranch",
  "phone": "(562) 364-5430",
  "website": "https://mitchell-o-kon-and-kunde-22.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -42.79146,
  "longitude": -118.05781,
  "createdAt": "2025-12-24T13:51:42.599Z",
  "updatedAt": "2025-12-24T13:51:42.599Z"
}
Draftbit