example-data.com
Menu
Browse docs and collections

todo-lists

todo-lists

Page 7 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": 145,
      "userId": 145,
      "name": "Long-term Goals",
      "isArchived": true,
      "createdAt": "2026-04-20T05:49:07.021Z",
      "updatedAt": "2026-05-21T13:39:01.589Z"
    },
    {
      "id": 146,
      "userId": 148,
      "name": "Long-term Goals",
      "isArchived": false,
      "createdAt": "2026-05-13T14:44:18.745Z",
      "updatedAt": "2026-05-14T02:29:03.791Z"
    },
    {
      "id": 147,
      "userId": 148,
      "name": "Ideas",
      "isArchived": false,
      "createdAt": "2026-04-05T19:52:43.148Z",
      "updatedAt": "2026-04-15T23:31:00.686Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/todo-lists?page=7&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=8&limit=24",
    "prev": "/api/v1/todo-lists?page=6&limit=24"
  }
}