Skip to Content

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.

ListParametersDefault page sizeStop by
Objectspageset by Vizblpages_count
Kitspageset by Vizblpages_count
Kit itemspage, limit20total
Generationspage, limit20total
Roomspage, limit50total
Usagepage, limit20total
Invoicespage, limit20total
Memberspage, limit20total
Rolespage, limit20total
Store productspage, limit50count
Store product linkspage, limit50count

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 when page reaches it.
  • total or count: 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=50

By cursor

Shopify products and Wall Art products are paged by cursor, the way Shopify pages them:

  • first sets the page size: 20 by default, up to 100;
  • after takes 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"

On this page