example-data.com
Menu
Browse docs and collections

Overview

wishlists / #177

Gift Ideas

userId
General Morissette @general_morissette47
name
Gift Ideas
isPublic
false
productIds
              [
  29,
  185,
  20,
  176,
  100,
  144,
  112,
  81,
  38,
  94,
  17
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 177,
  "userId": 184,
  "name": "Gift Ideas",
  "isPublic": false,
  "productIds": [
    29,
    185,
    20,
    176,
    100,
    144,
    112,
    81,
    38,
    94,
    17
  ],
  "createdAt": "2024-07-10T06:47:54.268Z",
  "updatedAt": "2025-08-11T06:22:38.540Z"
}