example-data.com
Menu
Browse docs and collections

Overview

wishlists / #65

Summer Picks

userId
Enos Hamill @enos_hamill
name
Summer Picks
isPublic
true
productIds
              [
  103,
  48,
  182,
  138,
  79,
  155,
  192,
  64,
  8,
  108,
  91,
  94
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 65,
  "userId": 65,
  "name": "Summer Picks",
  "isPublic": true,
  "productIds": [
    103,
    48,
    182,
    138,
    79,
    155,
    192,
    64,
    8,
    108,
    91,
    94
  ],
  "createdAt": "2025-01-28T21:56:51.794Z",
  "updatedAt": "2026-05-18T14:46:12.164Z"
}