Rest API RESPONSE for collections: offset – ensure this value is less than or equal to 50000
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:4
- Comments:5
Top 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 >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
any solution for this? Where is the best place to get all the slugs ?
Same issue here