Skip to content

Get book timeline for a year

GET
/api/v1/user-stats/reading/book-timeline
curl --request GET \
--url 'http://127.0.0.1:58259/api/v1/user-stats/reading/book-timeline?year=1'

Returns the reading lifespan of each book the user read in a given year

year
required
integer format: int32

Book timeline data retrieved successfully

Media type */*
Array<object>
object
bookId
integer format: int64
title
string
pageCount
integer format: int32
firstSessionDate
string format: date
lastSessionDate
string format: date
totalSessions
integer format: int32
totalDurationSeconds
integer format: int64
maxProgress
number format: double
readStatus
string

Unauthorized

Media type */*
Array<object>
object
bookId
integer format: int64
title
string
pageCount
integer format: int32
firstSessionDate
string format: date
lastSessionDate
string format: date
totalSessions
integer format: int32
totalDurationSeconds
integer format: int64
maxProgress
number format: double
readStatus
string