example-data.com
Menu
Browse docs and collections

Overview

wishlists / #45

Saved for Later

userId
Lamar Wilkinson @lamar_wilkinson43
name
Saved for Later
isPublic
true
productIds
              [
  195,
  57,
  92,
  63,
  117,
  184,
  134,
  88,
  84,
  98,
  159,
  149,
  62
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 45,
  "userId": 43,
  "name": "Saved for Later",
  "isPublic": true,
  "productIds": [
    195,
    57,
    92,
    63,
    117,
    184,
    134,
    88,
    84,
    98,
    159,
    149,
    62
  ],
  "createdAt": "2024-11-19T07:55:30.984Z",
  "updatedAt": "2025-05-28T11:03:18.555Z"
}