Town Hall of Morocco
other · Rabat · ★ 3.6 (77)
Overview
places / #88
other · Rabat · ★ 3.6 (77)
Request
curl example
curl -sS \ "https://example-data.com/api/v1/places/88" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/places/88" ); 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/88"
);
const place = (await res.json()) as Place; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/places/88"
)
place = res.json() Response
{
"id": 88,
"name": "Town Hall of Morocco",
"slug": "town-hall-of-morocco-88",
"kind": "other",
"city": "Rabat",
"countryAlpha2": "MA",
"latitude": 55.968565,
"longitude": 91.339673,
"rating": 3.6,
"ratingCount": 77,
"description": "Crastinus alius absum. Tendo vos deleniti abutor facilis velit collum. Dolore vulariter absque spes vero ter.",
"imageUrl": "https://picsum.photos/seed/place-88/1200/800",
"createdAt": "2022-05-02T15:43:01.114Z"
}