example-data.com
Menu
Browse docs and collections

Overview

restaurants / #61

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 61,
  "name": "Gleichner - Kunde",
  "slug": "gleichner-kunde-61",
  "cuisine": "french",
  "priceRange": "$",
  "rating": 4.9,
  "ratingCount": 2791,
  "countryAlpha2": "NG",
  "city": "New Itzel",
  "neighborhood": "County Antrim",
  "address": "370 Nathen Crossroad",
  "phone": "+1 202-555-0160 ext 1",
  "website": "https://gleichner-kunde-61.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 33.07854,
  "longitude": 96.896555,
  "createdAt": "2025-06-26T07:32:27.420Z",
  "updatedAt": "2025-06-26T07:32:27.420Z"
}