HAPI Books

GRATIS CON POSSIBILITÀ DI UPGRADE
Da ROFT | Aggiornamento vor einem Monat | Entertainment
Popolarità

2.5 / 10

Latenza

653ms

Livello di servizio

10%

Health Check

N/A

Torna a tutte le discussioni

Limiting number of books in response

Rapid account: Spencerhaka
spencerhaka
vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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.

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti