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.
- Execute the first request. For example:
https://odata.liftoff.shop/odata/v1/Order - If an
@odata.nextLinkproperty is included in the response, identify theIdvalue of the last entity in the response. For example:
"Id": 1773286 - Rather than requesting the
@odata.nextLinkURL for the next page, request entities that have anIdvalue greater than the value you identified in step 2. Using the example above:
https://odata.liftoff.shop/odata/v1/Order?$filter=Id gt 1773286 - Repeat steps 2 and 3 until you receive a response that does not include an
@odata.nextLinkproperty.
