Get Protein Variants
get_protein_variantsRetrieve natural protein variant annotations from UniProt, including position, substitution, HGVS notation, disease associations, and dbSNP IDs. Optionally filter to disease-linked variants only.
Instructions
Return natural-variant annotations for an entry: position, wild-type residue, amino-acid substitution, an HGVS-style notation (e.g. L176F) for simple substitutions, variant_type (substitution|other), free-text description, structured linked diseases, and dbsnp rsIDs. Set disease_associated_only=true to keep only disease-linked variants. Signature: get_protein_variants(accession, limit=, disease_associated_only=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accession | Yes | UniProtKB accession, e.g. P05067 (isoforms like P05067-2 accepted). | |
| limit | No | Max variants to return. | |
| disease_associated_only | No | Return only variants linked to a disease. |
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 | ||
| accession | No | ||
| count | No | ||
| variants | No | ||
| truncated | No |