example-data.com
Menu
Browse docs and collections

Overview

wishlists / #18

Birthday Wishlist

userId
Kenya Abshire @kenya.abshire
name
Birthday Wishlist
isPublic
false
productIds
              [
  14,
  175,
  154,
  190,
  39,
  50,
  2,
  145,
  180,
  91,
  35
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 18,
  "userId": 18,
  "name": "Birthday Wishlist",
  "isPublic": false,
  "productIds": [
    14,
    175,
    154,
    190,
    39,
    50,
    2,
    145,
    180,
    91,
    35
  ],
  "createdAt": "2025-03-01T10:00:51.869Z",
  "updatedAt": "2025-04-18T04:12:52.751Z"
}