1. Home
  2. Docs
  3. AnalyticsOS – Cloud...
  4. Pagination

Pagination

[bt_bb_section layout=”boxed_1200″ lazy_load=”yes” show_boxed_content=”no” allow_content_outside=”no”][bt_bb_row][bt_bb_column lazy_load=”yes” highlight=”no” align_to_edge_column=”no” width=”1/1″][bt_bb_text]

AnalyticsOS (AOS®) Analytics Results REST API achieves pagination through limit and offset parameters.  In practical terms, this means that the API will by default return up to 50 evaluation records, and the user can change this to 100 by passing in a limit parameter in the GET request.

A common pattern for clients is:

  1. Perform GET request with limit X and offset 0
  2. If more than X records are returned, add X to offset amount and perform GET request again
  3. Repeat step 2 until less than X records are returned

This allows the client to pull all records in manageable chunks without missing data.

[/bt_bb_text][/bt_bb_column][/bt_bb_row][/bt_bb_section]