example-data.com
Menu
Browse docs and collections

Overview

book-favs / #172

Activity #172

User #92 favorited Book #247

2/17/2026, 9:21:43 PM

Component variants

Medium
Small

User #92 favorited Book #247 · 2/17/2026, 9:21:43 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/book-favs/172"
);
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/172"
);
const bookFav = (await res.json()) as BookFav;

Python example

import requests

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

Response

{
  "id": 172,
  "userId": 92,
  "bookId": 247,
  "savedAt": "2026-02-17T21:21:43.603Z"
}