example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 6 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": 121,
      "userId": 116,
      "name": "Favourites",
      "isPublic": true,
      "productIds": [
        113,
        109,
        57,
        61,
        101,
        125,
        71,
        34,
        110
      ],
      "createdAt": "2025-10-17T14:43:31.266Z",
      "updatedAt": "2026-04-18T12:56:02.423Z"
    },
    {
      "id": 122,
      "userId": 117,
      "name": "Summer Picks",
      "isPublic": false,
      "productIds": [
        193,
        58,
        25
      ],
      "createdAt": "2025-12-13T20:59:50.086Z",
      "updatedAt": "2025-12-17T11:02:29.397Z"
    },
    {
      "id": 123,
      "userId": 119,
      "name": "Birthday Wishlist",
      "isPublic": false,
      "productIds": [
        104,
        152,
        39,
        148,
        87,
        142,
        90
      ],
      "createdAt": "2026-03-26T20:10:01.431Z",
      "updatedAt": "2026-04-09T00:54:28.248Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=6&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=7&limit=24",
    "prev": "/api/v1/wishlists?page=5&limit=24"
  }
}