example-data.com
Menu
Browse docs and collections

Overview

wishlists / #60

Favourites

userId
Simeon Robel @simeon_robel12
name
Favourites
isPublic
true
productIds
              [
  53,
  142,
  64,
  72,
  10,
  114,
  141,
  135,
  116,
  108,
  30,
  147,
  104,
  59
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 60,
  "userId": 55,
  "name": "Favourites",
  "isPublic": true,
  "productIds": [
    53,
    142,
    64,
    72,
    10,
    114,
    141,
    135,
    116,
    108,
    30,
    147,
    104,
    59
  ],
  "createdAt": "2025-07-18T14:24:10.403Z",
  "updatedAt": "2025-09-20T10:53:37.872Z"
}