Allowed API request fields for an observation

Hi all,

I have been working on a data analysis script for a project that is hosted by the organization that I work at and I would like to make it usable with ease at a later date for re-analysis. Because of this, I wrote a script that requests data from the iNat API that is then analysed.

The analysis involves processing observation data from the project (I have successfully filtered by project and another specific criterion). The first question I wanted to answer involved the dates of the observations which I obtained using the example observed_on.

My current issue: I want to do more analysis but don’t know the field names! Is there any resource that lists the field names (such as observed_on) that can be requested from the API? Any advice would be greatly appreciated!

Thank you!

api.inaturalist.org gives you both parameters and model responses. i assume you’re using v2, which is why you’re not sure what the field names are. for v2, you could just (temporarily) pass fields=all, and that should return all fields in the response. that may help you see actual data in context to figure out which fields might be best for any given purpose. if you’re using v1, that should return all fields in the response regardless.