example-data.com
Menu
Browse docs and collections

Overview

restaurants / #75

Glover, Hoppe and Quigley

italian · Reynoldscester · $ · ★ 3.8 (707)

26196 Harvey Hills

Phone
+1 202-555-0174 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 75,
  "name": "Glover, Hoppe and Quigley",
  "slug": "glover-hoppe-and-quigley-75",
  "cuisine": "italian",
  "priceRange": "$",
  "rating": 3.8,
  "ratingCount": 707,
  "countryAlpha2": "ET",
  "city": "Reynoldscester",
  "neighborhood": "Washington County",
  "address": "26196 Harvey Hills",
  "phone": "+1 202-555-0174 ext 1",
  "website": null,
  "hasDelivery": false,
  "isOpen": true,
  "latitude": -36.364666,
  "longitude": -86.207307,
  "createdAt": "2024-06-24T18:31:05.509Z",
  "updatedAt": "2024-06-24T18:31:05.509Z"
}