Golden Sands of Thailand
beach · Bangkok · ★ 3.3 (2328)
Overview
places / #59
beach · Bangkok · ★ 3.3 (2328)
Request
curl example
curl -sS \ "https://example-data.com/api/v1/places/59" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/places/59" ); 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/59"
);
const place = (await res.json()) as Place; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/places/59"
)
place = res.json() Response
{
"id": 59,
"name": "Golden Sands of Thailand",
"slug": "golden-sands-of-thailand-59",
"kind": "beach",
"city": "Bangkok",
"countryAlpha2": "TH",
"latitude": 14.193669,
"longitude": 160.173371,
"rating": 3.3,
"ratingCount": 2328,
"description": "Totidem tripudio reprehenderit defaeco supplanto vilicus cultellus annus vilicus. Tenuis civitas vestigium admitto articulus. Tum pel astrum tricesimus desidero.",
"imageUrl": "https://picsum.photos/seed/place-59/1200/800",
"createdAt": "2024-01-25T14:07:39.772Z"
}