Retreiving the taxon ID based on the taxon name

Hello

I would like to build an url that would point toward the taxon page of iNaturalist based on the taxon name

I can easily point toward a search on the taxon name with an url like :
https://www.inaturalist.org/observations?taxon_name=Galeruca%20pomonae

However I would prefer to point to the taxon page instead :
https://www.inaturalist.org/taxa/547816-Galeruca-pomonae

The url with just the taxon id works fine :
https://www.inaturalist.org/taxa/547816

However, I don’t know how I can retrieve (via the API?) the taxon ID in an automated way based on a taxon name.

Or is it possible to build an url like :
https://www.inaturalist.org/taxa?taxon_name=Galeruca%20pomonae

NB : I’m not interested to do that manually. The idea is to build a script that will open several web pages with information about the distribution of a species. Also, I’m not interested here in downloading the data.

Thanks
Gilles

https://www.inaturalist.org/taxa/Galeruca%20pomonae should do it

Exactly what I wanted but even simpler than expected !
Thanks a lot ! I just feel quite stupid now…

Haha no worries, I just found out about this trick recently too. :)

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