API: Get Pages limits list to 100 #2425

Closed
opened 2026-02-05 04:06:46 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Flight777 on GitHub (Oct 12, 2021).

Describe the bug
When doing a GET request to the bookstack API, the output of pages details in the list is limited to 100, while the total says there are 466 pages.

Currently this is the only way to link pages back to books so you can make a selection of pages per book based on the API responses.

Steps To Reproduce
Do a API get request to retrieve a list of all pages.

Expected behavior
A response with all page details, instead of just 100.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v21.08.4
  • PHP Version: ? running official docker containter
  • Hosting Method (Nginx/Apache/Docker): Docker
Originally created by @Flight777 on GitHub (Oct 12, 2021). **Describe the bug** When doing a GET request to the bookstack API, the output of pages details in the list is limited to 100, while the total says there are 466 pages. Currently this is the only way to link pages back to books so you can make a selection of pages per book based on the API responses. **Steps To Reproduce** Do a API get request to retrieve a list of all pages. **Expected behavior** A response with all page details, instead of just 100. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v21.08.4 - PHP Version: ? running official docker containter - Hosting Method (Nginx/Apache/Docker): Docker
Author
Owner

@ssddanbrown commented on GitHub (Oct 12, 2021):

Hi @Flight777,
The API docs page provides details of these listing endpoints, under a "Listing Endpoints" section. This will detail how you can paginate through results. You can also use the filtering explained there to filter pages to just those within a specific book.

The example book-to-static script has examples of using these parameters:
https://github.com/BookStackApp/api-scripts/blob/main/php-book-to-static-site/book-to-static.php

@ssddanbrown commented on GitHub (Oct 12, 2021): Hi @Flight777, The API docs page provides details of these listing endpoints, under a "Listing Endpoints" section. This will detail how you can paginate through results. You can also use the filtering explained there to filter pages to just those within a specific book. The example book-to-static script has examples of using these parameters: https://github.com/BookStackApp/api-scripts/blob/main/php-book-to-static-site/book-to-static.php
Author
Owner

@ssddanbrown commented on GitHub (Oct 20, 2021):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (Oct 20, 2021): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2425