> ## Documentation Index
> Fetch the complete documentation index at: https://docs.biohub.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve a UniProt accession

> Resolve a UniProtKB accession or entry name to sequence, metadata, and an Atlas protein hash.

Use the UniProt lookup endpoint when you know a UniProtKB accession or entry name and need the corresponding sequence and Atlas identifier.

**1. Request the UniProt record**

```python theme={null}
import httpx

uniprot_id = "P24941"
response = httpx.get(
    f"https://biohub.ai/esm/protein/api/v1alpha1/uniprot/{uniprot_id}",
    timeout=30,
)
response.raise_for_status()
record = response.json()
```

**2. Verify the resolved identity**

```python theme={null}
print(record["accession"])
print(record["protein_name"])
print(record["organism"])
print(record["sequence_length"])
print(record["protein_hash"])
```

Confirm that the returned identity matches the protein you intended to resolve before chaining the sequence or hash into another request.

**3. Choose the next Atlas request**

Use `protein_hash` with the [protein endpoint](https://docs.biohub.ai/api/protein/atlas/proteins/get.md) to retrieve a stored Atlas record.
Use `sequence` with the [similarity-search endpoint](https://docs.biohub.ai/api/protein/atlas/similarity-search.md) to find proteins with related SAE feature profiles.

The endpoint accepts UniProtKB accessions and entry names.
This endpoint doesn't support UniParc, MGnify, IMG, PDB, or Ensembl identifiers.

See the [UniProt lookup reference](https://docs.biohub.ai/api/protein/atlas/proteins/uniprot.md) for exact error behavior.


## Related topics

- [Retrieve protein and cluster context](https://docs.biohub.ai/learn/tutorials/atlas/retrieve-protein-cluster.md)
- [Atlas API guides](https://docs.biohub.ai/learn/tutorials/atlas/overview.md)
- [ESM Atlas](https://docs.biohub.ai/learn/guides/esm-atlas.md)
- [Resolve a UniProtKB accession to a protein record](https://docs.biohub.ai/api/protein/atlas/proteins/uniprot.md)
- [Biohub MCP ESM Atlas tools](https://docs.biohub.ai/biohub-mcp/esm-atlas-tools.md)
