example-data.com
Menu
Browse docs and collections

todo-lists

todo-lists

Page 3 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": 49,
      "userId": 42,
      "name": "Personal Goals",
      "isArchived": false,
      "createdAt": "2025-09-07T14:04:50.124Z",
      "updatedAt": "2026-05-16T14:39:44.525Z"
    },
    {
      "id": 50,
      "userId": 43,
      "name": "Backlog",
      "isArchived": false,
      "createdAt": "2025-08-22T11:31:49.377Z",
      "updatedAt": "2025-12-12T20:42:10.795Z"
    },
    {
      "id": 51,
      "userId": 44,
      "name": "Learning Objectives",
      "isArchived": false,
      "createdAt": "2025-12-21T06:24:24.263Z",
      "updatedAt": "2026-02-12T20:49:51.954Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/todo-lists?page=3&limit=24",
    "first": "/api/v1/todo-lists?page=1&limit=24",
    "last": "/api/v1/todo-lists?page=11&limit=24",
    "next": "/api/v1/todo-lists?page=4&limit=24",
    "prev": "/api/v1/todo-lists?page=2&limit=24"
  }
}