How to download iNat data?

For my project i am looking to create a map with occurrence data drawn by iNaturalist or the GBIF. But i can’t seem to be able to download the relevant R packages needed in order to download the data. For example im trying to download the rinat package but it keeps saying not available (for R version 3.6.1), i currently have the latest version 3.6.1.

Would anybody be able to help me drawing the occurence data? and or is there an easy way of downloading this data? I need the geolocation so i can create a map.

Thank you

1 Like

You can try looking at Example 4 from the range map tutorial.

2 Likes

you don’t necessarily have to download occurrence-level data to create a map. both iNaturalist and GBIF offer occurence raster tiles that you can use to make a map (https://api.inaturalist.org/v1/docs/#/Observation_Tiles and https://www.gbif.org/developer/maps, respectively). if you don’t know how to work with XYZ tiles, there are lots of tutorials available if you do an internet search, or you can look at https://forum.inaturalist.org/t/looking-for-inaturalist-observation-map-visualisation-suggestions/7322/10.

If you must download occurence-level data, and you must do it via R, you should know that rinat is relatively old and hits the deprecated iNaturalist API. it would be best if you’re downloading tons of data to get it via CSV like jwidness suggests (and then parse the CSV from R), or else you could hit the iNat API (http://api.inaturalist.org/v1/docs/#!/Observations/get_observations) or GBIF API (https://www.gbif.org/developer/occurrence) directly from R. if you’re not sure how to do that, then you could read up on that:

… or else hanly wrote a package that hits the current iNat API:

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.