example-data.com
Menu
Browse docs and collections

Overview

restaurants / #50

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 50,
  "name": "Rodriguez, Nicolas and Schneider",
  "slug": "rodriguez-nicolas-and-schneider-50",
  "cuisine": "mediterranean",
  "priceRange": "$$",
  "rating": 4.9,
  "ratingCount": 257,
  "countryAlpha2": "GR",
  "city": "New Anthony",
  "neighborhood": "Scott County",
  "address": "45178 Huels Overpass",
  "phone": "+1 202-555-0149 ext 1",
  "website": "https://rodriguez-nicolas-and-schneider-50.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -42.886461,
  "longitude": -173.766201,
  "createdAt": "2026-01-04T12:56:53.873Z",
  "updatedAt": "2026-01-04T12:56:53.873Z"
}