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.

registry/records API return maximum 1000 results

See original GitHub issue

Problem description

After harvested more than 1000 organisations(publishers), this API https://knowledgenet.co/api/v0/registry/records?aspect=organization-details&limit=20000 returns maximum 1000 organisation records no matter how the limit param was set.

Problem reproduction steps

Copy and Past the URL to an explorer: https://knowledgenet.co/api/v0/registry/records?aspect=organization-details&limit=20000

Screenshot / Design / File reference

image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
t83714commented, Jul 16, 2018

@jevy-wangfei No problem~ I will create a new issue for the changes to organization API and let you once I get a chance to look at it. Regarding collecting all data in one request, it probably won’t be a good idea (in term of reliability) and practical. A better idea of retrieving all records would probably be page by page. Both two APIs supports start & limit parameters for pagination (for registry API better use pageToken. You can use nextPageToken returned from response for next pageToken ). e.g. https://knowledgenet.co/api/v0/registry/records?aspect=organization-details&pageToken=29860&limit=2

0reactions
jevy-wangfeicommented, Jul 16, 2018

@t83714 That would be very useful.

Could you please make this API allowing user to collecting all of the records (no limit of 1000 records) on a single API call? Or in another strategy, can you add a page param to allow user searching by pagination: api/v0/registry/records?aspect=organization-details&limit=100&page=100 ?

As discussed above, this issue came from the registry records API limitation of returned records. I hope this API could also provide a way of fetching all records in a similar as the new organisation searching API.

Thanks you very much Jacky.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I query the REST API to retrieve large numbers of ...
When using the DataCite REST API to retrieve lists of DOIs, the API response generates subsets ... up to 1000 records per page,...
Read more >
How to solve the limit of 1000 work item records obtained ...
When accessing the following URL through OSLC to obtain the xml record, it is found that only a maximum of 1000 records can...
Read more >
Solved: Api limit of 1000 records - getting the next 1000
I used the Power BI Service, Web API to connect to Dotdigital. I created a flow for the Contacts - we have over...
Read more >
Show more than 1000 results on results page - Caspio Forum
To answer your question, correct, there is a limit of 1000 records per result page in Caspio and the map mash-up only plots...
Read more >
How to get REST API search to return more results? - Adaxes
We tried supplying a larger number to the sizeLimit query parameter, but we're still getting a maximum of 1000 objects despite having ...
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