You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Kloudless服务page_size参数失效问题排查求助

Why Am I Getting 600 Results Instead of 100 with Kloudless Dropbox Folder API?

Great question—let's walk through the most likely issues here:

  • Syntax typo in your API URL: Look at the folder path in your curl command: folders/...=/contents has a stray = after the folder ID placeholder. That extra equals sign is causing the API to misinterpret which folder you're targeting. Instead of fetching the specific folder you intended, it's probably falling back to a different directory (like your root Dropbox folder) that happens to have 600 items. Fix this by removing the = so the path reads folders/[YOUR_FOLDER_ID]/contents.

  • Misapplied page_size parameter: The page_size=100 setting works as intended only when the API is targeting the correct folder. Once you fix the URL typo, the API should respect this parameter and return 100 items per page. If you need to fetch additional pages later, you can use the page parameter (e.g., page=2) to get the next set of results.

Here's the corrected curl command to test:

curl -H 'Authorization: Bearer TOKEN' \
'https://api.kloudless.com/v1/accounts/[YOUR_ACCOUNT_ID]/storage/folders/[YOUR_FOLDER_ID]/contents?page_size=100'

If you still see unexpected results after fixing the URL, double-check that your folder ID is accurate and that your API token has proper permissions for that folder. But the stray = is almost certainly the primary culprit here.


内容的提问来源于stack exchange,提问作者Volodymyr Gula

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:42:10