Change total limit for droplet/images response

July 2, 2014 2.3k views

When retrieving listing of all images, I can see it returns only total: 39 objects by default.

I’ve tried changing the total key using query strings like &meta[total]=100, &total=100, &limit=100 none of them worked.

How can I change the total limit? I don’t want to navigate changing page value.

1 Answer

Thanks for checking out the new API! Sounds like you’re looking for ?per_page= This is documented under the “Links” section.

If you have more feedback on the API, feel free to open an issue on the GitHub page.

  • OK but how do i change it to unlimited? &per_page=-1 didn’t work. Any other method? BTW the GitHub link is broken.

  • Hmm… I don’t think that’s actually supported. Though, you can actually use a number so large that it is effectively the same. Open an issue on the GitHub page for the API team to consider adding that.

Have another answer? Share your knowledge.