example-data.com
Menu
Browse docs and collections

wishlists

wishlists

Page 8 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": 169,
      "userId": 176,
      "name": "Gift Ideas",
      "isPublic": false,
      "productIds": [
        181,
        150,
        156,
        116
      ],
      "createdAt": "2026-02-23T10:52:34.860Z",
      "updatedAt": "2026-03-31T19:29:18.870Z"
    },
    {
      "id": 170,
      "userId": 176,
      "name": "Back to School",
      "isPublic": false,
      "productIds": [
        188,
        73,
        1,
        82,
        77,
        127,
        121,
        124,
        81,
        65,
        57,
        195,
        10,
        66
      ],
      "createdAt": "2025-02-25T12:31:42.352Z",
      "updatedAt": "2025-10-17T01:44:13.857Z"
    },
    {
      "id": 171,
      "userId": 177,
      "name": "Tech Gadgets",
      "isPublic": true,
      "productIds": [
        20,
        130,
        182,
        132,
        17,
        29,
        69,
        199,
        118,
        174,
        99,
        95,
        50,
        166,
        110
      ],
      "createdAt": "2026-01-30T18:50:27.498Z",
      "updatedAt": "2026-05-20T03:33:44.383Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 239,
    "totalPages": 10
  },
  "links": {
    "self": "/api/v1/wishlists?page=8&limit=24",
    "first": "/api/v1/wishlists?page=1&limit=24",
    "last": "/api/v1/wishlists?page=10&limit=24",
    "next": "/api/v1/wishlists?page=9&limit=24",
    "prev": "/api/v1/wishlists?page=7&limit=24"
  }
}