gbif-api icon indicating copy to clipboard operation
gbif-api copied to clipboard

API doesn't return `isInvasive` field in speciesProfiles endpoint

Open damianooldoni opened this issue 2 years ago • 2 comments

Hi! I have just discovered that the speciesProfile related information retrieved via API doesn't contain all information I can see via web. Example below: isInvasive field is not available via API.

web (verbatim): https://www.gbif.org/species/162493882/verbatim API: https://api.gbif.org/v1/species/162493882/speciesProfiles

Difficult for me to say if this is a general problem or a dataset/taxonKey specific. Could you please help me about this? Thanks.

damianooldoni avatar Jul 04 '23 12:07 damianooldoni

There is indeed no invasive field in the SpeciesProfile class that backs this service. Seems to be an oversight not discovered for a decade :)

mdoering avatar Jul 04 '23 13:07 mdoering

The web site will have used this API call for that page: https://api.gbif.org/v1/species/162493882/verbatim

MattBlissett avatar Jul 04 '23 13:07 MattBlissett