GET xrefs/id/{id}

ensembl.org:ensembl-rest-api

Summary: Get cross-references
Operation ID: getXrefsById
Auth: none

Get cross-references (external database links) for an Ensembl feature. Given an Ensembl ID, returns all external database references including UniProt, HGNC, MIM, RefSeq, GO terms, and other database IDs. Essential for linking Ensembl data to other bioinformatics resources. Shows what this feature is called in other databases.

Original spec description

Perform lookups of Ensembl Identifiers and retrieve their external references in other databases (e.g., HGNC, Entrez Gene, UniProt).

Usage Tips

- Returns a lot of data - filter by external database if looking for specific references - The `dbname` field tells you which external database (e.g., 'Uniprot/SWISSPROT', 'HGNC', 'RefSeq_peptide') - The `display_id` is the ID in that external database - Use the `db_type` parameter to restrict to specific database types - Some xrefs are 'dependent' xrefs (derived from other xrefs) - check the `linkage_type`

Parameters (3)

db_type (string, query, optional)

Filter by external database name

id (string, path, required)

Ensembl stable ID

object_type (string, query, optional)

Filter by object type

Constraints: {'enum': ['Gene', 'Transcript', 'Translation']}

Examples (1)

TitleTypeURLAction
Get cross-references for BRCA2 gene probe-gate https://rest.ensembl.org/xrefs/id/ENSG00000139618?content-type=application/json

No probe data for this endpoint yet.