example-data.com
Menu
Browse docs and collections

todos

todos

Page 46 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": 1081,
      "todoListId": 92,
      "title": "Write the backlog",
      "isDone": true,
      "dueDate": "2026-05-16",
      "completedAt": "2026-01-01T16:52:37.152Z",
      "createdAt": "2025-12-28T10:54:20.272Z",
      "updatedAt": "2026-01-21T08:15:26.926Z"
    },
    {
      "id": 1082,
      "todoListId": 92,
      "title": "Email the dashboard",
      "isDone": false,
      "dueDate": "2026-05-15",
      "completedAt": null,
      "createdAt": "2025-12-20T06:50:26.236Z",
      "updatedAt": "2025-12-30T13:50:43.828Z"
    },
    {
      "id": 1083,
      "todoListId": 92,
      "title": "Plan meeting notes",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2025-10-10T09:15:21.468Z",
      "updatedAt": "2025-12-03T08:09:55.523Z"
    }
  ],
  "meta": {
    "page": 46,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=46&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=47&limit=24",
    "prev": "/api/v1/todos?page=45&limit=24"
  }
}