example-data.com
Menu
Browse docs and collections

Overview

wishlists / #11

Summer Picks

userId
Anne Hamill @anne_hamill75
name
Summer Picks
isPublic
true
productIds
              [
  176,
  159,
  30,
  36,
  118,
  8,
  123
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 11,
  "userId": 9,
  "name": "Summer Picks",
  "isPublic": true,
  "productIds": [
    176,
    159,
    30,
    36,
    118,
    8,
    123
  ],
  "createdAt": "2025-06-01T21:10:21.268Z",
  "updatedAt": "2025-06-08T15:29:33.903Z"
}