Given an Observation id, get a list of project

Is there a way via the API to the Projects to which an Observation belongs, given the observation id? (I’m interested only in whether this can be done via the API; I’m not interested in whether those projects can be displayed by other means.)

You can only get the list of Traditional projects, plus Collection/Umbrella Projects which the user has joined. An observation doesn’t know about the Collection/Umbrella projects that it is in if the user hasn’t joined the project.

If you make this API call:
https://api.inaturalist.org/v1/observations/{id}?include_new_projects=true

The results will include project_ids with Traditional projects and non_traditional_projects with joined Collection/Umbrella projects.

4 Likes

what is the use case for this?

jwldness: Thanks so much!

Some observations appear in both iNat and MushroomObserver.
In MO, it would have been be a nice touch to list the iNat projects.
(The fallback is that the MO observation has a link to the iNat counterpart, and MO users can follow that link if they’re interested in a complete list of the relevant iNat projects.)

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