Sephora

フリーミアム
よって Api Dojo | 更新済み 1年前 | eCommerce
人気

9.4 / 10

レイテンシー

3,163ms

サービスレベル

100%

すべてのディスカッションに戻る

No of reviews

N
nnguyen2021
8ヶ月前

Hi API team,

How can I make the query return more than 100 reviews? Even when i set the ‘limit’ parameter to above 100, the ‘TotalResults’ attribute is still 101. Can you please walk me through this? Thank you 😃

avatar
apidojo commented 8ヶ月前

Well,

You should check the response data CAREFULLY. The P454378 has TotalResults being 43, there is no second page (with 60 as limit) of course. https://prnt.sc/23sr9pq. Please check everything before asking something silly.

Regards

N
nnguyen2021 commented 8ヶ月前

Thank you for the prompt reponse.

For the first 60 reviews, I did: params: {ProductId: ‘P454378’, Limit: ‘60’, Offset: ‘0’}

And for the next 60 reviews, I tried: params: {ProductId: ‘P454378’, Limit: ‘60’, Offset: ‘60’}

However, it didnt work and the second query returned 0 results. Did I do this wrong?

Thanks,

avatar
apidojo commented 8ヶ月前

Hello,

Every applications always have paging feature in the listing page. The limitation is fixed on the server side. You cannot change it.

Regards.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿
評価:5-投票:1