example-data.com
Menu
Browse docs and collections

todos

todos

Page 90 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": 2137,
      "todoListId": 183,
      "title": "Fix the documentation",
      "isDone": true,
      "dueDate": "2026-05-18",
      "completedAt": "2026-01-15T13:42:12.556Z",
      "createdAt": "2025-07-21T22:39:45.682Z",
      "updatedAt": "2026-03-12T03:01:59.094Z"
    },
    {
      "id": 2138,
      "todoListId": 183,
      "title": "Update the proposal",
      "isDone": true,
      "dueDate": "2026-06-20",
      "completedAt": "2025-09-01T03:39:02.410Z",
      "createdAt": "2025-08-15T07:13:00.680Z",
      "updatedAt": "2025-09-23T02:20:57.680Z"
    },
    {
      "id": 2139,
      "todoListId": 183,
      "title": "Schedule the budget",
      "isDone": true,
      "dueDate": null,
      "completedAt": "2025-10-23T03:15:55.689Z",
      "createdAt": "2025-07-31T16:05:06.510Z",
      "updatedAt": "2025-12-21T01:11:26.057Z"
    }
  ],
  "meta": {
    "page": 90,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=90&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=91&limit=24",
    "prev": "/api/v1/todos?page=89&limit=24"
  }
}