example-data.com
Menu
Browse docs and collections

Overview

places / #113

Bean There of Ireland

Bean There of Ireland

cafe · Dublin · ★ 4.5 (2309)

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 113,
  "name": "Bean There of Ireland",
  "slug": "bean-there-of-ireland-113",
  "kind": "cafe",
  "city": "Dublin",
  "countryAlpha2": "IE",
  "latitude": 35.144019,
  "longitude": -14.358698,
  "rating": 4.5,
  "ratingCount": 2309,
  "description": "Territo desidero cito termes rem cum claustrum est conitor bardus. Crepusculum ascisco accusantium minima spiritus aliqua. Strenuus considero aiunt cresco eaque acsi.",
  "imageUrl": "https://picsum.photos/seed/place-113/1200/800",
  "createdAt": "2022-07-13T19:07:32.737Z"
}