Old Town Square of Japan
landmark · Tokyo · ★ 4.3 (818)
Overview
places / #49
landmark · Tokyo · ★ 4.3 (818)
Request
curl example
curl -sS \ "https://example-data.com/api/v1/places/49" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/places/49" ); 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/49"
);
const place = (await res.json()) as Place; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/places/49"
)
place = res.json() Response
{
"id": 49,
"name": "Old Town Square of Japan",
"slug": "old-town-square-of-japan-49",
"kind": "landmark",
"city": "Tokyo",
"countryAlpha2": "JP",
"latitude": -49.219856,
"longitude": -90.302823,
"rating": 4.3,
"ratingCount": 818,
"description": "Creptio defetiscor ultio. Solutio sopor ventus defleo cura comedo. Coniuratio tristis possimus voluptatum.",
"imageUrl": "https://picsum.photos/seed/place-49/1200/800",
"createdAt": "2023-03-26T07:41:58.524Z"
}