example-data.com
Menu
Browse docs and collections

Overview

wishlists / #150

Back to School

userId
Wiley Rodriguez @wiley.rodriguez19
name
Back to School
isPublic
true
productIds
              [
  124,
  149,
  169,
  29,
  139,
  80,
  146,
  94,
  74,
  140
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 150,
  "userId": 151,
  "name": "Back to School",
  "isPublic": true,
  "productIds": [
    124,
    149,
    169,
    29,
    139,
    80,
    146,
    94,
    74,
    140
  ],
  "createdAt": "2024-06-02T18:13:56.362Z",
  "updatedAt": "2026-03-02T09:11:25.888Z"
}