example-data.com
Menu
Browse docs and collections

Overview

wishlists / #126

Favourites

userId
Nikko Kuhlman @nikko_kuhlman
name
Favourites
isPublic
false
productIds
              [
  111,
  125,
  137,
  141,
  155,
  61,
  174,
  99,
  173,
  60,
  88,
  139,
  45
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 126,
  "userId": 122,
  "name": "Favourites",
  "isPublic": false,
  "productIds": [
    111,
    125,
    137,
    141,
    155,
    61,
    174,
    99,
    173,
    60,
    88,
    139,
    45
  ],
  "createdAt": "2024-10-14T15:52:12.152Z",
  "updatedAt": "2025-12-25T21:08:47.900Z"
}