example-data.com
Menu
Browse docs and collections

Overview

wishlists / #59

Saved for Later

userId
Darian Schaden @darian_schaden36
name
Saved for Later
isPublic
false
productIds
              [
  104,
  108,
  191,
  184,
  99,
  136,
  12
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/wishlists/59"
);
const wishlist = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/wishlists/59"
);
const wishlist = (await res.json()) as Wishlist;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/wishlists/59"
)
wishlist = res.json()

Response

{
  "id": 59,
  "userId": 53,
  "name": "Saved for Later",
  "isPublic": false,
  "productIds": [
    104,
    108,
    191,
    184,
    99,
    136,
    12
  ],
  "createdAt": "2025-08-28T18:12:58.829Z",
  "updatedAt": "2025-11-15T13:15:18.822Z"
}