example-data.com
Menu
Browse docs and collections

Overview

restaurants / #57

Ferry LLC

thai · South Gilbertoton · $ · ★ 3.8 (763)

182 Greenway

Phone
+1 202-555-0156 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 57,
  "name": "Ferry LLC",
  "slug": "ferry-llc-57",
  "cuisine": "thai",
  "priceRange": "$",
  "rating": 3.8,
  "ratingCount": 763,
  "countryAlpha2": "AT",
  "city": "South Gilbertoton",
  "neighborhood": "Essex",
  "address": "182 Greenway",
  "phone": "+1 202-555-0156 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -39.830729,
  "longitude": -176.372226,
  "createdAt": "2025-01-08T22:20:23.861Z",
  "updatedAt": "2025-01-08T22:20:23.861Z"
}