example-data.com
Menu
Browse docs and collections

Overview

places / #56

Founders Monument of Indonesia

Founders Monument of Indonesia

landmark · Jakarta · ★ 4.5 (1182)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 56,
  "name": "Founders Monument of Indonesia",
  "slug": "founders-monument-of-indonesia-56",
  "kind": "landmark",
  "city": "Jakarta",
  "countryAlpha2": "ID",
  "latitude": 26.234613,
  "longitude": 68.434444,
  "rating": 4.5,
  "ratingCount": 1182,
  "description": "Nisi concido absorbeo turba textilis cohibeo. Ancilla benevolentia nulla culpo sto. Arcesso avarus vestrum.",
  "imageUrl": "https://picsum.photos/seed/place-56/1200/800",
  "createdAt": "2022-09-19T00:57:08.165Z"
}