example-data.com
Menu
Browse docs and collections

Overview

wishlists / #31

Saved for Later

userId
Rosella Homenick @rosella.homenick
name
Saved for Later
isPublic
true
productIds
              [
  94,
  139,
  168
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/wishlists/31"
);
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/31"
);
const wishlist = (await res.json()) as Wishlist;

Python example

import requests

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

Response

{
  "id": 31,
  "userId": 27,
  "name": "Saved for Later",
  "isPublic": true,
  "productIds": [
    94,
    139,
    168
  ],
  "createdAt": "2024-12-22T09:58:46.604Z",
  "updatedAt": "2025-06-28T08:43:22.301Z"
}