Skip to content

Instantly share code, notes, and snippets.

@CliffordAnderson
Forked from baskaufs/gbif-api.txt
Created February 12, 2016 21:27
Show Gist options
  • Save CliffordAnderson/3c86c22cc54c8321a366 to your computer and use it in GitHub Desktop.
Save CliffordAnderson/3c86c22cc54c8321a366 to your computer and use it in GitHub Desktop.
Some test API calls to get JSON with geocoordinates from the Global Biodiversity Information Facility (GBIF)
See http://www.gbif.org/developer/summary for background.
Find the single occurrence with identifier http://bioimages.vanderbilt.edu/vanderbilt/7-314#2002-06-14
http://api.gbif.org/v1/occurrence/search?occurrenceID=http%3A%2F%2Fbioimages.vanderbilt.edu%2Fvanderbilt%2F7-314%232002-06-14
Note: the occurrenceID is URLencoded.
Find occurrences
- with scientificName=Quercus%20macrocarpa (bur oak, note: space between genus and species is URLencoded as "%20")
- with decimalLatitude between 35.81 and 36.45
- with decimalLongitude between -87.21 and -86.27
http://api.gbif.org/v1/occurrence/search?limit=50&offset=0scientificName=Quercus%20macrocarpa&decimalLatitude=35.81,36.45&decimalLongitude=-87.21,-86.27
http://api.gbif.org/v1/occurrence/search?limit=300&offset=0&scientificName=Quercus%20macrocarpa&decimalLatitude=30.0,40.0&decimalLongitude=-100.0,-90.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment