example-data.com
Menu
Browse docs and collections

Overview

places / #44

Riverside Park of Switzerland

Riverside Park of Switzerland

park · Bern · ★ 3.1 (2622)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 44,
  "name": "Riverside Park of Switzerland",
  "slug": "riverside-park-of-switzerland-44",
  "kind": "park",
  "city": "Bern",
  "countryAlpha2": "CH",
  "latitude": -1.493046,
  "longitude": -163.038202,
  "rating": 3.1,
  "ratingCount": 2622,
  "description": "Et saepe voluptatem consuasor hic cruciamentum dolor custodia concido quas. Attollo cetera tristis cras ancilla acsi tenax. Cibus utrimque molestiae annus vilis.",
  "imageUrl": "https://picsum.photos/seed/place-44/1200/800",
  "createdAt": "2026-04-26T04:38:03.641Z"
}