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.

Rest API RESPONSE for collections: offset – ensure this value is less than or equal to 50000

See original GitHub issue

I found a bug in the REST API and this seems to be the best place to write an issue.

Try this in your browser:

fetch('https://api.opensea.io/api/v1/collections?offset=' + 50000 + '&limit=300', {method: 'GET'})
  .then(response => response.json())
  .then(x => console.log(x));

You get a response with 300 collections, so there must be more.

Now this:

fetch('https://api.opensea.io/api/v1/collections?offset=' + (50000+1) + '&limit=300', {method: 'GET'})
  .catch(err => console.error(err));

RESPONSE:

{"offset":["ensure this value is less than or equal to 50000"]}

So the huge amount of collections has hit an internal limit of the API. That value must be increased.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

5reactions
SourceSafecommented, Feb 1, 2022

any solution for this? Where is the best place to get all the slugs ?

2reactions
mixedencommented, Oct 25, 2021

Same issue here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retrieving large volumes of data - Oracle Help Center
When exporting large amounts of data surpassing 50,000, these query ... To return records 0 to 50,000, we'll specify an offset of 0...
Read more >
REST API Design: Filtering, Sorting, and Pagination - Moesif
What if the API user wanted to OR the filters instead. i.e. find all items where price is less than 10 OR greater...
Read more >
REST API Developer Guide
REST API is based on the usage of resources—pieces of data in Salesforce, such as records, collections of records, query results, metadata,.
Read more >
The best database pagination technique is
This article will prepare you to fight database-related performance issues using offset and cursor pagination.
Read more >
Content Delivery API | Contentful
The Content Delivery API (CDA), is a read-only API for delivering content from Contentful to apps, websites and other media.
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