example-data.com
Menu
Browse docs and collections

Overview

itineraries / #20

Classic Voyage

userId
Wendy Borer @wendy_borer
title
Classic Voyage
slug
classic-voyage-20
description
Arbustum tepesco cribro curso.
startDate
2027-02-04
endDate
2027-02-18
destinationSlugs
fort-elizabeth-53 north-richland-hills-73 hackettville-30 mayafurt-45
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/itineraries/20"
);
const itinerary = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/itineraries.d.ts https://example-data.com/types/itineraries.d.ts
import type { Itinerary } from "./types/itineraries";

const res = await fetch(
  "https://example-data.com/api/v1/itineraries/20"
);
const itinerary = (await res.json()) as Itinerary;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/itineraries/20"
)
itinerarie = res.json()

Response

{
  "id": 20,
  "userId": 141,
  "title": "Classic Voyage",
  "slug": "classic-voyage-20",
  "description": "Arbustum tepesco cribro curso.",
  "startDate": "2027-02-04",
  "endDate": "2027-02-18",
  "destinationSlugs": [
    "fort-elizabeth-53",
    "north-richland-hills-73",
    "hackettville-30",
    "mayafurt-45"
  ],
  "createdAt": "2026-02-22T10:57:09.151Z",
  "updatedAt": "2026-04-21T15:48:33.152Z"
}