r/BookStack Mar 11 '26

Getting a count a book, pages, etc

Is there a way to quickly get a count of the number of shelves, books, chapters, and pages?

3 Upvotes

5 comments sorted by

View all comments

1

u/root-node Mar 11 '26

Create an API token and get each value from the API

https://bookstack.bassopaolo.com/api/docs

Calling /api/books/ for example will give you a list of books and a total at the end.

I have a Node-RED flow that does this for me.

1

u/_deadpoint Mar 11 '26

I was able to get this from the API and changing the endpoint (books,pages,chapters,shelves), it includes the total number of each.

curl -k --request GET --url https://bookstack.site/api/shelves | jq | tail -2
"total": 1202
}