inspirehep / rest-api-doc

Documentation of the INSPIRE REST API
https://inspirehep.net
Creative Commons Attribution Share Alike 4.0 International
40 stars 10 forks source link

max number of results — size parameter #14

Closed sduquemesa closed 3 years ago

sduquemesa commented 3 years ago

When I try to get a page with the number of results set to 1000 (the max number of results allowed by the documentation API), i.e. the parameter size=1000, a 502 bad gateway error is returned.

This is the GET request: https://inspirehep.net/api/literature?q=cn+cms+or+cn+atlas+or+cn+lhcb+or+cn+alice&sort=mostrecent&page=1&size=1000

michamos commented 3 years ago

It being allowed in principle doesn't mean it's a good idea. LHC collaboration records are huge (due to the large number of authors), so the time required to generate the response may exceed our server timeout (currently set to 2 min).

There are several ways you could make this work: