example-data.com
Menu
Browse docs and collections

Overview

restaurants / #83

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 83,
  "name": "Roob - Fisher",
  "slug": "roob-fisher-83",
  "cuisine": "thai",
  "priceRange": "$",
  "rating": 3.2,
  "ratingCount": 254,
  "countryAlpha2": "MX",
  "city": "Kuhlmanshire",
  "neighborhood": "County Tyrone",
  "address": "71823 Kautzer Forge",
  "phone": "+1 202-555-0182 ext 1",
  "website": "https://roob-fisher-83.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 55.67275,
  "longitude": -8.036464,
  "createdAt": "2026-01-30T23:21:39.710Z",
  "updatedAt": "2026-01-30T23:21:39.710Z"
}