General Usage Product API
Overview Authentication Versioning Pagination Error Code Status

Pagination


All THG Ingenuity APIs will use pagination for the endpoints with large response payloads. Paginated enpoints will have a set of optional query parameters to control the returned records.


    limit : [1-1000] (default=30)
    after_entity_id : 3478458239843 (optional)
    

The above example uses query parameters to set values for limit and after_entity_id, the limit by default is 30 but can be any whole number between 1 and 1000. The limit will determine the size of the block returned, e.g. a limit of 250 will return a block of 250 records.

The after_entity_id (the name of this paramter will differ between APIs) defines the start ID for the block, e.g. after_entity_id=23435934 will return a block of records after but not including record 23435934.