Request for offset in endpoints
Hi @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=5https://api.spacexdata.com/v3/launches?limit=5
Cheers! Jeroen
Should be easy to add 👍
I have finals until Wednesday, so I should be able to add this later in the week.
Thanks again @jakewmeyer, appreciate it! Good luck with your finals! 👍🎉
Added and live 👍
https://api.spacexdata.com/v3/launches?limit=1&offset=5
Available on any endpoint that can return multiple results. Docs have been updated as well.
Awesome and thanks @jakewmeyer! 👍 Time to update some scrollviews!
Sidenote: it's awesome how much faster this loads :)
Shouldn't you close this issue then? @jakewmeyer
Yes, hadn't seen it until now
@jeroenboumans sounds good 👍