Espresso Lane of France
cafe · Paris · ★ 3.4 (4775)
Overview
places / #21
cafe · Paris · ★ 3.4 (4775)
Request
curl example
curl -sS \ "https://example-data.com/api/v1/places/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/places/21" ); 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/21"
);
const place = (await res.json()) as Place; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/places/21"
)
place = res.json() Response
{
"id": 21,
"name": "Espresso Lane of France",
"slug": "espresso-lane-of-france-21",
"kind": "cafe",
"city": "Paris",
"countryAlpha2": "FR",
"latitude": 41.624118,
"longitude": 12.568076,
"rating": 3.4,
"ratingCount": 4775,
"description": "Adstringo vulticulus subito sordeo cenaculum cohibeo. Alius tempora argumentum tergeo crux cupiditas deludo bestia. Consuasor bonus demonstro victoria aer pel.",
"imageUrl": "https://picsum.photos/seed/place-21/1200/800",
"createdAt": "2023-10-24T10:01:41.429Z"
}