example-data.com
Menu
Browse docs and collections

Overview

places / #76

Pine Ridge Trail of Israel

Pine Ridge Trail of Israel

hiking · Jerusalem · ★ 4.4 (1037)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 76,
  "name": "Pine Ridge Trail of Israel",
  "slug": "pine-ridge-trail-of-israel-76",
  "kind": "hiking",
  "city": "Jerusalem",
  "countryAlpha2": "IL",
  "latitude": 37.891176,
  "longitude": -10.65661,
  "rating": 4.4,
  "ratingCount": 1037,
  "description": "Copia decerno demulceo. Adficio conitor solio cui carbo comes stella alienus. Cubo cotidie abutor tubineus vae quibusdam tribuo vilis excepturi.",
  "imageUrl": "https://picsum.photos/seed/place-76/1200/800",
  "createdAt": "2022-04-29T16:41:10.404Z"
}