example-data.com
Menu
Browse docs and collections

Overview

restaurants / #65

Goldner - Labadie

thai · Kylechester · $$ · ★ 3.3 (2121)

67949 Bertha Pine

Phone
+1 202-555-0164 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 65,
  "name": "Goldner - Labadie",
  "slug": "goldner-labadie-65",
  "cuisine": "thai",
  "priceRange": "$$",
  "rating": 3.3,
  "ratingCount": 2121,
  "countryAlpha2": "IS",
  "city": "Kylechester",
  "neighborhood": "Montgomery County",
  "address": "67949 Bertha Pine",
  "phone": "+1 202-555-0164 ext 1",
  "website": null,
  "hasDelivery": false,
  "isOpen": true,
  "latitude": -43.261372,
  "longitude": -163.876062,
  "createdAt": "2024-05-31T16:46:31.107Z",
  "updatedAt": "2024-05-31T16:46:31.107Z"
}