[API-users] How to query genus names with the GBIF API
Szlamka József
szlajozs at gmail.com
Thu Sep 7 08:36:39 CEST 2017
Dear Scott,
Many thanks for your answer. I also added the "&highertaxonKey=6" param
to narrow the results for plant genera only.
To be more precise what I exactly wish to achieve is as follows:
1./
I only want to search within the "Plantae" kingdom.
2./
Say, I look for the GENUS name "Adonis" but I only remember that the
name starts with "Ado".
3./
So my ideal API call would run a wildcard search within PLANT GENERA
names for "Ado*" and would result in a list of ALL (without limit) plant
genera names starting with "Ado*".
I played with the "/species/match", "/species/search" and
"/species/suggest" sub-apis and with the "q" and "name" params. They
don't accept wildcards and don't give the expected results for name
chunks without wildcards.
Now my only hope is that I left out some constellations or misused
something.
József
2017-09-06 23:21 keltezéssel, Scott Chamberlain írta:
> Have you tried something like
>
> http://api.gbif.org/v1/species/search?datasetkey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&rank=GENUS
>
> where datasetkey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c is for the GBIF
> backbone taxonomy
>
> Scott
>
> On Wed, Sep 6, 2017 at 2:10 PM Szlamka József <szlajozs at gmail.com
> <mailto:szlajozs at gmail.com>> wrote:
>
> Hello to all list members,
>
> I'm new on this list and also new to the GBIF API. I'd like to get a
> list of all the genus names occuring in the GBIF database. After
> several
> hours of trying with the API, and no success, I found this mailing
> list.
> I hope that API guru members on the list can show me the right way or
> tell if this is not possible at all.
>
> Thank you in advance.
>
> _______________________________________________
> 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/20170907/d06b85fc/attachment.html>
More information about the API-users
mailing list