example-data.com
Menu
Browse docs and collections

Overview

wishlists / #26

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 26,
  "userId": 22,
  "name": "Birthday Wishlist",
  "isPublic": true,
  "productIds": [
    28,
    16,
    19,
    75,
    42,
    147,
    158,
    2,
    46,
    195,
    111
  ],
  "createdAt": "2024-11-21T21:13:29.756Z",
  "updatedAt": "2025-08-17T17:29:59.249Z"
}