example-data.com
Menu
Browse docs and collections

Overview

restaurants / #60

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/restaurants/60" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/60"
);
const restaurant = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/restaurants.d.ts https://example-data.com/types/restaurants.d.ts
import type { Restaurant } from "./types/restaurants";

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

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants/60"
)
restaurant = res.json()

Response

{
  "id": 60,
  "name": "King - Aufderhar",
  "slug": "king-aufderhar-60",
  "cuisine": "american",
  "priceRange": "$",
  "rating": 4.8,
  "ratingCount": 2218,
  "countryAlpha2": "AT",
  "city": "Barnstable Town",
  "neighborhood": "Lincoln County",
  "address": "89706 Vella Square",
  "phone": "+1 202-555-0159 ext 1",
  "website": "https://king-aufderhar-60.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": -24.951094,
  "longitude": 107.375757,
  "createdAt": "2026-01-05T10:20:12.650Z",
  "updatedAt": "2026-01-05T10:20:12.650Z"
}