example-data.com
Menu
Browse docs and collections

Overview

restaurants / #79

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 79,
  "name": "Howe, Kunde and Ortiz",
  "slug": "howe-kunde-and-ortiz-79",
  "cuisine": "italian",
  "priceRange": "$$$$",
  "rating": 4.9,
  "ratingCount": 2355,
  "countryAlpha2": "SE",
  "city": "Rosemead",
  "neighborhood": "Cambridgeshire",
  "address": "5615 Wood Lane",
  "phone": "+1 202-555-0178 ext 1",
  "website": "https://howe-kunde-and-ortiz-79.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -54.032912,
  "longitude": -118.539647,
  "createdAt": "2025-10-15T13:54:07.992Z",
  "updatedAt": "2025-10-15T13:54:07.992Z"
}