example-data.com
Menu
Browse docs and collections

Overview

wishlists / #232

Back to School

userId
Lawrence Rogahn @lawrence_rogahn33
name
Back to School
isPublic
false
productIds
              [
  77,
  103,
  93,
  127,
  167,
  192,
  177
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 232,
  "userId": 245,
  "name": "Back to School",
  "isPublic": false,
  "productIds": [
    77,
    103,
    93,
    127,
    167,
    192,
    177
  ],
  "createdAt": "2025-03-22T14:04:20.841Z",
  "updatedAt": "2025-11-15T13:19:05.270Z"
}