example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 5 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": 97,
      "userId": 96,
      "name": "Summer Picks",
      "isPublic": true,
      "productIds": [
        14,
        62,
        75,
        159,
        109,
        122,
        95,
        54,
        171,
        135
      ],
      "createdAt": "2025-02-25T19:08:10.385Z",
      "updatedAt": "2025-10-04T10:45:30.696Z"
    },
    {
      "id": 98,
      "userId": 97,
      "name": "Favourites",
      "isPublic": true,
      "productIds": [
        48,
        183,
        138,
        122,
        16,
        108,
        102,
        167,
        34,
        143
      ],
      "createdAt": "2026-03-20T19:42:23.831Z",
      "updatedAt": "2026-04-10T06:40:32.808Z"
    },
    {
      "id": 99,
      "userId": 97,
      "name": "Home Decor",
      "isPublic": true,
      "productIds": [
        70,
        117,
        186,
        190,
        84,
        108,
        181
      ],
      "createdAt": "2025-05-06T09:07:26.077Z",
      "updatedAt": "2026-04-30T09:46:42.556Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=5&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=6&limit=24",
    "prev": "/api/v1/wishlists?page=4&limit=24"
  }
}