> ## 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.

# STRING

> Protein-protein interaction networks and functional enrichment for thousands of organisms: identifier mapping, networks, interaction partners, enrichment, annotations and homology.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/string-db.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=97221799d8f6f82c3761f3f96cb9094d)

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

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://string-db.org/help/api/)

## Notes

* Keyless. Paths carry the output format first: /api/\{format}/\{method}.
* STRING asks for one call at a time with about a second between calls, and for bulk work to download its files instead.
* Map names to STRING ids with ids.map first; calls with resolved ids are faster and unambiguous. When no identifier resolves STRING answers 404.
* string-db.org is the current development release; production code should pin a version host such as version-12-5.string-db.org (the version method reports it).
* Multiple identifiers are newline-separated (%0d in a GET); very long lists exceed GET URL limits.

## Endpoints

GET

Map identifiers to STRING ids

Resolve protein names or accessions to STRING ids with their preferred names.

[Open](#string-db-ids-map)

GET

Get an interaction network

Interactions among the given proteins, with per-channel evidence scores.

[Open](#string-db-network-get)

GET

List interaction partners

Every partner of each given protein, most confident first.

[Open](#string-db-partners-list)

GET

Run functional enrichment

GO, KEGG, Pfam and other term enrichment of a protein set, with FDR.

[Open](#string-db-enrichment-get)

GET

Get functional annotations

Every term each protein is annotated with (GO, Pfam, InterPro, Reactome and more).

[Open](#string-db-annotations-get)

GET

Get homology scores

Pairwise similarity bit-scores among the given proteins.

[Open](#string-db-homology-get)

GET

Get the STRING version

Current version and its stable, version-pinned address.

[Open](#string-db-version-get)

### Map identifiers to STRING ids

GET

`/{format}/get_string_ids`

`string-db.ids.map`

Resolve protein names or accessions to STRING ids with their preferred names.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id, e.g. 9606 for human. Example `9606`</td></tr>
    <tr><td>`echo_query`</td><td>integer</td><td>query</td><td>1 to add the input identifier as a column. One of `0`, `1`</td></tr>
    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/) · Same job: [UniProt](https://docs.webrouter.net/data-apis/uniprot.md#uniprot-entries-search)

```python Python theme={null}
router.call_data_api("string-db.ids.map", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.ids.map", params={"format": "json", "identifiers": "TP53", "species": 9606, "caller_identity": "my-agent"})
```

### Get an interaction network

GET

`/{format}/network`

`string-db.network.get`

Interactions among the given proteins, with per-channel evidence scores.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml, or psi-mi, psi-mi-tab, image, highres\_image, svg. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id; required for networks of more than 10 proteins. Example `9606`</td></tr>
    <tr><td>`required_score`</td><td>integer</td><td>query</td><td>Minimum combined interaction score, 0-1000; the default depends on the network. Example `700`</td></tr>
    <tr><td>`network_type`</td><td>string</td><td>query</td><td>functional (default), physical or regulatory. One of `functional`, `physical`, `regulatory`</td></tr>

    <tr>
      <td>
        `add_nodes`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Add this many partner proteins, most confident first (10 automatically for a single protein).
      </td>
    </tr>

    <tr><td>`show_query_node_labels`</td><td>integer</td><td>query</td><td>1 to use your submitted names as preferredName. One of `0`, `1`</td></tr>
    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/)

```python Python theme={null}
router.call_data_api("string-db.network.get", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'required_score': 700, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.network.get", params={"format": "json", "identifiers": "TP53", "species": 9606, "required_score": 700, "caller_identity": "my-agent"})
```

### List interaction partners

GET

`/{format}/interaction_partners`

`string-db.partners.list`

Every partner of each given protein, most confident first.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml, or psi-mi, psi-mi-tab. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id, e.g. 9606 for human. Example `9606`</td></tr>
    <tr><td>`limit`</td><td>integer</td><td>query</td><td>Most partners returned per protein. Example `10`</td></tr>
    <tr><td>`required_score`</td><td>integer</td><td>query</td><td>Minimum combined interaction score, 0-1000; the default depends on the network. Example `700`</td></tr>
    <tr><td>`network_type`</td><td>string</td><td>query</td><td>functional (default), physical or regulatory. One of `functional`, `physical`, `regulatory`</td></tr>
    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/)

```python Python theme={null}
router.call_data_api("string-db.partners.list", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'limit': 10, 'required_score': 700, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.partners.list", params={"format": "json", "identifiers": "TP53", "species": 9606, "limit": 10, "required_score": 700, "caller_identity": "my-agent"})
```

### Run functional enrichment

GET

`/{format}/enrichment`

`string-db.enrichment.get`

GO, KEGG, Pfam and other term enrichment of a protein set, with FDR.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id, e.g. 9606 for human. Example `9606`</td></tr>

    <tr>
      <td>
        `background_string_identifiers`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A custom background proteome as STRING ids, newline-separated.
      </td>
    </tr>

    <tr><td>`add_scores`</td><td>integer</td><td>query</td><td>1 to add strength and signal to each term. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `max_fdr`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Keep terms with FDR at or below this, (0, 1].
      </td>
    </tr>

    <tr>
      <td>
        `min_gene_count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum input genes per term.
      </td>
    </tr>

    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/)

```python Python theme={null}
router.call_data_api("string-db.enrichment.get", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.enrichment.get", params={"format": "json", "identifiers": "TP53", "species": 9606, "caller_identity": "my-agent"})
```

### Get functional annotations

GET

`/{format}/functional_annotation`

`string-db.annotations.get`

Every term each protein is annotated with (GO, Pfam, InterPro, Reactome and more).

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id, e.g. 9606 for human. Example `9606`</td></tr>
    <tr><td>`allow_pubmed`</td><td>integer</td><td>query</td><td>1 to include PubMed annotations. One of `0`, `1`</td></tr>
    <tr><td>`only_pubmed`</td><td>integer</td><td>query</td><td>1 to return only PubMed annotations. One of `0`, `1`</td></tr>
    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/) · Same job: [UniProt](https://docs.webrouter.net/data-apis/uniprot.md#uniprot-entries-get)

```python Python theme={null}
router.call_data_api("string-db.annotations.get", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.annotations.get", params={"format": "json", "identifiers": "TP53", "species": 9606, "caller_identity": "my-agent"})
```

> [!NOTE]
>
> * KEGG annotations are not returned by this method.

### Get homology scores

GET

`/{format}/homology`

`string-db.homology.get`

Pairwise similarity bit-scores among the given proteins.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Output format: tsv, tsv-no-header, json or xml. Example `json`</td></tr>
    <tr><td>`identifiers` required</td><td>string</td><td>query</td><td>Protein names, synonyms, UniProt accessions or STRING ids; several are separated by a newline (%0d). Example `TP53`</td></tr>
    <tr><td>`species`</td><td>integer</td><td>query</td><td>NCBI/STRING taxon id, e.g. 9606 for human. Example `9606`</td></tr>
    <tr><td>`caller_identity`</td><td>string</td><td>query</td><td>Name of your tool or site, which STRING asks callers to send. Example `my-agent`</td></tr>
  </tbody>
</table>

[Vendor docs](https://string-db.org/help/api/)

```python Python theme={null}
router.call_data_api("string-db.homology.get", {'format': 'json', 'identifiers': 'TP53', 'species': 9606, 'caller_identity': 'my-agent'})
```

```text MCP theme={null}
call_data_api(endpoint="string-db.homology.get", params={"format": "json", "identifiers": "TP53", "species": 9606, "caller_identity": "my-agent"})
```

> [!NOTE]
>
> * Only pairs with a bit-score of 50 or more are stored and reported.

### Get the STRING version

GET

`/json/version`

`string-db.version.get`

Current version and its stable, version-pinned address.

Input

No inputs.

[Vendor docs](https://string-db.org/help/api/) · Same job: [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-urls-info), [ChEMBL](https://docs.webrouter.net/data-apis/chembl.md#chembl-status), [HGNC (HUGO Gene Nomenclature Committee)](https://docs.webrouter.net/data-apis/hgnc.md#hgnc-info), [Internet Archive](https://docs.webrouter.net/data-apis/internet-archive.md#internet-archive-metadata-get), [Library of Congress loc.gov API](https://docs.webrouter.net/data-apis/loc-gov.md#loc-gov-item-get), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-index-metadata)

```python Python theme={null}
router.call_data_api("string-db.version.get")
```

```text MCP theme={null}
call_data_api(endpoint="string-db.version.get")
```


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