example-data.com
Menu
Browse docs and collections

Overview

wishlists / #73

Back to School

userId
Florencio Mohr @florencio_mohr
name
Back to School
isPublic
false
productIds
              [
  156,
  170,
  188,
  37,
  25,
  31,
  164
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 73,
  "userId": 71,
  "name": "Back to School",
  "isPublic": false,
  "productIds": [
    156,
    170,
    188,
    37,
    25,
    31,
    164
  ],
  "createdAt": "2025-03-02T19:11:31.095Z",
  "updatedAt": "2025-06-26T03:31:33.256Z"
}