example-data.com
Menu
Browse docs and collections

Overview

wishlists / #77

Gift Ideas

userId
Candace Mueller @candace.mueller
name
Gift Ideas
isPublic
false
productIds
              [
  137,
  158,
  18,
  51,
  44,
  63,
  116,
  96,
  120,
  122,
  88,
  19,
  194,
  105,
  5
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 77,
  "userId": 75,
  "name": "Gift Ideas",
  "isPublic": false,
  "productIds": [
    137,
    158,
    18,
    51,
    44,
    63,
    116,
    96,
    120,
    122,
    88,
    19,
    194,
    105,
    5
  ],
  "createdAt": "2025-04-14T15:32:28.813Z",
  "updatedAt": "2025-06-02T22:39:31.687Z"
}