example-data.com
Menu
Browse docs and collections

todos

todos

Page 118 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": 2809,
      "todoListId": 235,
      "title": "Update the documentation",
      "isDone": false,
      "dueDate": null,
      "completedAt": null,
      "createdAt": "2026-01-09T01:59:17.909Z",
      "updatedAt": "2026-03-09T11:49:33.328Z"
    },
    {
      "id": 2810,
      "todoListId": 236,
      "title": "Prepare the design",
      "isDone": false,
      "dueDate": "2026-05-15",
      "completedAt": null,
      "createdAt": "2025-12-24T21:49:43.834Z",
      "updatedAt": "2026-02-04T22:59:43.018Z"
    },
    {
      "id": 2811,
      "todoListId": 236,
      "title": "Schedule the backlog",
      "isDone": false,
      "dueDate": "2026-05-20",
      "completedAt": null,
      "createdAt": "2025-05-29T15:07:26.167Z",
      "updatedAt": "2026-03-11T05:39:14.180Z"
    }
  ],
  "meta": {
    "page": 118,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=118&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=119&limit=24",
    "prev": "/api/v1/todos?page=117&limit=24"
  }
}