# Europe PMC API

> Returns Europe PMC life-science literature records, citations, references, outside links and open-access full text.

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

Europe PMC records that match a query, with the page's nextCursor.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Europe PMC query, such as covid AND vaccine or AUTH:"Zhu N". (e.g. covid vaccine) |
| `limit` | integer | no | Records 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), `citedBy` (integer (int64)), `doi` (string), `id` (string), `journal` (string), `openAccess` (boolean), `pmid` (string), `source` (string), `title` (string), `year` (string)

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

## GET /v1/europepmc/article

One Europe PMC record of a 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: `authors` (string), `citedBy` (integer (int64)), `doi` (string), `id` (string), `journal` (string), `openAccess` (boolean), `pmid` (string), `source` (string), `title` (string), `year` (string)

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

## GET /v1/europepmc/citations

Articles that cite one Europe PMC record, a page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Article id within its source, such as 31978945 for MED. (e.g. 31978945) |
| `source` | string | no | Source the id belongs to: MED for PubMed ids, PMC for PubMed Central ids. (one of MED, PMC, PPR, AGR, CBA, CTX, ETH, HIR, PAT, NBK; default MED; e.g. MED) |
| `limit` | integer | no | Items per page, 1 to 100. (default 25) |
| `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), `citationType` (string), `citedByCount` (integer (int64)), `id` (string), `issue` (string), `journal` (string), `pageInfo` (string), `pubYear` (string), `source` (string), `title` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/europepmc/citations?id=31978945&source=MED" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/europepmc/references

The reference list of one Europe PMC record, a page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Article id within its source, such as 31978945 for MED. (e.g. 31978945) |
| `source` | string | no | Source the id belongs to: MED for PubMed ids, PMC for PubMed Central ids. (one of MED, PMC, PPR, AGR, CBA, CTX, ETH, HIR, PAT, NBK; default MED; e.g. MED) |
| `limit` | integer | no | Items per page, 1 to 100. (default 25) |
| `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), `citationType` (string), `citedByCount` (integer (int64)), `id` (string), `issue` (string), `journal` (string), `pageInfo` (string), `pubYear` (string), `source` (string), `title` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/europepmc/references?id=31978945&source=MED" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/europepmc/labsLinks

Outside providers (Altmetric, Publons, BioStudies and others) with their links for one Europe PMC record.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Article id within its source, such as 31978945 for MED. (e.g. 33301246) |
| `source` | string | no | Source the id belongs to: MED for PubMed ids, PMC for PubMed Central ids. (one of MED, PMC, PPR, AGR, CBA, CTX, ETH, HIR, PAT, NBK; default MED; e.g. MED) |
| `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: `description` (string), `id` (string), `links` (ProviderLink[]), `links[].title` (string), `links[].url` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/europepmc/labsLinks?id=33301246&source=MED" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/europepmc/fullText

The full text of an open-access PubMed Central article as JATS XML, verbatim.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmcid` | string | yes | PubMed Central id, such as PMC7092803. (e.g. PMC7092803) |
| `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), `pmcid` (string)

```bash
curl "https://api.hoshime.com/v1/europepmc/fullText?pmcid=PMC7092803" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/europepmc/supplementaryFiles

The URL of the zip archive of a PubMed Central article's supplementary material.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `pmcid` | string | yes | PubMed Central id, such as PMC7092803. (e.g. PMC7092803) |
| `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: `pmcid` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/europepmc/supplementaryFiles?pmcid=PMC7092803" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/europepmc/profile

How many Europe PMC records a query matches, in all and per source, to size a search before paging it.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Europe PMC query, such as covid AND vaccine. (e.g. covid vaccine) |
| `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: `hitCount` (integer (int64)), `query` (string), `sources` (SourceCount[]), `sources[].hitCount` (integer (int64)), `sources[].source` (string)

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

## GET /v1/europepmc/searchPost

Europe PMC records that match a query sent as a form body, so a long query still fits; paged like search.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Europe PMC query, such as covid AND vaccine or AUTH:"Zhu N". (e.g. covid vaccine) |
| `resultType` | string | no | Fields per record: idlist for ids only, lite for the common fields, core for all fields. (one of idlist, lite, core; default lite) |
| `limit` | integer | no | Records per page, from 1 to 100. (default 25) |
| `sort` | string | no | Sort order: relevance, dateAsc or dateDesc (publication date), citedAsc or citedDesc (citation count). (one of relevance, dateAsc, dateDesc, citedAsc, citedDesc; default relevance) |
| `synonym` | boolean | no | true expands the query with MeSH and UniProt synonyms. (default false) |
| `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), `citedBy` (integer (int64)), `doi` (string), `id` (string), `journal` (string), `openAccess` (boolean), `pmid` (string), `source` (string), `title` (string), `year` (string)

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