Taxon_id to TAXREF ID

not sure exactly why you need to translate iNaturalist’s taxon_id to the ID in TAXREF, but i think i would try one or more of 3 options below:

  1. you might be able to go through through Wikidata. just for example, you can see in the Wikidata page for Trifolium repens (https://www.wikidata.org/wiki/Q148675) that the iNaturalist ID is 55745 and the TAXREF ID is 127454. not every species is going to have an entry (or a complete entry) in Wikidata though. you could use the Wikidata Query Service to return this information systematically: https://query.wikidata.org/.
  2. you could try looking up taxa in TAXREF based on on scientific name and taxon rank (ex. https://taxref.mnhn.fr/api/taxa/search?version=15.0&scientificNames=trifolium%20repens&taxonomicRanks=ES)
  3. you could try translating from iNat taxon id to TAXREF ID via GBIF ID. it looks like the TAXREF API does provide the GBIF ID given a TAXREF ID (https://taxref.mnhn.fr/api/taxa/127454/externalIds). i’m not sure where the iNat-GBIF cross-reference lives, but iNat pushes data to GBIF. so i assume there must be a cross-reference (probably in GBIF?) that defines iNat ID to GBIF ID.
4 Likes