example-data.com
Menu
Browse docs and collections

Overview

restaurants / #88

Leffler, Dibbert and Yost

chinese · Boehmcester · $$$ · ★ 4.5 (997)

554 Remington Plain

Phone
+1 202-555-0187 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 88,
  "name": "Leffler, Dibbert and Yost",
  "slug": "leffler-dibbert-and-yost-88",
  "cuisine": "chinese",
  "priceRange": "$$$",
  "rating": 4.5,
  "ratingCount": 997,
  "countryAlpha2": "ET",
  "city": "Boehmcester",
  "neighborhood": "Strathclyde",
  "address": "554 Remington Plain",
  "phone": "+1 202-555-0187 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 36.511375,
  "longitude": 33.531385,
  "createdAt": "2025-01-18T22:09:30.088Z",
  "updatedAt": "2025-01-18T22:09:30.088Z"
}