example-data.com
Menu
Browse docs and collections

Overview

places / #128

Old Town Eats of Italy

Old Town Eats of Italy

restaurant · Rome · ★ 3.7 (1447)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 128,
  "name": "Old Town Eats of Italy",
  "slug": "old-town-eats-of-italy-128",
  "kind": "restaurant",
  "city": "Rome",
  "countryAlpha2": "IT",
  "latitude": 19.498922,
  "longitude": -39.303882,
  "rating": 3.7,
  "ratingCount": 1447,
  "description": "Doloremque tot defendo ex tandem depopulo. Sunt amplitudo nesciunt aegre victoria demoror cauda adaugeo textor. Sumptus cognomen libero defetiscor.",
  "imageUrl": "https://picsum.photos/seed/place-128/1200/800",
  "createdAt": "2025-12-04T20:07:05.584Z"
}