example-data.com
Menu
Browse docs and collections

Overview

restaurants / #90

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/90"
);
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/90"
);
const restaurant = (await res.json()) as Restaurant;

Python example

import requests

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

Response

{
  "id": 90,
  "name": "Kertzmann - Boyer",
  "slug": "kertzmann-boyer-90",
  "cuisine": "thai",
  "priceRange": "$$$$",
  "rating": 4.1,
  "ratingCount": 2778,
  "countryAlpha2": "BE",
  "city": "Chicago",
  "neighborhood": "Rutland",
  "address": "6003 Depot Street",
  "phone": "+1 202-555-0189 ext 1",
  "website": "https://kertzmann-boyer-90.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 6.987102,
  "longitude": 8.399466,
  "createdAt": "2025-12-18T06:11:51.585Z",
  "updatedAt": "2025-12-18T06:11:51.585Z"
}