example-data.com
Menu
Browse docs and collections

Overview

restaurants / #56

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 56,
  "name": "Murazik - Goodwin",
  "slug": "murazik-goodwin-56",
  "cuisine": "italian",
  "priceRange": "$$$",
  "rating": 3.2,
  "ratingCount": 2289,
  "countryAlpha2": "SA",
  "city": "Haneborough",
  "neighborhood": "Cheshire",
  "address": "63703 Park View",
  "phone": "+1 202-555-0155 ext 1",
  "website": "https://murazik-goodwin-56.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 57.708975,
  "longitude": -28.014327,
  "createdAt": "2026-01-01T11:05:01.771Z",
  "updatedAt": "2026-01-01T11:05:01.771Z"
}