[API-users] /species route question/possible problem

Scott Chamberlain myrmecocystus at gmail.com
Wed Feb 7 22:37:05 CET 2018


Hi folks,

Seems like the `/species` route is possibly misbehaving in certain cases. A
user of rgbif reports https://github.com/ropensci/rgbif/issues/287
unexpected results. The same calls but with curl:

curl  '
https://api.gbif.org/v1/species?datasetKey=73605f3a-af85-4ade-bbc5-522bfb90d847&datasetKey=d7c60346-44b6-400d-ba27-8d3fbeffc8a5'
| jq .results\[].datasetKey | wc -l
      10

curl  '
https://api.gbif.org/v1/species?datasetKey=73605f3a-af85-4ade-bbc5-522bfb90d847'
| jq .results\[].datasetKey | wc -l
      10

curl  '
https://api.gbif.org/v1/species?datasetKey=d7c60346-44b6-400d-ba27-8d3fbeffc8a5'
| jq .results\[].datasetKey | wc -l
       7

We'd expect the first curl request to return 17 results given the results
of the datasetKey's individually. Not sure what is going on there. This
route does appear to accept multiple instances of the same parameter, but
not sure why the top curl call there doesn't return 17 results?

Best, Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20180207/9e58320d/attachment.html>


More information about the API-users mailing list