example-data.com
Menu
Browse docs and collections

Overview

wishlists / #203

Gift Ideas

userId
Mia Renner @mia.renner47
name
Gift Ideas
isPublic
true
productIds
              [
  56,
  182,
  159,
  126,
  199,
  188,
  41,
  122,
  38,
  18,
  74,
  165,
  32,
  69,
  138
]
            
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 203,
  "userId": 212,
  "name": "Gift Ideas",
  "isPublic": true,
  "productIds": [
    56,
    182,
    159,
    126,
    199,
    188,
    41,
    122,
    38,
    18,
    74,
    165,
    32,
    69,
    138
  ],
  "createdAt": "2024-10-08T20:38:10.853Z",
  "updatedAt": "2025-01-23T10:10:49.582Z"
}