example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 4 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": 73,
      "userId": 71,
      "name": "Back to School",
      "isPublic": false,
      "productIds": [
        156,
        170,
        188,
        37,
        25,
        31,
        164
      ],
      "createdAt": "2025-03-02T19:11:31.095Z",
      "updatedAt": "2025-06-26T03:31:33.256Z"
    },
    {
      "id": 74,
      "userId": 73,
      "name": "Home Decor",
      "isPublic": false,
      "productIds": [
        140,
        153,
        112,
        106,
        145,
        97,
        141,
        14,
        137,
        8,
        96,
        4,
        188
      ],
      "createdAt": "2025-09-11T14:32:42.824Z",
      "updatedAt": "2025-12-22T07:05:37.254Z"
    },
    {
      "id": 75,
      "userId": 73,
      "name": "Birthday Wishlist",
      "isPublic": false,
      "productIds": [
        146,
        79,
        53
      ],
      "createdAt": "2024-09-11T05:28:28.508Z",
      "updatedAt": "2024-12-23T03:22:15.882Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=4&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=5&limit=24",
    "prev": "/api/v1/wishlists?page=3&limit=24"
  }
}