example-data.com
Menu
Browse docs and collections

todos

todos

Page 17 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": 385,
      "todoListId": 31,
      "title": "Write the draft",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2025-10-03T16:20:07.735Z",
      "updatedAt": "2025-12-08T21:59:40.230Z"
    },
    {
      "id": 386,
      "todoListId": 31,
      "title": "Finish the backlog",
      "isDone": true,
      "dueDate": "2026-06-03",
      "completedAt": "2025-11-26T07:37:11.280Z",
      "createdAt": "2025-06-16T19:59:36.334Z",
      "updatedAt": "2025-11-22T16:29:07.003Z"
    },
    {
      "id": 387,
      "todoListId": 31,
      "title": "Follow up with the feedback",
      "isDone": true,
      "dueDate": "2026-05-22",
      "completedAt": "2026-04-30T22:04:19.828Z",
      "createdAt": "2026-04-28T21:13:05.376Z",
      "updatedAt": "2026-05-18T15:25:54.321Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=17&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=18&limit=24",
    "prev": "/api/v1/todos?page=16&limit=24"
  }
}