destinations
destinations
Page 2 of 4.
Overview
-
Marrakech
destination
★ 94.0
-
Barcelona
destination
★ 29.0
-
Tokyo
destination
★ 74.0
-
Vienna
destination
★ 62.0
-
South Chyna
destination
★ 32.0
-
Hackettville
destination
★ 94.0
-
East Claire
destination
★ 27.0
-
Myrtisside
destination
★ 30.0
-
North Alvisburgh
destination
★ 88.0
-
Reynoldsboro
destination
★ 14.0
-
Cronaworth
destination
★ 85.0
-
Lynn
destination
★ 36.0
-
Bettyhaven
destination
★ 52.0
-
Boise City
destination
★ 57.0
-
New Bridgette
destination
★ 57.0
-
Okunevaberg
destination
★ 63.0
-
Phoenix
destination
★ 51.0
-
Abilene
destination
★ 99.0
-
West Rudyhaven
destination
★ 28.0
-
New Benmouth
destination
★ 43.0
-
Mayafurt
destination
★ 28.0
-
Aydenport
destination
★ 95.0
-
Raleighbury
destination
★ 72.0
-
Hayleeside
destination
★ 89.0
Request
curl example
curl -sS \ "https://example-data.com/api/v1/destinations?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/destinations?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/destinations.d.ts https://example-data.com/types/destinations.d.ts
import type { Destination, ListEnvelope } from "./types/destinations";
const res = await fetch(
"https://example-data.com/api/v1/destinations?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Destination>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/destinations",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 25,
"name": "Marrakech",
"slug": "marrakech-25",
"countryAlpha2": "MA",
"description": "A vibrant destination known for its rich culture, stunning architecture, and world-class cuisine.",
"imageUrl": "https://picsum.photos/seed/dest-25/800/600",
"popularity": 94
},
{
"id": 26,
"name": "Barcelona",
"slug": "barcelona-26",
"countryAlpha2": "ES",
"description": "Famous for its iconic landmarks, diverse neighborhoods, and buzzing nightlife.",
"imageUrl": "https://picsum.photos/seed/dest-26/800/600",
"popularity": 29
},
{
"id": 27,
"name": "Tokyo",
"slug": "tokyo-27",
"countryAlpha2": "JP",
"description": "A must-visit for its natural wonders, welcoming locals, and unique character.",
"imageUrl": "https://picsum.photos/seed/dest-27/800/600",
"popularity": 74
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 80,
"totalPages": 4
},
"links": {
"self": "/api/v1/destinations?page=2&limit=24",
"first": "/api/v1/destinations?page=1&limit=24",
"last": "/api/v1/destinations?page=4&limit=24",
"next": "/api/v1/destinations?page=3&limit=24",
"prev": "/api/v1/destinations?page=1&limit=24"
}
}