Pagination
Page through lists by page number, or by cursor in Shopify lists.
Lists return one page of items at a time. Most lists are paged by page number; the lists of your Shopify store are paged by cursor.
By page number
Pass page, starting from 1. Where a list takes limit, it sets the page size, up to 100.
| List | Parameters | Default page size | Stop by |
|---|---|---|---|
| Objects | page | set by Vizbl | pages_count |
| Kits | page | set by Vizbl | pages_count |
| Kit items | page, limit | 20 | total |
| Generations | page, limit | 20 | total |
| Rooms | page, limit | 50 | total |
| Usage | page, limit | 20 | total |
| Invoices | page, limit | 20 | total |
| Members | page, limit | 20 | total |
| Roles | page, limit | 20 | total |
| Store products | page, limit | 50 | count |
| Store product links | page, limit | 50 | count |
Each response has the items of the page and one of these fields to tell when to stop:
pages_count: the number of pages. Stop whenpagereaches it.totalorcount: the number of items in the whole list. Stop when you have read that many.
curl -G https://api.vizbl.com/developer-api/generations \
-H "Authorization: Bearer $VIZBL_API_KEY" \
-d page=2 \
-d limit=50By cursor
Shopify products and Wall Art products are paged by cursor, the way Shopify pages them:
firstsets the page size: 20 by default, up to100;aftertakes the cursor of the last item you have read.
The response carries page_info. While page_info.has_next_page is true, pass page_info.end_cursor as after to get the next page.
curl -G https://api.vizbl.com/developer-api/shopify/products \
-H "Authorization: Bearer $VIZBL_API_KEY" \
-d first=50 \
-d "after=$END_CURSOR"