example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 3 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": 49,
      "userId": 45,
      "name": "Summer Picks",
      "isPublic": true,
      "productIds": [
        184,
        9,
        50,
        158,
        176,
        169,
        81,
        10,
        167,
        24
      ],
      "createdAt": "2025-08-14T19:26:38.460Z",
      "updatedAt": "2026-02-01T23:34:04.112Z"
    },
    {
      "id": 50,
      "userId": 45,
      "name": "Birthday Wishlist",
      "isPublic": true,
      "productIds": [
        174,
        114,
        13,
        146,
        65,
        23,
        151,
        67,
        187,
        129,
        61,
        64,
        123,
        39,
        6
      ],
      "createdAt": "2025-04-08T06:04:02.944Z",
      "updatedAt": "2025-08-13T01:46:37.788Z"
    },
    {
      "id": 51,
      "userId": 47,
      "name": "Holiday Gifts",
      "isPublic": false,
      "productIds": [
        108,
        148,
        86,
        83,
        173
      ],
      "createdAt": "2024-07-13T00:51:08.828Z",
      "updatedAt": "2025-04-01T10:49:07.721Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=3&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=4&limit=24",
    "prev": "/api/v1/wishlists?page=2&limit=24"
  }
}