Request for offset in endpoints
See original GitHub issueHi @jakewmeyer,
Would it be possible to add an offset option in the request that can be used for pagination? Currently limit
is an option but no offset can be given with the request. This way the impact of the launches query can be optimised in performance and load on both client and server side.
For example:
-
Return the 3rd set with as size of 5 results of all launches:
https://api.spacexdata.com/v3/launches?offset=2&limit=5
-
Return the first set with as size of 5 results of all launches:
https://api.spacexdata.com/v3/launches?offset=0&limit=5
https://api.spacexdata.com/v3/launches?limit=5
Cheers! Jeroen
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
offset API parameter - Algolia
Offset is the position in the dataset of a particular record. By specifying offset , you retrieve a subset of records starting with...
Read more >Paging Through Results Using Offset and Limit
To get a different set of items, you can use the offset and limit parameters in the query string of the GET request....
Read more >Offset-based Pagination - Box Developer Documentation
APIs that use offset-based paging use the offset and limit query parameters to paginate through items in a collection.
Read more >Paging Through Results With Limit and Offset
The limit parameter controls the maximum number of items that may be returned for a single request. This parameter can be thought of...
Read more >Retrieving large volumes of data - Oracle Help Center
Retrieving large volumes of data from Eloqua requires multiple requests using the offset and limit query parameters. This tutorial will walk you through...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks again @jakewmeyer, appreciate it! Good luck with your finals! 👍🎉
Should be easy to add 👍
I have finals until Wednesday, so I should be able to add this later in the week.