example-data.com
Menu
Browse docs and collections

todos

todos

Page 85 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": 2017,
      "todoListId": 172,
      "title": "Submit the documentation",
      "isDone": true,
      "dueDate": "2026-05-18",
      "completedAt": "2026-04-09T18:49:45.599Z",
      "createdAt": "2025-11-08T11:29:58.528Z",
      "updatedAt": "2026-05-09T14:38:44.095Z"
    },
    {
      "id": 2018,
      "todoListId": 172,
      "title": "Send the documentation",
      "isDone": true,
      "dueDate": "2026-06-13",
      "completedAt": "2025-10-05T10:44:29.887Z",
      "createdAt": "2025-08-02T21:53:00.050Z",
      "updatedAt": "2026-03-27T06:10:12.519Z"
    },
    {
      "id": 2019,
      "todoListId": 172,
      "title": "Plan the invoice",
      "isDone": true,
      "dueDate": "2026-06-02",
      "completedAt": "2026-05-15T16:54:14.713Z",
      "createdAt": "2026-04-08T01:07:51.648Z",
      "updatedAt": "2026-05-11T17:35:11.622Z"
    }
  ],
  "meta": {
    "page": 85,
    "limit": 24,
    "total": 3016,
    "totalPages": 126
  },
  "links": {
    "self": "/api/v1/todos?page=85&limit=24",
    "first": "/api/v1/todos?page=1&limit=24",
    "last": "/api/v1/todos?page=126&limit=24",
    "next": "/api/v1/todos?page=86&limit=24",
    "prev": "/api/v1/todos?page=84&limit=24"
  }
}