HAPI Books

ÜCRETSİZ PREMIUM
Taraf ROFT | Güncelleyen il y a un mois | Entertainment
Popülerlik

2.5 / 10

Gecikme

664ms

Hizmet Düzeyi

10%

Health Check

N/A

Tüm Tartışmalara Dön

Limiting number of books in response

Rapid account: Spencerhaka
spencerhaka
il y a un an

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 il y a un an

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 il y a un an

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 il y a un an

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.

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun