example-data.com
Menu
Browse docs and collections

Overview

restaurants / #29

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 29,
  "name": "Trantow - Jerde",
  "slug": "trantow-jerde-29",
  "cuisine": "thai",
  "priceRange": "$$",
  "rating": 2.7,
  "ratingCount": 830,
  "countryAlpha2": "SA",
  "city": "Zaneberg",
  "neighborhood": "South Yorkshire",
  "address": "8553 N Locust Street",
  "phone": "+1 202-555-0128 ext 1",
  "website": "https://trantow-jerde-29.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": 50.091935,
  "longitude": 105.109008,
  "createdAt": "2026-01-20T14:25:50.685Z",
  "updatedAt": "2026-01-20T14:25:50.685Z"
}