example-data.com

destinations

destinations

Page 4 of 4.

curl -sS \
  "https://example-data.com/api/v1/destinations?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/destinations?limit=25"
);
const { data, meta } = await res.json();
import type { Destination, ListEnvelope } from "https://example-data.com/types/destinations.d.ts";

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

res = requests.get(
    "https://example-data.com/api/v1/destinations",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 73,
      "name": "North Richland Hills",
      "slug": "north-richland-hills-73",
      "countryAlpha2": "PT",
      "description": "Explore breathtaking landscapes, ancient history, and warm hospitality.",
      "imageUrl": "https://picsum.photos/seed/dest-73/800/600",
      "popularity": 18
    },
    {
      "id": 74,
      "name": "New Bedford",
      "slug": "new-bedford-74",
      "countryAlpha2": "NG",
      "description": "A paradise for food lovers, art enthusiasts, and outdoor adventurers alike.",
      "imageUrl": "https://picsum.photos/seed/dest-74/800/600",
      "popularity": 87
    },
    {
      "id": 75,
      "name": "Tannerberg",
      "slug": "tannerberg-75",
      "countryAlpha2": "CL",
      "description": "Where history meets modernity, offering travelers an unparalleled urban adventure.",
      "imageUrl": "https://picsum.photos/seed/dest-75/800/600",
      "popularity": 80
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 80,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/destinations?page=4",
    "next": null,
    "prev": "/api/v1/destinations?page=3"
  }
}
Draftbit