<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Peter,<div class="">I am surprised we show numOccurrences in the search results. As this is changing in real time we cannot store that in our search index.</div><div class="">I would think this property should not be exposed in species search results. The best way to get occurrence counts is using the occurrence metrics service btw, not the search:</div><div class=""><br class=""></div><div class=""><a href="http://api.gbif.org/v1/occurrence/count?taxonKey=3134959" class="">http://api.gbif.org/v1/occurrence/count?taxonKey=3134959</a></div><div class=""><a href="http://api.gbif.org/v1/species/3134959" class="">http://api.gbif.org/v1/species/3134959</a></div><div class=""><br class=""></div><div class="">Markus</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 17 Nov 2015, at 16:17, Peter Desmet <<a href="mailto:peter.desmet.work@gmail.com" class="">peter.desmet.work@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">In the species/search API, one of the properties of a taxon is "numOccurrences", which I assume is the number of occurrences across GBIF for this taxon. The value seems to be always "0" though.</div><div class=""><br class=""></div><div class="">Example:</div><div class=""><br class=""></div><div class=""><a href="http://api.gbif.org/v1/species/search?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&rank=species&status=accepted" class="">http://api.gbif.org/v1/species/search?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&rank=species&status=accepted</a><br class=""></div><div class=""><br class=""></div><div class="">First result:</div><div class=""><br class=""></div><div class=""><a href="http://www.gbif.org/species/3134959" class="">http://www.gbif.org/species/3134959</a><br class=""></div><div class=""><br class=""></div><div class="">On that page you can see 47,617 occurrences, 332 infraspecies. The API however gives:</div><div class=""><br class=""></div><div class="">numOccurrences: 0</div><div class="">numDescendants: 332 (= correct)</div><div class=""><br class=""></div><div class="">Is this a bug?</div><div class=""><br class=""></div><div class="">Related:</div><div class=""><br class=""></div><div class="">- I know I can find the number of occurrences for a taxon by doing an occurrence search (<a href="http://api.gbif.org/v1/occurrence/search?taxonKey=3134959" class="">http://api.gbif.org/v1/occurrence/search?taxonKey=3134959</a>), but that means doing an extra call per taxon.</div><div class=""><br class=""></div><div class="">- Why does the species API list far fewer properties per taxon (<a href="http://api.gbif.org/v1/species/3134959" class="">http://api.gbif.org/v1/species/3134959</a>) than the species search API? E.g. numOccurrences, descriptions, etc.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Peter</div><div class=""><br class=""></div></div>
_______________________________________________<br class="">API-users mailing list<br class=""><a href="mailto:API-users@lists.gbif.org" class="">API-users@lists.gbif.org</a><br class="">http://lists.gbif.org/mailman/listinfo/api-users<br class=""></div></blockquote></div><br class=""></div></body></html>