example-data.com
Menu
Browse docs and collections

Overview

wishlists / #44

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 44,
  "userId": 42,
  "name": "Want Later",
  "isPublic": true,
  "productIds": [
    27,
    175,
    72,
    80,
    151,
    69,
    97,
    94,
    73,
    196
  ],
  "createdAt": "2026-05-18T15:27:07.717Z",
  "updatedAt": "2026-05-20T10:17:41.812Z"
}