example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 9 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": 193,
      "userId": 203,
      "name": "Gift Ideas",
      "isPublic": false,
      "productIds": [
        32,
        89,
        170,
        28,
        107,
        139
      ],
      "createdAt": "2025-07-03T07:59:15.566Z",
      "updatedAt": "2026-03-08T23:22:33.344Z"
    },
    {
      "id": 194,
      "userId": 204,
      "name": "Tech Gadgets",
      "isPublic": true,
      "productIds": [
        138,
        33,
        89,
        122,
        199,
        75,
        44,
        188
      ],
      "createdAt": "2025-05-08T04:55:20.624Z",
      "updatedAt": "2026-03-24T07:11:03.935Z"
    },
    {
      "id": 195,
      "userId": 205,
      "name": "Summer Picks",
      "isPublic": true,
      "productIds": [
        174,
        92,
        119,
        129
      ],
      "createdAt": "2024-11-11T06:31:34.479Z",
      "updatedAt": "2025-03-07T14:28:51.719Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=9&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=10&limit=24",
    "prev": "/api/v1/wishlists?page=8&limit=24"
  }
}