Pagination

GET requests will return a maximum of 100 entities per page. If additional entities exist, the response will include an @odata.nextLink property. This property's value specifies the URL to use for the next page of results.

For example, a GET request for https://odata.liftoff.shop/odata/v1/Order may return 100 Order entities, plus an @odata.nextLink property like the following:

"@odata.nextLink": "https://odata.liftoff.shop/odata/v1/Order?$skip=100"

The above request will skip the first 100 entities ($skip=100) and return the next page of results.

As the $skip value increases, performance may degrade. If you need to page through a large number of results, we recommend the following approach instead.

  1. Execute the first request. For example:
    https://odata.liftoff.shop/odata/v1/Order
  2. If an @odata.nextLinkproperty is included in the response, identify the Id value of the last entity in the response. For example:
    "Id": 1773286
  3. Rather than requesting the @odata.nextLink URL for the next page, request entities that have an Id value greater than the value you identified in step 2. Using the example above:
    https://odata.liftoff.shop/odata/v1/Order?$filter=Id gt 1773286
  4. Repeat steps 2 and 3 until you receive a response that does not include an @odata.nextLink property.