example-data.com
Menu
Browse docs and collections

Overview

wishlists / #94

Back to School

userId
Camron O'Conner @camron.oconner54
name
Back to School
isPublic
false
productIds
              [
  14,
  134,
  185,
  179,
  54,
  157,
  116,
  133
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 94,
  "userId": 94,
  "name": "Back to School",
  "isPublic": false,
  "productIds": [
    14,
    134,
    185,
    179,
    54,
    157,
    116,
    133
  ],
  "createdAt": "2025-04-29T00:52:44.078Z",
  "updatedAt": "2025-06-07T09:08:45.490Z"
}