example-data.com
Menu
Browse docs and collections

places

places

Page 5 of 7.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/places?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/places?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/places";

const res = await fetch(
  "https://example-data.com/api/v1/places?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Place>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/places",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "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"
    },
    {
      "id": 98,
      "name": "Market Square of Canada",
      "slug": "market-square-of-canada-98",
      "kind": "shopping",
      "city": "Ottawa",
      "countryAlpha2": "CA",
      "latitude": 41.845397,
      "longitude": -87.866883,
      "rating": 4.6,
      "ratingCount": 3021,
      "description": "Crapula valetudo amoveo usus tui cras. Corona terra utpote approbo cibus valeo ars ver centum decretum. Ante versus suasoria recusandae tenax vetus aspicio.",
      "imageUrl": "https://picsum.photos/seed/place-98/1200/800",
      "createdAt": "2024-09-01T13:00:13.650Z"
    },
    {
      "id": 99,
      "name": "Crescent Bay of Canada",
      "slug": "crescent-bay-of-canada-99",
      "kind": "beach",
      "city": "Ottawa",
      "countryAlpha2": "CA",
      "latitude": 60.782586,
      "longitude": -157.275288,
      "rating": 4.4,
      "ratingCount": 4057,
      "description": "Vigor spargo spes urbanus demens utroque modi officia solio. Arto vero via decretum suadeo. Vinco tristis culpo deficio volup stella.",
      "imageUrl": "https://picsum.photos/seed/place-99/1200/800",
      "createdAt": "2025-06-01T04:40:56.713Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 150,
    "totalPages": 7
  },
  "links": {
    "self": "/api/v1/places?page=5&limit=24",
    "first": "/api/v1/places?page=1&limit=24",
    "last": "/api/v1/places?page=7&limit=24",
    "next": "/api/v1/places?page=6&limit=24",
    "prev": "/api/v1/places?page=4&limit=24"
  }
}