example-data.com
Menu
Browse docs and collections

Overview

wishlists / #2

Holiday Gifts

userId
Charlene Roberts @charlene_roberts
name
Holiday Gifts
isPublic
true
productIds
              [
  43,
  94,
  195,
  83,
  2,
  17,
  109,
  130,
  74,
  177,
  46,
  164,
  148
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2,
  "userId": 1,
  "name": "Holiday Gifts",
  "isPublic": true,
  "productIds": [
    43,
    94,
    195,
    83,
    2,
    17,
    109,
    130,
    74,
    177,
    46,
    164,
    148
  ],
  "createdAt": "2024-12-26T13:35:31.507Z",
  "updatedAt": "2025-08-17T09:30:54.911Z"
}