example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 7 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": 145,
      "userId": 149,
      "name": "Back to School",
      "isPublic": false,
      "productIds": [
        139,
        106,
        169,
        31,
        25,
        103,
        98,
        19,
        171,
        101,
        76,
        16,
        116,
        22,
        118
      ],
      "createdAt": "2024-11-20T08:24:14.610Z",
      "updatedAt": "2025-12-06T21:56:11.971Z"
    },
    {
      "id": 146,
      "userId": 149,
      "name": "Tech Gadgets",
      "isPublic": true,
      "productIds": [
        116,
        153,
        168,
        167,
        33,
        178,
        90
      ],
      "createdAt": "2025-06-14T23:33:10.587Z",
      "updatedAt": "2025-10-04T06:41:53.888Z"
    },
    {
      "id": 147,
      "userId": 150,
      "name": "Holiday Gifts",
      "isPublic": true,
      "productIds": [
        59,
        193,
        50,
        9,
        155,
        99
      ],
      "createdAt": "2026-05-13T14:44:26.976Z",
      "updatedAt": "2026-05-21T10:13:10.077Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=7&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=8&limit=24",
    "prev": "/api/v1/wishlists?page=6&limit=24"
  }
}