[API-users] Occurrence Inventories

Matthew Blissett mblissett at gbif.org
Wed Jan 30 14:36:07 CET 2019

On 26/01/2019 12:19, Adriaan van Os wrote:

> Matthew Blissett wrote:
>> The documentation isn't particularly clear, but you can create the 
>> month chart using the search + facet API:
>> https://api.gbif.org/v1/occurrence/search?facet=month&facetLimit=12&limit=0 
> As an example, I looked at the flight time of Nymphalis antiopa, which 
> is known to be around April-May and August-September. The GBIF 
> Occurrences per Month chart 
> <https://www.gbif.org/occurrence/charts?has_coordinate=true&has_geospatial_issue=false&taxon_key=5130682> 
> shows a lot of occurrences in January. I tracked these down to Finish 
> datasets with eventDate January 01 at 00:00 but for a valid year.

This is an unfortunate limitation of our current system.  We're working 
on an improvement as part of a larger effort to update our occurrence 
indexing, but for the moment month-only or year-only dates are indexed 
as the first of the month/year.  We don't add an issue flag to these 
dates, but even if we did, another limitation of the API is it's not 
possible to exclude issues in the fast searches or charts.

We can't set an event date of e.g. 2016-00-00, as that's not a valid ISO 
format date, but we can look at leaving the "month" and "day" fields empty.



More information about the API-users mailing list