example-data.com
Menu
Browse docs and collections

Overview

restaurants / #13

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 13,
  "name": "Greenfelder LLC",
  "slug": "greenfelder-llc-13",
  "cuisine": "chinese",
  "priceRange": "$",
  "rating": 3.2,
  "ratingCount": 2643,
  "countryAlpha2": "AE",
  "city": "Jaydentown",
  "neighborhood": "Central",
  "address": "56418 St Mary's Road",
  "phone": "+1 202-555-0112 ext 1",
  "website": "https://greenfelder-llc-13.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 3.676578,
  "longitude": -89.621484,
  "createdAt": "2026-04-18T15:55:34.683Z",
  "updatedAt": "2026-04-18T15:55:34.683Z"
}