Pagination

When working with larger datasets, you might want to segment query responses. You can do this using the Tapp API's pagination feature, which allows you to iterate through the result set in manageable page sizes. Results larger than a page include a pagination cursor that you use to traverse pages.


Pagination cursor

Aside from the returned resources, a response can contain an after and/or before cursor, which can be used in a subsequential query.

Example response with after cursor

{
  "data": [
    	// Resources
	],
    {
    	"after": "313141804965823052"
    }
}

Example response with before and after cursor

{
  "data": [
    	// Resources
	],
    {
		"before": "313141804965823052",
		"after": "313146020450009675"
    }
}

Optional attributes

  • Name
    pageSize
    Type
    number
    Description

    A page size. The default page size is 100.

  • Name
    before
    Type
    string
    Description

    A page cursor to retrieve the previous page.

  • Name
    after
    Type
    string
    Description

    A page cursor to retrieve the next page.