Town Hall of Singapore
other · Singapore · ★ 4.2 (3199)
places / #67
other · Singapore · ★ 4.2 (3199)
curl -sS \
"https://example-data.com/api/v1/places/67" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/places/67"
);
const place = await res.json();import type { Place } from "https://example-data.com/types/places.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/places/67"
);
const place = (await res.json()) as Place;import requests
res = requests.get(
"https://example-data.com/api/v1/places/67"
)
place = res.json() {
"id": 67,
"name": "Town Hall of Singapore",
"slug": "town-hall-of-singapore-67",
"kind": "other",
"city": "Singapore",
"countryAlpha2": "SG",
"latitude": -25.224481,
"longitude": -177.080768,
"rating": 4.2,
"ratingCount": 3199,
"description": "Beatus terreo aliquam ad. Aggredior spiculum cunae summisse audentia. Decerno commodo tantum stillicidium.",
"imageUrl": "https://picsum.photos/seed/place-67/1200/800",
"createdAt": "2022-03-30T12:43:32.600Z"
}