example-data.com
Menu
Browse docs and collections

Overview

restaurants / #36

Mayert LLC

mediterranean · Darianaburgh · $$ · ★ 4.4 (230)

34690 Jean Road

Phone
+1 202-555-0135 ext 1

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 36,
  "name": "Mayert LLC",
  "slug": "mayert-llc-36",
  "cuisine": "mediterranean",
  "priceRange": "$$",
  "rating": 4.4,
  "ratingCount": 230,
  "countryAlpha2": "FI",
  "city": "Darianaburgh",
  "neighborhood": "Derbyshire",
  "address": "34690 Jean Road",
  "phone": "+1 202-555-0135 ext 1",
  "website": null,
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -37.331026,
  "longitude": -36.834183,
  "createdAt": "2024-05-30T07:39:36.839Z",
  "updatedAt": "2024-05-30T07:39:36.839Z"
}