example-data.com
Menu
Browse docs and collections

Overview

places / #130

Cup & Saucer of Greece

Cup & Saucer of Greece

cafe · Athens · ★ 4.9 (1997)

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/places/130"
);
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/130"
);
const place = (await res.json()) as Place;

Python example

import requests

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

Response

{
  "id": 130,
  "name": "Cup & Saucer of Greece",
  "slug": "cup-saucer-of-greece-130",
  "kind": "cafe",
  "city": "Athens",
  "countryAlpha2": "GR",
  "latitude": -34.094437,
  "longitude": -96.964349,
  "rating": 4.9,
  "ratingCount": 1997,
  "description": "Cetera quibusdam eius corporis. Depereo admoneo eaque modi demo tripudio coaegresco defero adipisci. Ad terror cena auctor volo valens vae advoco.",
  "imageUrl": "https://picsum.photos/seed/place-130/1200/800",
  "createdAt": "2023-01-07T07:19:33.307Z"
}