# PubMed API

> Returns PubMed article search results, summaries and abstracts, plus NCBI Entrez databases and document summaries.

Category: Search & Knowledge. Region: global. 23 endpoints at `https://api.hoshime.com/v1/pubmed/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/pubmed
## GET /v1/pubmed/search

PubMed articles that match a query, most relevant first, with the page's nextCursor.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | PubMed query, such as covid vaccine or BRCA1[Title]. (e.g. covid vaccine) |
| `limit` | integer | no | Articles per page, from 1 to 100. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `authors` (string[]), `doi` (string), `journal` (string), `pmid` (string), `pubDate` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/search?query=covid+vaccine" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/article

One PubMed article's summary by its PMID.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmid` | string | yes | PubMed id, such as 31978945. (e.g. 31978945) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `authors` (string[]), `doi` (string), `journal` (string), `pmid` (string), `pubDate` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/article?pmid=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/abstract

The title and abstract of one PubMed article by its PMID.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmid` | string | yes | PubMed id, such as 31978945. (e.g. 31978945) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `pmid` (string), `sections` (Section[]), `sections[].label` (string), `sections[].text` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/abstract?pmid=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/databases

The Entrez databases NCBI searches, such as pubmed, nuccore and gene.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/databases" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/databaseInfo

One Entrez database: its record count, build, searchable fields and links.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `build` (string), `count` (integer (int64)), `description` (string), `fields` (Field[]), `fields[].description` (string), `fields[].fullName` (string), `fields[].name` (string), `lastUpdate` (string), `links` (DBLink[]), `links[].dbTo` (string), `links[].description` (string), `links[].menuName` (string), `links[].name` (string), `menuName` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/databaseInfo?db=pubmed" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/summary

Document summaries of records in any Entrez database, by UID, in the order given.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `id` | string | yes | Comma-separated UIDs, such as 31978945. Up to 200. (e.g. 31978945) |
| `version` | string | no | 2.0 returns the version 2 summary, where the database has one. (one of 2.0) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `fields` (map), `uid` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/summary?db=pubmed&id=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/fetch

Full records from any Entrez database, as NCBI's text or XML format, verbatim.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `id` | string | yes | Comma-separated UIDs, such as 31978945. Up to 200. (e.g. 31978945) |
| `rettype` | string | no | Record format: abstract, medline, ris, xml, uilist for PubMed; fasta, gb or gp for sequence databases. (one of abstract, medline, ris, xml, uilist, fasta, gb, gp; default abstract; e.g. abstract) |
| `retmode` | string | no | text or xml. (one of text, xml; default text; e.g. text) |
| `retstart` | integer | no | Index of the first record to return. (default 0) |
| `retmax` | integer | no | Records to return, from 1 to 100. (default 10) |
| `strand` | string | no | Nucleotide strand for sequence databases: 1 plus, 2 minus. (one of 1, 2) |
| `seqStart` | integer | no | First sequence position to return, for sequence databases. |
| `seqStop` | integer | no | Last sequence position to return, for sequence databases. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `content` (string), `format` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/fetch?db=pubmed&id=31978945&rettype=abstract&retmode=text" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/citationExport

One PubMed citation in RIS or MEDLINE format, ready for a reference manager.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `id` | string | yes | PubMed id, such as 31978945. (e.g. 31978945) |
| `format` | string | no | ris or medline. (one of ris, medline; default ris; e.g. ris) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `content` (string), `format` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/citationExport?db=pubmed&id=31978945&format=ris" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/post

Store a set of UIDs on NCBI's history server and return the webEnv and queryKey that name it.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `id` | string | yes | Comma-separated UIDs, such as 31978945,32007145. Up to 200. (e.g. 31978945,32007145) |
| `webEnv` | string | no | webEnv of an existing history set to add the UIDs to. Empty starts a new one. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `queryKey` (string), `webEnv` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/post?db=pubmed&id=31978945%2C32007145" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/spell

NCBI's spelling suggestion for a search term, such as cancer for cancr.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `db` | string | no | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. (default pubmed; e.g. pubmed) |
| `query` | string | yes | Search term to check, such as cancr. (e.g. cancr) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `corrected` (string), `query` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/spell?db=pubmed&query=cancr" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/citationMatch

The PMID of a citation, found from its journal, year, volume, first page and author.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `journal` | string | yes | Journal title as NLM abbreviates it, such as science. (e.g. nature) |
| `year` | string | yes | Publication year, such as 1997. (e.g. 1953) |
| `volume` | string | no | Volume, such as 278. (e.g. 171) |
| `firstPage` | string | no | First page, such as 1634. (e.g. 737) |
| `author` | string | no | First author's last name, such as fictional. (e.g. watson jd) |
| `key` | string | no | Your own label for the citation, echoed back with the PMID. (default 1; e.g. key1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `key` (string), `pmid` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/citationMatch?journal=nature&year=1953&volume=171&firstPage=737&author=watson+jd&key=key1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/link

Records linked to a PubMed article, such as similar articles, with the links capped at maxLinks.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Comma-separated UIDs of the source records, such as 31978945. Up to 200. (e.g. 31978945) |
| `dbfrom` | string | no | Database the UIDs are in. (default pubmed) |
| `db` | string | no | Database to link to. (default pubmed) |
| `linkname` | string | no | A link name such as pubmed_pubmed. Empty returns every link of the source. (e.g. pubmed_pubmed) |
| `cmd` | string | no | neighbor lists the links; neighbor_score adds NCBI's score to each. (one of neighbor, neighbor_score; default neighbor) |
| `maxLinks` | integer | no | Links to return per link set, from 1 to 200. (default 20) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dbTo` (string), `id` (string), `linkName` (string), `links` (Link[]), `links[].id` (string), `links[].score` (integer (int64) | null)

```bash
curl "https://api.hoshime.com/v1/pubmed/link?id=31978945&linkname=pubmed_pubmed" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/linkCheck

Which link types exist for a PubMed UID (acheck), or whether it has neighbours (ncheck) or outside links (lcheck), without the links themselves.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cmd` | string | no | acheck, ncheck or lcheck. (one of acheck, ncheck, lcheck; default acheck; e.g. acheck) |
| `id` | string | yes | Comma-separated UIDs, such as 31978945. Up to 200. (e.g. 31978945) |
| `dbfrom` | string | no | Database the UIDs are in. (default pubmed) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dbTo` (string), `has` (boolean | null), `id` (string), `linkName` (string), `menu` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/linkCheck?cmd=acheck&id=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/linkProvider

Outside links to full text, data and other providers for a PubMed UID (LinkOut).

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cmd` | string | no | prlinks lists the providers' links; llinks lists the library links. (one of prlinks, llinks; default prlinks; e.g. prlinks) |
| `id` | string | yes | Comma-separated UIDs, such as 31978945. Up to 200. (e.g. 31978945) |
| `dbfrom` | string | no | Database the UIDs are in. (default pubmed) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `iconUrl` (string), `id` (string), `provider` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/linkProvider?cmd=prlinks&id=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/annotations

The genes, diseases, chemicals and other entities PubTator3 finds in PubMed articles.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmids` | string | yes | Comma-separated PubMed ids, such as 31978945. Up to 200. (e.g. 31978945) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `entities` (Entity[]), `entities[].database` (string), `entities[].identifier` (string), `entities[].name` (string), `entities[].text` (string), `entities[].type` (string), `pmid` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/annotations?pmids=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/annotationSearch

PubMed articles that match a text query with PubTator3's entity-aware ranking, a page at a time.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | Text to search for, such as BRCA1 breast cancer or @GENE_BRCA1. (e.g. covid) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `authors` (string[]), `date` (string), `journal` (string), `pmid` (string), `score` (number (double)), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/annotationSearch?text=covid" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/entityAutocomplete

Entity names PubTator3 suggests for a query, with the concept ids the other PubTator3 endpoints take.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Name to look up, such as BRCA1. (e.g. BRCA1) |
| `concept` | string | no | Type of entity to restrict to, such as gene, disease or chemical. Empty means any. (e.g. gene) |
| `limit` | integer | no | Suggestions to return, from 1 to 50. (default 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `conceptId` (string), `database` (string), `databaseId` (string), `description` (string), `name` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/entityAutocomplete?query=BRCA1&concept=gene" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/entityRelations

Relations PubTator3 has curated for an entity, such as the diseases a gene is associated with.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `e1` | string | yes | Concept id of one entity from entityAutocomplete, such as @GENE_BRCA1. (e.g. @GENE_BRCA1) |
| `type` | string | no | Relation type, such as associate. Empty means any. |
| `e2` | string | no | Concept id of the other entity. Empty means any. |
| `limit` | integer | no | Relations to return, from 1 to 100. (default 20; e.g. 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `publications` (integer (int64)), `source` (string), `target` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/entityRelations?e1=%40GENE_BRCA1&limit=10" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/citationMetrics

NIH iCite bibliometrics for PubMed articles: citation counts, relative citation ratio and percentile, optionally with the citing and cited PMIDs.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmids` | string | yes | Comma-separated PubMed ids, such as 31978945. Up to 200. (e.g. 31978945) |
| `includeCitationLists` | boolean | no | true adds the PMIDs of the citing and cited articles. The lists can be very long. (default false) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `citedBy` (string[]), `citedByCount` (integer (int64)), `doi` (string), `journal` (string), `nihPercentile` (number (double)), `pmid` (string), `referenceCount` (integer (int64)), `references` (string[]), `relativeCitationRatio` (number (double)), `title` (string), `year` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/pubmed/citationMetrics?pmids=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/idConvert

Convert PubMed, PMC, DOI or NIH manuscript ids of articles into each other.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `idtype` | string | no | Type of the ids given: pmid, pmcid, doi or mid (NIH manuscript). (one of pmid, pmcid, doi, mid; default pmid; e.g. pmid) |
| `ids` | string | yes | Comma-separated ids of the declared type, such as 31978945. Up to 200. (e.g. 31978945) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `doi` (string), `pmcid` (string), `pmid` (string), `requested` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/idConvert?idtype=pmid&ids=31978945" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/geneReport

One NCBI gene record by its symbol and taxonomy id: id, description, chromosomes and synonyms.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Gene symbol, such as BRCA1. (e.g. BRCA1) |
| `taxon` | string | no | NCBI taxonomy id of the species. 9606 is human. (default 9606; e.g. 9606) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `chromosomes` (string[]), `description` (string), `geneId` (string), `symbol` (string), `synonyms` (string[]), `taxId` (string), `taxName` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/geneReport?symbol=BRCA1&taxon=9606" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/trialsSearch

ClinicalTrials.gov studies that match a condition or term, a page at a time.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `condition` | string | no | Condition to search for, such as diabetes. (e.g. diabetes) |
| `query` | string | no | Other search text, such as an intervention. |
| `status` | string | no | Overall status to keep, such as RECRUITING or COMPLETED. |
| `limit` | integer | no | Studies per page, from 1 to 100. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `conditions` (string[]), `nctId` (string), `phases` (string[]), `startDate` (string), `status` (string), `studyType` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/trialsSearch?condition=diabetes" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/pubmed/trialsDetail

One ClinicalTrials.gov study by its NCT id: title, status, sponsor, conditions, interventions and summary.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `nctId` | string | yes | ClinicalTrials.gov study id, such as NCT04368728. (e.g. NCT04368728) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `completionDate` (string), `conditions` (string[]), `interventions` (string[]), `leadSponsor` (string), `nctId` (string), `officialTitle` (string), `phases` (string[]), `startDate` (string), `status` (string), `studyType` (string), `summary` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/pubmed/trialsDetail?nctId=NCT04368728" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
