Books to Read
- userId
-
Amina King @amina_king41
- name
- Books to Read
- isArchived
- true
- createdAt
- updatedAt
Overview
todo-lists / #1
Books to Read
#1
Request
curl example
curl -sS \ "https://example-data.com/api/v1/todo-lists/1" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/todo-lists/1" ); 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/1"
);
const todoList = (await res.json()) as TodoList; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/todo-lists/1"
)
todo_list = res.json() Response
{
"id": 1,
"userId": 2,
"name": "Books to Read",
"isArchived": true,
"createdAt": "2025-05-25T18:37:17.603Z",
"updatedAt": "2025-11-16T12:59:28.848Z"
}