example-data.com
Menu
Browse docs and collections

Overview

wishlists / #125

Want Later

userId
Nikko Kuhlman @nikko_kuhlman
name
Want Later
isPublic
false
productIds
              [
  56,
  171,
  115,
  36,
  185,
  58,
  139
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 125,
  "userId": 122,
  "name": "Want Later",
  "isPublic": false,
  "productIds": [
    56,
    171,
    115,
    36,
    185,
    58,
    139
  ],
  "createdAt": "2025-03-10T15:20:05.460Z",
  "updatedAt": "2025-04-09T18:39:53.561Z"
}