example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 10 of 10.

Overview

Request

curl example

          curl -sS \
  "https://example-data.com/api/v1/wishlists?limit=25"
        

JavaScript example

          const res = await fetch(
  "https://example-data.com/api/v1/wishlists?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/wishlists";

const res = await fetch(
  "https://example-data.com/api/v1/wishlists?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Wishlist>;
        

Python example

          import requests

res = requests.get(
    "https://example-data.com/api/v1/wishlists",
    params={"limit": 25},
)
data = res.json()
        

Response

{
  "data": [
    {
      "id": 217,
      "userId": 228,
      "name": "Home Decor",
      "isPublic": false,
      "productIds": [
        114,
        70,
        137,
        159,
        119,
        82,
        47,
        111,
        99,
        136,
        60,
        56,
        154,
        97,
        74
      ],
      "createdAt": "2025-12-14T12:01:17.199Z",
      "updatedAt": "2026-03-19T23:16:11.202Z"
    },
    {
      "id": 218,
      "userId": 228,
      "name": "Holiday Gifts",
      "isPublic": false,
      "productIds": [
        114,
        142,
        166
      ],
      "createdAt": "2024-06-10T23:47:43.869Z",
      "updatedAt": "2026-02-28T18:28:36.575Z"
    },
    {
      "id": 219,
      "userId": 229,
      "name": "Back to School",
      "isPublic": false,
      "productIds": [
        112,
        75,
        128
      ],
      "createdAt": "2024-05-25T09:31:56.504Z",
      "updatedAt": "2026-03-22T12:59:16.769Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=10&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": null,
    "prev": "/api/v1/wishlists?page=9&limit=24"
  }
}