I would like to create a checklist of species based on a taxon key and a country code, from the API, for use in a demo web app. This is nearly possible in several distinct ways, but never entirely:
- Occurrence metrics can show counts by species (optionally filtered by country), but only one species at a time (and without being able to list all occurring species).
- Occurrence inventories show occurrence counts (optionally filtered by country and parent taxon) split by year, dataset etc., but not split by species.
- Such species lists can be downloaded, but this requires creating downloads (which is too overkill and permanent for my purposes) and requires logging in (which is not ideal in the web app).
- There is an internal API path to do this, e.g.
https://www.gbif.org/api/occurrence/breakdown?advanced=false&country=BE&dimension=speciesKey&taxon_key=10501569
forBE
(Belgium) and10501569
(Chrysis), but this path cannot be used outside of the GBIF domain due to Cross-Origin Resource Sharing and has no equivalent in the public API as far as I can tell.
Is this possible in some way I have not found? If not, can I request adding support for a taxonKey
(or speciesKey
) property to the Occurrence Inventories API?
I can understand something like this having performance reasons but I hope that is not the case here, as it is already supported in the internal API.