example-data.com
Menu
Browse docs and collections

Overview

itineraries / #34

Romantic Getaway

userId
Green Kozey @green_kozey22
title
Romantic Getaway
slug
romantic-getaway-34
description
Agnosco cumque ancilla celebrer deputo crebro reiciendis corrigo compello cauda.
startDate
2026-07-18
endDate
2026-07-27
destinationSlugs
phoenix-41 kennethtown-58 athens-22 lisbon-18
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/itineraries/34"
);
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/34"
);
const itinerary = (await res.json()) as Itinerary;

Python example

import requests

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

Response

{
  "id": 34,
  "userId": 49,
  "title": "Romantic Getaway",
  "slug": "romantic-getaway-34",
  "description": "Agnosco cumque ancilla celebrer deputo crebro reiciendis corrigo compello cauda.",
  "startDate": "2026-07-18",
  "endDate": "2026-07-27",
  "destinationSlugs": [
    "phoenix-41",
    "kennethtown-58",
    "athens-22",
    "lisbon-18"
  ],
  "createdAt": "2024-06-29T17:57:57.833Z",
  "updatedAt": "2024-09-28T22:25:35.820Z"
}