example-data.com
Menu
Browse docs and collections

carts

carts

Browse 140 carts records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

carts #1

userId
Amina King @amina_king41
currency
USD
subtotal
997.23
itemCount
9
updatedAt
createdAt

carts #3

userId
Cayla Farrell @cayla_farrell
currency
USD
subtotal
963.88
itemCount
7
updatedAt
createdAt

carts #5

userId
Brycen Bayer @brycen_bayer60
currency
USD
subtotal
1945.16
itemCount
4
updatedAt
createdAt

Showing first 6 of 24 on this page.

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/carts?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/carts?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/carts.d.ts https://example-data.com/types/carts.d.ts
import type { Cart, ListEnvelope } from "./types/carts";

const res = await fetch(
  "https://example-data.com/api/v1/carts?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Cart>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/carts",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 1,
      "userId": 2,
      "currency": "USD",
      "subtotal": 997.23,
      "itemCount": 9,
      "updatedAt": "2025-07-02T05:16:37.152Z",
      "createdAt": "2024-09-13T04:12:14.210Z"
    },
    {
      "id": 2,
      "userId": 3,
      "currency": "USD",
      "subtotal": 1905.37,
      "itemCount": 8,
      "updatedAt": "2025-11-03T11:43:02.981Z",
      "createdAt": "2024-11-29T19:41:51.515Z"
    },
    {
      "id": 3,
      "userId": 4,
      "currency": "USD",
      "subtotal": 963.88,
      "itemCount": 7,
      "updatedAt": "2025-11-26T01:08:32.530Z",
      "createdAt": "2025-05-29T11:49:49.057Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 140,
    "totalPages": 6
  },
  "links": {
    "self": "/api/v1/carts?page=1",
    "first": "/api/v1/carts?page=1",
    "last": "/api/v1/carts?page=6",
    "next": "/api/v1/carts?page=2",
    "prev": null
  }
}

View full response →