Ways to get family name from API get observation result list

I’m curious if there is a good way to get the family name of any get observation result through API calls. results[I].taxon.rank gives the name of the rank, species, tribe, family, etc. ancestor_ids or ancestry gives the ancestry ids, parent_id gives the immediate parent id, but if I would like to display the family name of the retrieved observations, what else in response I could use to request for family name? Any related info appreciated!

In addition to your observation call you could used the API /taxa endpoint or download and search/query the taxa file in the latest DWCA archive, see Using SQL to query iNat’s DWCA taxonomy export

1 Like

see https://forum.inaturalist.org/t/is-there-a-better-way-to-make-api-requests-for-observations-ancestor-taxa/24724.

also https://forum.inaturalist.org/t/add-ancestor-rank-level-to-get-observations-response-api/38992

1 Like

Thank you! Info. in the second link is exactly what I was looking for!

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