Old Town Eats of United States
restaurant · Washington, D.C. · ★ 4.1 (3019)
Overview
places / #97
restaurant · Washington, D.C. · ★ 4.1 (3019)
Request
curl example
curl -sS \ "https://example-data.com/api/v1/places/97" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/places/97" ); 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/97"
);
const place = (await res.json()) as Place; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/places/97"
)
place = res.json() Response
{
"id": 97,
"name": "Old Town Eats of United States",
"slug": "old-town-eats-of-united-states-97",
"kind": "restaurant",
"city": "Washington, D.C.",
"countryAlpha2": "US",
"latitude": 64.997367,
"longitude": 82.781081,
"rating": 4.1,
"ratingCount": 3019,
"description": "Temperantia delectatio vobis adfectus pauper absorbeo sint. Verus cupressus temptatio denuo labore. Cupressus clementia terga.",
"imageUrl": "https://picsum.photos/seed/place-97/1200/800",
"createdAt": "2022-07-25T16:17:07.247Z"
}