example-data.com
Menu
Browse docs and collections

Overview

restaurants / #82

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 82,
  "name": "Rogahn - Kreiger",
  "slug": "rogahn-kreiger-82",
  "cuisine": "thai",
  "priceRange": "$$$$",
  "rating": 4.6,
  "ratingCount": 470,
  "countryAlpha2": "BE",
  "city": "South Cathrynside",
  "neighborhood": "Clay County",
  "address": "26683 Peggie Streets",
  "phone": "+1 202-555-0181 ext 1",
  "website": "https://rogahn-kreiger-82.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": -1.937047,
  "longitude": 126.549747,
  "createdAt": "2026-03-07T22:09:58.839Z",
  "updatedAt": "2026-03-07T22:09:58.839Z"
}