HAPI Books

FREEMIUM
Door ROFT | Bijgewerkt לפני חודש | Entertainment
Populariteit

2.5 / 10

Latency

653ms

Serviceniveau

10%

Health Check

N/A

Terug naar alle discussies

Limiting number of books in response

Rapid account: Spencerhaka
spencerhaka
לפני שנה

Hi, the response from the endpoint “Get Weekly Popular Books by Genre” is an object with 100 books. That’s a lot of data. Is there a way to query for less books? For example, I would only like the top 10 books back. Thanks

Rapid account: Spencerhaka
spencerhaka Commented לפני שנה

Incredible! Thank you for implementing this. Yes, I see that “number_results” is required, but that’s ok. This is a big improvement and much appreciated.

Rapid account: Roftcomp La Gm Bwl W Lm
roftcomp-laGmBwlWLm Commented לפני שנה

Hello again spencerhaka.

After your question, the feature you mentioned has been implemented. Now, in the endpoint “Get Weekly Popular Books by Genre”, you can add an extra parameter regarding the exact number of results you wish to receive (to a maximum value of 100).

You can still use this endpoint without this parameter. In this case, the API will return all the books, which is 100.

Happy coding 😃

Rapid account: Roftcomp La Gm Bwl W Lm
roftcomp-laGmBwlWLm Commented לפני שנה

Hello spencerhaka. We appreciate you using our API and your comment.

At the moment, for the mentioned current endpoint, it is only possible to retrieve that number of books.
However, the idea you mentioned can be studied for a future implementation.

We hope this was helpful.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen