example-data.com
Menu
Browse docs and collections

Overview

book-favs / #206

Activity #206

User #115 favorited Book #220

1/7/2026, 8:19:14 PM

Component variants

Medium
Small

User #115 favorited Book #220 · 1/7/2026, 8:19:14 PM

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/book-favs/206" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/book-favs/206"
);
const bookFav = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/book-favs/206"
);
const bookFav = (await res.json()) as BookFav;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/book-favs/206"
)
book_fav = res.json()

Response

{
  "id": 206,
  "userId": 115,
  "bookId": 220,
  "savedAt": "2026-01-07T20:19:14.380Z"
}