example-data.com
Menu
Browse docs and collections

Overview

wishlists / #80

Summer Picks

userId
Marilou Douglas @marilou.douglas
name
Summer Picks
isPublic
false
productIds
              [
  151,
  13,
  77
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 80,
  "userId": 78,
  "name": "Summer Picks",
  "isPublic": false,
  "productIds": [
    151,
    13,
    77
  ],
  "createdAt": "2025-03-30T20:07:53.103Z",
  "updatedAt": "2025-05-17T16:38:26.136Z"
}