<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 Priyank,<div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">1. What should be my primary key for species table? I see 'speciesKey' column as a candidate, but it is set as null for some species. The occurrence record has a scientific name but no speciesKey. Any suggestions on this? What field I can use as unique identifier for species?</div></blockquote>taxonKey is the primary key, speciesKey points to the accepted species but your occurrence might be linked to a subspecies or even a synonym name</div><div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">2. Vernacular names are missing for almost all the occurrences. Is there any API by which I can also obtain vernacular names for a species? <a href="http://api.gbif.org/v1/species/{int}/vernacularNames" class="">http://api.gbif.org/v1/species/{int}/vernacularNames</a> seems to do the job, but what is {int} (speciesKey?) and how do I get it from occurrence data?</div></div></blockquote>As you said use the species API to get vernacular names. {int} is the taxonKey from the occurrence record. 212, birds in this case:<br class=""><a href="http://api.gbif.org/v1/species/212/vernacularNames" class="">http://api.gbif.org/v1/species/212/vernacularNames</a></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">3. I also need few representative images of the species. <a href="http://api.gbif.org/v1/species/{int}/media" class="">http://api.gbif.org/v1/species/{int}/media</a> seems to do the job, but it returns a large image and I am looking for a small thumbnail image. Any way to accomplish this? Also, any API that can provide me both the vernacular names and imge url in single API call?</div></div></blockquote><div>I am afraid that does not exist. We use an image cache internally that produces thumbnails, but its not part of the public API.</div><div>We also do not have flagged just one image as the representative. And watch out for the media type, it can also be videos or sounds.</div><div><br class=""></div><div>cheers,</div><div>Markus</div><div><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Priyank</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=""></blockquote></div><br class=""></div></div></body></html>