Content Delivery API only returning 9 results
d
Hi, I'm calling a Content Delivery API endpoint with various queries which should be returning thousands of results, but although the "total" figure looks correct, it only ever returns 9 items. The results change depending on the filter (and also, as said, the total is correct) so I'm confident that the issue isn't that there's only 9 items in the index. What might be causing this limitation?
s
So increase it with
?take=25
but most of all, request things with paging in mind
?take=10&skip=10
for page 2, for example. The output also gives you a total number of items so you know when to stop. https://cdn.discordapp.com/attachments/1222495215294746655/1222508549008003162/image.png?ex=661678cf&is=660403cf&hm=a9fda34d46f763fa9a433be6211405db97f079a470078af5e34cc6320bcca0ee&
d
Bingo, thanks Seb, and yes, it's 10 because… arrays 🙂
17 Views