example-data.com
Menu
Browse docs and collections

Overview

restaurants / #4

McKenzie - Toy

chinese · Hattiesburg · $$ · ★ 2.8 (2914)

87815 Manor Road

Phone
+1 202-555-0103 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 4,
  "name": "McKenzie - Toy",
  "slug": "mckenzie-toy-4",
  "cuisine": "chinese",
  "priceRange": "$$",
  "rating": 2.8,
  "ratingCount": 2914,
  "countryAlpha2": "CN",
  "city": "Hattiesburg",
  "neighborhood": "Lee County",
  "address": "87815 Manor Road",
  "phone": "+1 202-555-0103 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 7.210776,
  "longitude": 156.228382,
  "createdAt": "2025-12-01T06:18:44.347Z",
  "updatedAt": "2025-12-01T06:18:44.347Z"
}