[API-users] Requesting Occurrence Data for Large List of Species

Benjamin Feinsilver benjamin.feinsilver at gmail.com
Mon Apr 8 05:07:35 CEST 2019


Hi Tim,

I received an error message (via email) when attempting to post 300 taxon
keys:

"We are sorry, but an error has occurred processing your download."

Please see attached query file.

Curl command:

curl --include --user username:password --header "Content-Type:
application/json" --data @query_1.json
http://api.gbif.org/v1/occurrence/download/request

I received a HTTP status code "201 Created."

Thanks,

Ben

On Wed, Apr 3, 2019 at 3:52 AM Tim Robertson <trobertson at gbif.org> wrote:

> Hi Benjamin,
>
>
>
> Download will be best.
>
>
>
> However, there are limits and you will not be able to push 3000 in.
>
> You could either split it into groups of e.g. 300, or use a higher taxon
> and then implement a post-filter to throw away those not in your list (the
> latter is how I would do it).
>
>
>
> I am sorry for this nuisance, and this is a known issue that we do aim to
> address: https://github.com/gbif/portal-feedback/issues/1768
>
>
>
> Thanks,
>
> Tim
>
>
>
>
>
> *From: *API-users <api-users-bounces at lists.gbif.org> on behalf of
> Benjamin Feinsilver <benjamin.feinsilver at gmail.com>
> *Date: *Wednesday, 3 April 2019 at 09.33
> *To: *"api-users at lists.gbif.org" <api-users at lists.gbif.org>
> *Subject: *[API-users] Requesting Occurrence Data for Large List of
> Species
>
>
>
> Hello,
>
>
>
> If I have a list of around 3,000 species, and I would like to request
> occurrence data for each species, is it more efficient to use the Search or
> Download API?
>
>
>
> If using the Download API, could I include the list of species in an
> external query file and use the "in" predicate? For example:
>
>
>
> {
>   "creator":"userName",
>   "notification_address": ["userName at example.org"],
>   "predicate":
>   {
>     "type":"in",
>     "key":"SCIENTIFIC_NAME",
>     "values":["cat1","cat2","cat3"]
>   }
> }
>
>
>
> Thanks,
>
>
>
> Ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20190407/4332b2ee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: query_1.json
Type: application/json
Size: 9969 bytes
Desc: not available
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20190407/4332b2ee/attachment.json>


More information about the API-users mailing list