example-data.com
Menu
Browse docs and collections

Overview

wishlists / #72

Back to School

userId
Virginie O'Connell @virginie.oconnell55
name
Back to School
isPublic
false
productIds
              [
  164,
  140,
  172,
  43,
  127,
  14,
  70,
  78,
  38,
  171,
  176,
  50,
  174,
  116,
  162
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 72,
  "userId": 70,
  "name": "Back to School",
  "isPublic": false,
  "productIds": [
    164,
    140,
    172,
    43,
    127,
    14,
    70,
    78,
    38,
    171,
    176,
    50,
    174,
    116,
    162
  ],
  "createdAt": "2024-10-19T11:22:53.135Z",
  "updatedAt": "2026-05-03T23:38:39.928Z"
}