question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request for offset in endpoints

See original GitHub issue

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=5 https://api.spacexdata.com/v3/launches?limit=5

Cheers! Jeroen

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jeroenboumanscommented, Dec 3, 2018

Thanks again @jakewmeyer, appreciate it! Good luck with your finals! 👍🎉

1reaction
jakewmeyercommented, Dec 1, 2018

Should be easy to add 👍

I have finals until Wednesday, so I should be able to add this later in the week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found