Api Search by book_id #3775

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

Originally created by @matteostracchi81 on GitHub (May 2, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

hi at all,
I should search, via API, all the pages by book_id filter, but I can't.

I tryed a get request like this: http://localhost/api/pages?query={book_id:4}.

Anyone can help me?

Thanks.

Exact BookStack Version

23.2.3

Log Content

No response

PHP Version

No response

Hosting Environment

Docker image version 23.2.3

Originally created by @matteostracchi81 on GitHub (May 2, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario hi at all, I should search, via API, all the pages by book_id filter, but I can't. I tryed a get request like this: http://localhost/api/pages?query={book_id:4}. Anyone can help me? Thanks. ### Exact BookStack Version 23.2.3 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment Docker image version 23.2.3
OVERLORD added the 🐕 Support label 2026-02-05 07:26:06 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 2, 2023):

Hi @matteostracchi81,
You can do this with the following kind of format:

/api/pages?filter[book_id]=4

Refer to the "Listing Endpoints" section of the API docs for full details on the options available at the list endpoints.

@ssddanbrown commented on GitHub (May 2, 2023): Hi @matteostracchi81, You can do this with the following kind of format: ``` /api/pages?filter[book_id]=4 ``` Refer to the ["Listing Endpoints"](https://demo.bookstackapp.com/api/docs#listing-endpoints) section of the API docs for full details on the options available at the `list` endpoints.
Author
Owner

@matteostracchi81 commented on GitHub (May 3, 2023):

/api/pages?filter[book_id]=4

thank you so much!

@matteostracchi81 commented on GitHub (May 3, 2023): > /api/pages?filter[book_id]=4 thank you so much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3775