example-data.com
Menu
Browse docs and collections

Overview

wishlists / #76

Favourites

userId
Terence Lemke @terence.lemke85
name
Favourites
isPublic
false
productIds
              [
  158,
  84,
  61,
  148,
  68,
  171,
  174,
  10,
  115,
  153,
  54,
  48,
  178
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 76,
  "userId": 74,
  "name": "Favourites",
  "isPublic": false,
  "productIds": [
    158,
    84,
    61,
    148,
    68,
    171,
    174,
    10,
    115,
    153,
    54,
    48,
    178
  ],
  "createdAt": "2025-05-20T08:09:23.854Z",
  "updatedAt": "2025-05-27T00:52:54.772Z"
}