Skip to content

Instantly share code, notes, and snippets.

View nickynicolson's full-sized avatar

Nicky Nicolson nickynicolson

View GitHub Profile
@nickynicolson
nickynicolson / Querying_GBIF_by_WCVP_taxonomy.md
Last active December 12, 2025 15:34
Querying GBIF resources by WCVP

Aim

We want to get summary stats about the Kew herbarium by WCVP taxonomy at family level, using the herbarium data in GBIF.

Any field that is searchable in the GBIF data portal is also eligible for faceting, eg it is possible to get a summary report of the numbers of records in each country using this API call:

https://api.gbif.org/v1/occurrence/search?dataset_key=cd6e21c8-9e8a-493a-8a76-fbf7862069e5&facet=country&limit=0&facetLimit=1000

Though each occurrence record has a family field, it is not used for searching so cannot be used to facet.