example-data.com
Menu
Browse docs and collections

Overview

wishlists / #78

Gift Ideas

userId
Candace Mueller @candace.mueller
name
Gift Ideas
isPublic
false
productIds
              [
  180,
  192,
  162,
  58,
  12
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 78,
  "userId": 75,
  "name": "Gift Ideas",
  "isPublic": false,
  "productIds": [
    180,
    192,
    162,
    58,
    12
  ],
  "createdAt": "2024-09-07T06:41:40.721Z",
  "updatedAt": "2025-01-15T06:21:19.277Z"
}