[API-users] Limits on the occurrence search API

Nicolas Noé n.noe at biodiversity.be
Thu Feb 12 12:15:38 CET 2015


Hi,

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:

Here is what the doc says:

- max value for "limit" = 300
- max total records = 1.000.000 (does that means limit * offset?)

What my tests says:

-
http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=3335
=> works, but shouldn't since 300*3335 = 1000500 total records

-
http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=1&offset=200000
=> "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.

-
http://api.gbif.org/v1/occurrence/search?hasCoordinate=true&limit=300&offset=199998
=> "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.

Could you clarify a bit ?

All the best,

Nico


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gbif.org/pipermail/api-users/attachments/20150212/ca153b98/attachment.html>


More information about the API-users mailing list