example-data.com
Menu
Browse docs and collections

Overview

wishlists / #152

Saved for Later

userId
Brad Wisoky @brad.wisoky41
name
Saved for Later
isPublic
false
productIds
              [
  17,
  71,
  170,
  95,
  39,
  167
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 152,
  "userId": 154,
  "name": "Saved for Later",
  "isPublic": false,
  "productIds": [
    17,
    71,
    170,
    95,
    39,
    167
  ],
  "createdAt": "2024-09-04T02:11:05.470Z",
  "updatedAt": "2025-02-07T16:08:34.813Z"
}