example-data.com
Menu
Browse docs and collections

Overview

wishlists / #111

Gift Ideas

userId
Vida Kunde-Koepp @vida_kunde-koepp95
name
Gift Ideas
isPublic
true
productIds
              [
  8,
  183,
  93,
  101,
  198,
  124,
  22,
  34,
  45,
  197,
  164,
  157,
  100
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 111,
  "userId": 109,
  "name": "Gift Ideas",
  "isPublic": true,
  "productIds": [
    8,
    183,
    93,
    101,
    198,
    124,
    22,
    34,
    45,
    197,
    164,
    157,
    100
  ],
  "createdAt": "2024-08-10T16:13:13.330Z",
  "updatedAt": "2026-03-01T01:14:02.696Z"
}