example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 2 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": 25,
      "userId": 22,
      "name": "Saved for Later",
      "isPublic": false,
      "productIds": [
        197,
        58,
        108,
        128,
        76,
        132,
        200,
        199,
        138,
        26,
        86,
        92,
        84,
        188,
        118
      ],
      "createdAt": "2024-08-28T01:20:37.403Z",
      "updatedAt": "2025-05-05T18:25:55.000Z"
    },
    {
      "id": 26,
      "userId": 22,
      "name": "Birthday Wishlist",
      "isPublic": true,
      "productIds": [
        28,
        16,
        19,
        75,
        42,
        147,
        158,
        2,
        46,
        195,
        111
      ],
      "createdAt": "2024-11-21T21:13:29.756Z",
      "updatedAt": "2025-08-17T17:29:59.249Z"
    },
    {
      "id": 27,
      "userId": 24,
      "name": "Holiday Gifts",
      "isPublic": false,
      "productIds": [
        1,
        46,
        77,
        125,
        133,
        172
      ],
      "createdAt": "2025-01-04T11:26:52.708Z",
      "updatedAt": "2026-01-27T03:12:50.642Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=2&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=3&limit=24",
    "prev": "/api/v1/wishlists?page=1&limit=24"
  }
}