example-data.com
Menu
Browse docs and collections

Overview

places / #127

Cathedral of Italy

Cathedral of Italy

landmark · Rome · ★ 3.6 (3674)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 127,
  "name": "Cathedral of Italy",
  "slug": "cathedral-of-italy-127",
  "kind": "landmark",
  "city": "Rome",
  "countryAlpha2": "IT",
  "latitude": -35.087868,
  "longitude": -8.484569,
  "rating": 3.6,
  "ratingCount": 3674,
  "description": "Comprehendo qui laborum ustulo sulum cenaculum. Conservo degero tripudio suggero sordeo vestrum atrox. Attero quia cohaero vero amplus somnus decor.",
  "imageUrl": "https://picsum.photos/seed/place-127/1200/800",
  "createdAt": "2025-02-17T20:14:01.967Z"
}