Ragic Logo
<< Filter ConditionsTable of ContentsOrdering >>

Limiting Entry Number / Paging

Very often you do not want to fetch all entries with one request, you can use the limit parameter to specify how many entries that you would like to retrieve, and how many entries that you would like to skip at the start, so clients can implement pages for viewing entries.

The usage of limit parameter is similiar to SQL limit parameter. There are two arguments to the limit parameter, separated by comma. The first one is how many entries that you would like to skip in the beginning, and the second one is how many entries that you would like to be returned.

Returned data is defaulted to 1000 entries, you will need to provide limit parameters if your response has more than 1000 entries.

The format is as follows:

limit=<offset>,<page size>

The offset is the number of entries that should be skipped before returning, used for going through pages that has been retrieved. And the page size is the max number of records that should be returned per call.

For example the below call will skip the first 5 entries, and return 6 ~ 13, a total of 8 entries.

curl --get -d 'limit=5,8' \

-H "Authorization:Basic YOUR_API_KEY_GOES_HERE" \

-d api \

https://www.ragic.com/demo/sales/1

Top of Page
<< Filter ConditionsTable of ContentsOrdering >>
Learn more about Ragic:
Why we created Ragic
Webinars
User Guide
Keep in touch:
Blog
Email
Facebook
Twitter
Ragic, Inc.
1-888-666-8037
Terms
Privacy