example-data.com
Menu
Browse docs and collections

Overview

restaurants / #40

Hudson - Lueilwitz

vietnamese · South Lesliefurt · $ · ★ 4.9 (306)

639 Uriel Island

Phone
+1 202-555-0139 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 40,
  "name": "Hudson - Lueilwitz",
  "slug": "hudson-lueilwitz-40",
  "cuisine": "vietnamese",
  "priceRange": "$",
  "rating": 4.9,
  "ratingCount": 306,
  "countryAlpha2": "IL",
  "city": "South Lesliefurt",
  "neighborhood": "Avon",
  "address": "639 Uriel Island",
  "phone": "+1 202-555-0139 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 23.896891,
  "longitude": 71.939266,
  "createdAt": "2025-05-23T09:09:22.530Z",
  "updatedAt": "2025-05-23T09:09:22.530Z"
}