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

# UniProt

> The UniProt protein sequence and function knowledgebase (UniProtKB, UniRef, UniParc): query search, entry retrieval and identifier mapping.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/uniprot.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=bc270a1ffc3d65e2b5f144b65e5d804e)

[Web Catalog · Science](https://docs.webrouter.net/data-apis.md?category=science)

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://www.uniprot.org/help/api) · Serves `uniprot.org`

## Notes

* Keyless. Ask for format=json; without it or an Accept header some endpoints answer another format.
* Search pages with a cursor: the next page's full URL is in the Link response header (rel="next"), the total in x-total-results. Use size=500 for speed.
* Query syntax is UniProt's own, e.g. (reviewed:true) AND (organism\_id:9606) or gene:BRCA1.

## Endpoints

GET

Search a UniProt dataset

One page of entries matching a query, from UniProtKB or another dataset.

[Open](#uniprot-entries-search)

GET

Stream all matching entries

Every entry matching a query in one response, without paging.

[Open](#uniprot-entries-stream)

GET

Get one entry

A single UniProtKB, UniRef or UniParc entry by its identifier.

[Open](#uniprot-entries-get)

POST

Start an ID mapping job

Submit identifiers to map from one database to another (e.g. UniProtKB\_AC-ID to Ensembl).

[Open](#uniprot-idmapping-run)

GET

Check an ID mapping job

jobStatus of a mapping job (FINISHED when ready).

[Open](#uniprot-idmapping-status)

GET

Get ID mapping results

One page of from/to pairs of a finished mapping job.

[Open](#uniprot-idmapping-results)

GET

List mappable databases

Every database pair the ID mapping service accepts, with the rules for valid from/to combinations.

[Open](#uniprot-idmapping-fields)

### Search a UniProt dataset

GET

`/{dataset}/search`

`uniprot.entries.search`

One page of entries matching a query, from UniProtKB or another dataset.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataset` required</td><td>string</td><td>path</td><td>Dataset: uniprotkb, uniref, uniparc, taxonomy, etc. Example `uniprotkb`</td></tr>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>UniProt query; empty matches every entry. Example `(reviewed:true) AND (organism_id:9606) AND gene:TP53`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>json, tsv, fasta, xml, txt, list, gff, obo, rdf or xlsx (not every dataset offers every format). Example `json`</td></tr>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated return columns (tsv, xlsx and json only), e.g. accession,gene\_names,organism\_name. Example `accession,gene_names,protein_name`</td></tr>
    <tr><td>`size`</td><td>integer</td><td>query</td><td>Results per page. Example `25`</td></tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the previous page's Link header.
      </td>
    </tr>

    <tr>
      <td>
        `includeIsoform`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        UniProtKB only: include isoforms.
      </td>
    </tr>

    <tr>
      <td>
        `compressed`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true to gzip the response.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/api_queries) · Same job: [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-ids-map)

```python Python theme={null}
router.call_data_api("uniprot.entries.search", {'dataset': 'uniprotkb', 'query': '(reviewed:true) AND (organism_id:9606) AND gene:TP53', 'format': 'json', 'fields': 'accession,gene_names,protein_name', 'size': 25})
```

```text MCP theme={null}
call_data_api(endpoint="uniprot.entries.search", params={"dataset": "uniprotkb", "query": "(reviewed:true) AND (organism_id:9606) AND gene:TP53", "format": "json", "fields": "accession,gene_names,protein_name", "size": 25})
```

### Stream all matching entries

GET

`/{dataset}/stream`

`uniprot.entries.stream`

Every entry matching a query in one response, without paging.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataset` required</td><td>string</td><td>path</td><td>Dataset: uniprotkb, uniref, uniparc, taxonomy, etc. Example `uniprotkb`</td></tr>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>UniProt query. Example `(organism_id:2697049) AND (reviewed:true)`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>json, tsv, fasta, xml, txt, list, gff, obo, rdf or xlsx (not every dataset offers every format). Example `json`</td></tr>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated return columns (tsv, xlsx and json only), e.g. accession,gene\_names,organism\_name. Example `accession,gene_names,protein_name`</td></tr>

    <tr>
      <td>
        `includeIsoform`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        UniProtKB only: include isoforms.
      </td>
    </tr>

    <tr>
      <td>
        `compressed`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true to gzip the response.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/api_queries) · Same job: [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-ids-map)

```python Python theme={null}
router.call_data_api("uniprot.entries.stream", {'dataset': 'uniprotkb', 'query': '(organism_id:2697049) AND (reviewed:true)', 'format': 'json', 'fields': 'accession,gene_names,protein_name'})
```

```text MCP theme={null}
call_data_api(endpoint="uniprot.entries.stream", params={"dataset": "uniprotkb", "query": "(organism_id:2697049) AND (reviewed:true)", "format": "json", "fields": "accession,gene_names,protein_name"})
```

> [!NOTE]
>
> * Expensive: parallel stream calls get 429; at most 10,000,000 entries. Prefer entries.search pages for large sets.

### Get one entry

GET

`/{dataset}/{id}`

`uniprot.entries.get`

A single UniProtKB, UniRef or UniParc entry by its identifier.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataset` required</td><td>string</td><td>path</td><td>Dataset: uniprotkb, uniref, uniparc, taxonomy, etc. Example `uniprotkb`</td></tr>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Accession or cluster id, e.g. P12345, UniRef90\_P99999, UPI000000001F. Example `P12345`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>json, tsv, fasta, xml, txt, list, gff, obo, rdf or xlsx (not every dataset offers every format). Example `json`</td></tr>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma-separated return columns (tsv, xlsx and json only), e.g. accession,gene\_names,organism\_name. Example `accession,gene_names,protein_name`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/api_retrieve_entries) · Same job: [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-annotations-get)

```python Python theme={null}
router.call_data_api("uniprot.entries.get", {'dataset': 'uniprotkb', 'id': 'P12345', 'format': 'json', 'fields': 'accession,gene_names,protein_name'})
```

```text MCP theme={null}
call_data_api(endpoint="uniprot.entries.get", params={"dataset": "uniprotkb", "id": "P12345", "format": "json", "fields": "accession,gene_names,protein_name"})
```

> [!NOTE]
>
> * UniRef ids are not stable across releases. A removed entry answers 410.

### Start an ID mapping job

POST

`/idmapping/run`

`uniprot.idmapping.run`

Submit identifiers to map from one database to another (e.g. UniProtKB\_AC-ID to Ensembl).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ids` required</td><td>string</td><td>body</td><td>Comma-separated identifiers, up to 100,000. Example `P21802,P12345`</td></tr>
    <tr><td>`from_db` required</td><td>string</td><td>body</td><td>Source database name, as /configure/idmapping/fields lists it. Example `UniProtKB_AC-ID`</td></tr>
    <tr><td>`to` required</td><td>string</td><td>body</td><td>Target database name. Example `UniRef90`</td></tr>

    <tr>
      <td>
        `taxId`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Taxonomy id, for the database pairs that accept one.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/id_mapping_prog) · Same job: [BounceBan](https://docs.webrouter.net/data-apis/bounceban.md#bounceban-bulk-create), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-filter), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-task-create), [Extruct AI](https://docs.webrouter.net/data-apis/extruct.md#extruct-discovery-create), [Filtrat](https://docs.webrouter.net/data-apis/filtrat.md#filtrat-bulk-create), [FullEnrich](https://docs.webrouter.net/data-apis/fullenrich.md#fullenrich-contact-enrich)

```python Python theme={null}
router.call_data_api("uniprot.idmapping.run", {'ids': 'P21802,P12345', 'from_db': 'UniProtKB_AC-ID', 'to': 'UniRef90'})
```

```text MCP theme={null}
call_data_api(endpoint="uniprot.idmapping.run", params={"ids": "P21802,P12345", "from_db": "UniProtKB_AC-ID", "to": "UniRef90"})
```

> [!NOTE]
>
> * A read over POST: it starts a mapping job and returns a jobId. Poll idmapping.status, then fetch idmapping.results.

### Check an ID mapping job

GET

`/idmapping/status/{jobId}`

`uniprot.idmapping.status`

jobStatus of a mapping job (FINISHED when ready).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `jobId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The jobId idmapping.run returned.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/id_mapping_prog) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-find-emails-status), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-requests-get), [Anymail Finder](https://docs.webrouter.net/data-apis/anymailfinder.md#anymailfinder-bulk-get), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-actors-list), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-marketmap-get), [BounceBan](https://docs.webrouter.net/data-apis/bounceban.md#bounceban-single-status)

> [!NOTE]
>
> * A finished job answers 303 with the results URL in the Location header.

### Get ID mapping results

GET

`/idmapping/results/{jobId}`

`uniprot.idmapping.results`

One page of from/to pairs of a finished mapping job.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `jobId`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The jobId idmapping.run returned.
      </td>
    </tr>

    <tr><td>`size`</td><td>integer</td><td>query</td><td>Results per page. Example `500`</td></tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the previous page's Link header.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json, tsv, fasta, xml, txt, list, gff, obo, rdf or xlsx (not every dataset offers every format). Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.uniprot.org/help/id_mapping_prog) · Same job: [BetterContact](https://docs.webrouter.net/data-apis/bettercontact.md#bettercontact-contacts-enrich-result), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-snapshot-download), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-routines-results), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-task-results), [Dune](https://docs.webrouter.net/data-apis/dune.md#dune-execution-results), [Forager](https://docs.webrouter.net/data-apis/forager.md#forager-person-work-email-result)

> [!NOTE]
>
> * Mapped to UniProtKB, UniRef or UniParc, the full entries are at /idmapping/\{uniprotkb|uniref|uniparc}/results/\{jobId}; /idmapping/stream/\{jobId} returns all at once.

### List mappable databases

GET

`/configure/idmapping/fields`

`uniprot.idmapping.fields`

Every database pair the ID mapping service accepts, with the rules for valid from/to combinations.

Input

No inputs.

[Vendor docs](https://www.uniprot.org/help/id_mapping_prog) · Same job: [PubMed (NCBI E-utilities)](https://docs.webrouter.net/data-apis/pubmed.md#pubmed-info)

```python Python theme={null}
router.call_data_api("uniprot.idmapping.fields")
```

```text MCP theme={null}
call_data_api(endpoint="uniprot.idmapping.fields")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.