example-data.com
Menu
Browse docs and collections

todos

todos

Page 64 of 126.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 1513,
      "todoListId": 128,
      "title": "Schedule meeting notes",
      "isDone": true,
      "dueDate": "2026-05-31",
      "completedAt": "2026-05-06T06:17:21.818Z",
      "createdAt": "2025-08-03T03:42:05.015Z",
      "updatedAt": "2026-04-02T10:24:08.011Z"
    },
    {
      "id": 1514,
      "todoListId": 129,
      "title": "Book the proposal",
      "isDone": false,
      "dueDate": "2026-06-15",
      "completedAt": null,
      "createdAt": "2025-10-16T03:36:29.162Z",
      "updatedAt": "2025-11-02T08:16:37.280Z"
    },
    {
      "id": 1515,
      "todoListId": 129,
      "title": "Schedule the documentation",
      "isDone": true,
      "dueDate": "2026-06-20",
      "completedAt": "2026-01-07T01:03:59.604Z",
      "createdAt": "2025-09-21T15:34:53.789Z",
      "updatedAt": "2025-12-20T02:34:38.306Z"
    }
  ],
  "meta": {
    "page": 64,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=64&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=65&limit=24",
    "prev": "/api/v1/todos?page=63&limit=24"
  }
}