Get Taxon
get_taxonResolve an organism in the UniProt taxonomy by providing a numeric NCBI taxon ID or scientific/common name. Returns the direct parent, rank, and optional lineage for taxon ID queries.
Instructions
Resolve an organism in the UniProt taxonomy. Pass a numeric NCBI taxon id (e.g. 9606) for full detail (scientific/common name, rank, the DIRECT parent, and an optional ordered lineage from species up to root), or a scientific/common name to get candidate taxon ids. Use the resolved taxon id with find_proteins(organism_taxon=...). Name matches are ranked best-first (an exact scientific/common-name hit leads, tagged match_quality:'exact'), so matches[0] and next_commands point at the right organism. Numeric-id and common-organism-name lookups are fast (~0 ms for common names); an uncommon name triggers a multi-second taxonomy scan. Signature: get_taxon(taxon, include_lineage=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxon | Yes | NCBI taxon id (digits) or a scientific/common name. | |
| include_lineage | No | Include the ancestor lineage (id lookups only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| _meta | No | ||
| error_code | No | ||
| message | No | ||
| retryable | No | ||
| recovery_action | No | ||
| field | No | ||
| allowed_values | No | ||
| hint | No | ||
| taxon_id | No | ||
| scientific_name | No | ||
| common_name | No | ||
| rank | No | ||
| parent_taxon_id | No | ||
| lineage | No | ||
| query | No | ||
| match_count | No | ||
| matches | No |