example-data.com
Menu
Browse docs and collections

todos

todos

Page 36 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": 841,
      "todoListId": 70,
      "title": "Call meeting notes",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2025-12-09T02:33:28.651Z",
      "updatedAt": "2026-04-10T07:49:13.209Z"
    },
    {
      "id": 842,
      "todoListId": 70,
      "title": "Schedule the budget",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2025-05-26T05:29:12.393Z",
      "updatedAt": "2025-08-14T06:40:06.170Z"
    },
    {
      "id": 843,
      "todoListId": 70,
      "title": "Book the report",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2025-07-29T20:42:58.143Z",
      "updatedAt": "2026-02-22T07:01:29.380Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=36&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=37&limit=24",
    "prev": "/api/v1/todos?page=35&limit=24"
  }
}