<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Verdana">Hi,<br>
<br>
I'm having some doubts about how the hard limits work when using
the occurrence search API. I think this is a documentation/error
message issue rather than a technical one:<br>
<br>
Here is what the doc says:<br>
<br>
- max value for "limit" = 300<br>
- max total records = 1.000.000 (does that means limit *
offset?)<br>
<br>
What my tests says:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=3335">http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=3335</a><br>
=> works, but shouldn't since 300*3335 = 1000500 total
records<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=1&offset=200000">http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=1&offset=200000</a><br>
=> "maximum offset allowed is 200000", but offset IS 200000
(message should be "less than"? 199999 works) Also, this limit
on the offset parameter should be stated in the doc page.<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=199998">http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=199998</a><br>
=> "maximum offset allowed is 200000": here, we probably hit
the 1.000.000 total limit, but the error message refer to the
undocumented (and not hit here) max offset limit.<br>
<br>
Could you clarify a bit ? <br>
<br>
All the best,<br>
<br>
Nico<br>
<br>
<br>
</font></font>
</body>
</html>