example-data.com
Menu
Browse docs and collections

Overview

todo-lists / #10

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/todo-lists/10" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/todo-lists/10"
);
const todoList = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/todo-lists.d.ts https://example-data.com/types/todo-lists.d.ts
import type { TodoList } from "./types/todo-lists";

const res = await fetch(
  "https://example-data.com/api/v1/todo-lists/10"
);
const todoList = (await res.json()) as TodoList;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/todo-lists/10"
)
todo_list = res.json()

Response

{
  "id": 10,
  "userId": 10,
  "name": "Personal Goals",
  "isArchived": true,
  "createdAt": "2026-05-21T17:00:05.707Z",
  "updatedAt": "2026-05-21T23:19:40.857Z"
}