example-data.com
Menu
Browse docs and collections

todo-lists

todo-lists

Page 11 of 11.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 241,
      "userId": 240,
      "name": "Home Projects",
      "isArchived": false,
      "createdAt": "2025-12-21T14:27:54.579Z",
      "updatedAt": "2026-01-12T14:12:53.380Z"
    },
    {
      "id": 242,
      "userId": 244,
      "name": "Follow-ups",
      "isArchived": false,
      "createdAt": "2025-07-15T22:16:47.174Z",
      "updatedAt": "2025-12-05T07:24:03.210Z"
    },
    {
      "id": 243,
      "userId": 245,
      "name": "Long-term Goals",
      "isArchived": false,
      "createdAt": "2025-12-05T15:19:01.724Z",
      "updatedAt": "2026-04-25T06:47:01.901Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/todo-lists?page=11&limit=24",
    "first": "/api/v1/todo-lists?page=1&limit=24",
    "last": "/api/v1/todo-lists?page=11&limit=24",
    "next": null,
    "prev": "/api/v1/todo-lists?page=10&limit=24"
  }
}