Using R to extract observations of a specific phenological state

Yes, as @pisum noted, rinat only uses the older API which can’t do what you want. It appears that rinat hasn’t been updated in 2-1/2 years, so probably won’t be improved anytime soon. Depending on your R skills, you could in R construct a URL using the newer API (https://api.inaturalist.org/v1/docs/#!/Observations/get_observations) which returns a JSON object, then use R package jsonlite to parse it. Here’s a sample URL that retrieves only plants with plant_phenology=flowering:
https://api.inaturalist.org/v1/observations?user_id=twainwright&term_id=12&term_value_id=13
(term_id=12 is “plant phenology”, and term_value_id=13 is “flowering”, documented under “Search for Annotations” here: https://forum.inaturalist.org/t/how-to-use-inaturalists-search-urls-wiki/63). If you’re trying to retrieve a lot of records, you’ll have to mess with the “per_page” and “page” parameters.
Hope this helps!

3 Likes