used as a page number when working with paginated results, with the first page being at offset 0 and last page at Math.ceil(total_items/limit)-1.
For example: Assuming you have a collection of 100 items, and you want to retrieve them in batches of 20 items per page. Here's how you can use limit and offset in your API request:
Example 1: Retrieve the first page of items
API Request: GET with limit=20&offset=0
API Response: Returns the first 20 items in the collection.
Example 2: Retrieve the second page of items
API Request: GET with limit=20&offset=1
API Response: Returns the next 20 items in the collection, starting from item 21 to item 40.
Example 3: Retrieve the sixth page of items
API Request: GET with limit=20&offset=5
API Response: Returns an empty response, as there are no items available from item 101 to item 120 in the collection.