example-data.com
Menu
Browse docs and collections

Overview

wishlists / #24

Home Decor

userId
Guy Christiansen @guy.christiansen40
name
Home Decor
isPublic
false
productIds
              [
  99,
  29,
  111,
  89,
  188,
  8,
  33
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 24,
  "userId": 21,
  "name": "Home Decor",
  "isPublic": false,
  "productIds": [
    99,
    29,
    111,
    89,
    188,
    8,
    33
  ],
  "createdAt": "2025-11-20T22:33:00.487Z",
  "updatedAt": "2025-12-24T00:40:04.359Z"
}