<div dir="ltr"><div><br></div><div>Hi All,</div><div><br></div><div>I am currently trying to display the GBIF data in a format which is currently not supported by the GBIF API. For exmaple, displaying the list of species within few KM radius from a specific location ordered by species occurrence count.</div><div><br></div><div>To accomplish this, I decided to use the occurrence download API to fetch the data for all the required regions, store it in a database and query as per my requirement. I decided to go with following 2 simple tables in the database, </div><div><ol><li><b>Species</b> - stores species related data like scientific name, vernacular names, representative image url, etc<br></li><li><b>Occurences</b> - stores occurence related data like eventDate, gbifid, decimalLatitude, decimalLongitude, etc</li></ol></div><div>After having a quick look at the downloaded occurrences.txt file, following queries came to my mind,</div><div><br></div><div>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><div><br></div><div>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">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><br></div><div>3. I also need few representative images of the species. <a href="http://api.gbif.org/v1/species/{int}/media">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><br></div><div>Thanks,</div><div>Priyank</div>
</div>