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

Markus Döring mdoering at gbif.org
Thu Feb 8 11:04:26 CET 2018


Hi Scott,
indeed it only picks up one of the parameters. Looks like an oversight and probably one that is existing elsewhere too then ;)
Ive logged an issue: https://github.com/gbif/checklistbank/issues/54

Markus



On 7. Feb 2018, at 22:37, Scott Chamberlain <myrmecocystus at gmail.com<mailto:myrmecocystus at gmail.com>> wrote:

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
_______________________________________________
API-users mailing list
API-users at lists.gbif.org<mailto:API-users at lists.gbif.org>
https://lists.gbif.org/mailman/listinfo/api-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20180208/f295cc8f/attachment.html>


More information about the API-users mailing list