example-data.com
Menu
Browse docs and collections

Overview

places / #82

The Local Table of Nigeria

The Local Table of Nigeria

restaurant · Abuja · ★ 4.5 (1275)

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/places/82"
);
const place = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/places.d.ts https://example-data.com/types/places.d.ts
import type { Place } from "./types/places";

const res = await fetch(
  "https://example-data.com/api/v1/places/82"
);
const place = (await res.json()) as Place;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/places/82"
)
place = res.json()

Response

{
  "id": 82,
  "name": "The Local Table of Nigeria",
  "slug": "the-local-table-of-nigeria-82",
  "kind": "restaurant",
  "city": "Abuja",
  "countryAlpha2": "NG",
  "latitude": 43.347133,
  "longitude": -158.712989,
  "rating": 4.5,
  "ratingCount": 1275,
  "description": "Pecus odio antepono suspendo bene comitatus rem. Temeritas tumultus defero ab. Volubilis via careo tamen damno asporto sum provident comes pariatur.",
  "imageUrl": "https://picsum.photos/seed/place-82/1200/800",
  "createdAt": "2022-06-26T11:22:51.467Z"
}