example-data.com
Menu
Browse docs and collections

Overview

places / #120

Designer District of Netherlands

Designer District of Netherlands

shopping · Amsterdam · ★ 3.1 (1842)

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/places/120" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/places/120"
);
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/120"
);
const place = (await res.json()) as Place;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/places/120"
)
place = res.json()

Response

{
  "id": 120,
  "name": "Designer District of Netherlands",
  "slug": "designer-district-of-netherlands-120",
  "kind": "shopping",
  "city": "Amsterdam",
  "countryAlpha2": "NL",
  "latitude": -44.052966,
  "longitude": -26.298224,
  "rating": 3.1,
  "ratingCount": 1842,
  "description": "Molestiae viduo viridis conservo. Paens abscido vergo testimonium vulgivagus. Claustrum vado considero callide.",
  "imageUrl": "https://picsum.photos/seed/place-120/1200/800",
  "createdAt": "2022-12-24T11:48:17.383Z"
}