The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

inatpick

An R package for downloading photos and metadata from iNaturalist via its API. Supports filtering by taxon, place, user, and annotation.

Installation

# Install from GitHub
remotes::install_github("andresarb/inatpick")

Usage

library(inatpick)

# 0. Find taxon and place IDs by name
inat_search_taxon("Drosera", rank = "genus")
inat_search_place("United Kingdom")

# 1. Fetch observations
obs <- inat_fetch(
  taxon_id      = 51935,    # Drosera genus
  place_id      = 6857,     # United Kingdom
  user_login    = "andresrb",
  annotation    = c("green_leaves", "flowers"),
  quality_grade = "research",
  licensed      = TRUE
)

# 2. Download photos and metadata to the same folder
inat_download(obs, out_dir = "drosera_photos", size = "large")

# Download photos only, no metadata
inat_download(obs, out_dir = "drosera_photos", metadata = FALSE)

# 3. Export metadata separately if needed
inat_metadata(obs, path = file.path("drosera_photos", "metadata.csv"))

Functions

Function Description
inat_search_taxon() Search for a taxon by name and retrieve its ID
inat_search_place() Search for a place by name and retrieve its ID
inat_fetch() Fetch observations from the iNaturalist API
inat_download() Download photos (and optionally metadata) to a local folder
inat_metadata() Export observation metadata to CSV
inat_annotations Table of all available annotation labels and IDs

Arguments

inat_search_taxon()

inat_search_place()

inat_fetch()

inat_download()

inat_metadata()

Finding IDs

Use the search functions or find IDs directly in iNaturalist URLs:

Photo Licenses & Attribution

inatpick is MIT licensed. However, photos downloaded from iNaturalist retain their own licenses as set by individual observers (CC0, CC-BY, CC-BY-NC, etc.). Users are responsible for respecting these licenses when using downloaded images for research or publication. Use licensed = TRUE in inat_fetch() to restrict downloads to CC-licensed photos only.

See iNaturalist Terms of Service for more information.

License

MIT © Andrés Romero-Bravo

About

This package was developed as a personal project to support biodiversity research using iNaturalist data. It is maintained on a best-effort basis.

For bug reports, feature requests, or general questions, please open an issue on GitHub.

Disclaimer: This package is provided as-is, without warranty of any kind. Users are responsible for complying with iNaturalist’s Terms of Service and respecting the licenses of downloaded photos.

AI Disclosure

This package was developed with the assistance of Claude (Anthropic). All code has been reviewed and tested by the author.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.