PubMed API
Returns PubMed article search results, summaries and abstracts, plus NCBI Entrez databases and document summaries.
View as Markdown| GET | /pubmed/search | PubMed articles that match a query, most relevant first, with the page's nextCursor. |
| GET | /pubmed/article | One PubMed article's summary by its PMID. |
| GET | /pubmed/abstract | The title and abstract of one PubMed article by its PMID. |
| GET | /pubmed/databases | The Entrez databases NCBI searches, such as pubmed, nuccore and gene. |
| GET | /pubmed/databaseInfo | One Entrez database: its record count, build, searchable fields and links. |
| GET | /pubmed/summary | Document summaries of records in any Entrez database, by UID, in the order given. |
| GET | /pubmed/fetch | Full records from any Entrez database, as NCBI's text or XML format, verbatim. |
| GET | /pubmed/citationExport | One PubMed citation in RIS or MEDLINE format, ready for a reference manager. |
| GET | /pubmed/post | Store a set of UIDs on NCBI's history server and return the webEnv and queryKey that name it. |
| GET | /pubmed/spell | NCBI's spelling suggestion for a search term, such as cancer for cancr. |
| GET | /pubmed/citationMatch | The PMID of a citation, found from its journal, year, volume, first page and author. |
| GET | /pubmed/link | Records linked to a PubMed article, such as similar articles, with the links capped at maxLinks. |
| GET | /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. |
| GET | /pubmed/linkProvider | Outside links to full text, data and other providers for a PubMed UID (LinkOut). |
| GET | /pubmed/annotations | The genes, diseases, chemicals and other entities PubTator3 finds in PubMed articles. |
| GET | /pubmed/annotationSearch | PubMed articles that match a text query with PubTator3's entity-aware ranking, a page at a time. |
| GET | /pubmed/entityAutocomplete | Entity names PubTator3 suggests for a query, with the concept ids the other PubTator3 endpoints take. |
| GET | /pubmed/entityRelations | Relations PubTator3 has curated for an entity, such as the diseases a gene is associated with. |
| GET | /pubmed/citationMetrics | NIH iCite bibliometrics for PubMed articles: citation counts, relative citation ratio and percentile, optionally with the citing and cited PMIDs. |
| GET | /pubmed/idConvert | Convert PubMed, PMC, DOI or NIH manuscript ids of articles into each other. |
| GET | /pubmed/geneReport | One NCBI gene record by its symbol and taxonomy id: id, description, chromosomes and synonyms. |
| GET | /pubmed/trialsSearch | ClinicalTrials.gov studies that match a condition or term, a page at a time. |
| GET | /pubmed/trialsDetail | One ClinicalTrials.gov study by its NCT id: title, status, sponsor, conditions, interventions and summary. |
search
/v1/pubmed/searchPubMed articles that match a query, most relevant first, with the page's nextCursor.
Parameters
querystring required | PubMed query, such as covid vaccine or BRCA1[Title]. e.g. covid vaccine |
limitinteger | Articles per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
authors | string[] |
doi | string |
journal | string |
pmid | string |
pubDate | string |
title | string |
curl "https://api.hoshime.com/v1/pubmed/search?query=covid+vaccine" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/search?query=covid+vaccine", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/search?query=covid+vaccine", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authors": [ "Tayer-Shifman OE", "Ben Shitrit I" ], "doi": "10.1093/rheumatology/keag612", "journal": "Rheumatology (Oxford, England)", "pmid": "42992943", "pubDate": "2026-11-06", "title": "Longitudinal trends in vaccination uptake and respiratory infection burden in systemic lupus erythematosus: a population-based cohort study." }, { "authors": [ "Bird B", "Thorn L" ], "doi": "10.1128/jvi.00863-26", "journal": "Journal of virology", "pmid": "42992825", "pubDate": "2026-11-06", "title": "Incidence and risk factors of acute respiratory illness associated with influenza, COVID-19, and respiratory syncytial virus within a birth …" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
article
/v1/pubmed/articleOne PubMed article's summary by its PMID.
Parameters
pmidstring required | PubMed id, such as 31978945. e.g. 31978945 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
authors | string[] |
doi | string |
journal | string |
pmid | string |
pubDate | string |
title | string |
curl "https://api.hoshime.com/v1/pubmed/article?pmid=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/article?pmid=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/article?pmid=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "authors": [ "Zhu N", "Zhang D" ], "doi": "10.1056/NEJMoa2001017", "journal": "The New England journal of medicine", "pmid": "31978945", "pubDate": "2020-02-20", "title": "A Novel Coronavirus from Patients with Pneumonia in China, 2019." }, "meta": { "cached": false, "endpoint": "article", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
abstract
/v1/pubmed/abstractThe title and abstract of one PubMed article by its PMID.
Parameters
pmidstring required | PubMed id, such as 31978945. e.g. 31978945 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
pmid | string |
sections | Section[] |
label | string |
text | string |
title | string |
curl "https://api.hoshime.com/v1/pubmed/abstract?pmid=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/abstract?pmid=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/abstract?pmid=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "pmid": "31978945", "sections": [ { "label": "", "text": "In December 2019, a cluster of patients with pneumonia of unknown cause was linked to a seafood wholesale market in Wuhan, China. A previous…" } ], "title": "A Novel Coronavirus from Patients with Pneumonia in China, 2019." }, "meta": { "cached": false, "endpoint": "abstract", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
databases
/v1/pubmed/databasesThe Entrez databases NCBI searches, such as pubmed, nuccore and gene.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
1 fields
name | string |
curl "https://api.hoshime.com/v1/pubmed/databases" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/databases", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/databases", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "pubmed" }, { "name": "protein" } ], "meta": { "cached": false, "endpoint": "databases", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
databaseInfo
/v1/pubmed/databaseInfoOne Entrez database: its record count, build, searchable fields and links.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 fields
build | string |
count | integer (int64) |
description | string |
fields | Field[] |
description | string |
fullName | string |
name | string |
lastUpdate | string |
links | DBLink[] |
dbTo | string |
description | string |
menuName | string |
name | string |
menuName | string |
name | string |
curl "https://api.hoshime.com/v1/pubmed/databaseInfo?db=pubmed" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/databaseInfo?db=pubmed", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/databaseInfo?db=pubmed", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "build": "Build-2026.11.06.12.21", "count": 41403169, "description": "PubMed bibliographic record", "fields": [ { "description": "All terms from all searchable fields", "fullName": "All Fields", "name": "ALL" }, { "description": "Unique number assigned to publication", "fullName": "UID", "name": "UID" } ], "lastUpdate": "2026/11/06 12:21", "links": [ { "dbTo": "assembly", "description": "Assembly", "menuName": "Assembly", "name": "pubmed_assembly" }, { "dbTo": "bioproject", "description": "Related Projects", "menuName": "Project Links", "name": "pubmed_bioproject" } ], "menuName": "PubMed", "name": "pubmed" }, "meta": { "cached": false, "endpoint": "databaseInfo", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
summary
/v1/pubmed/summaryDocument summaries of records in any Entrez database, by UID, in the order given.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
idstring required | Comma-separated UIDs, such as 31978945. Up to 200. e.g. 31978945 |
versionstring | 2.0 returns the version 2 summary, where the database has one.2.0 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
fields | map |
uid | string |
curl "https://api.hoshime.com/v1/pubmed/summary?db=pubmed&id=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/summary?db=pubmed&id=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/summary?db=pubmed&id=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "fields": { "articleids": "[{\"idtype\":\"pubmed\",\"idtypen\":1,\"value\":\"31978945\"},{\"idtype\":\"pmc\",\"idtypen\":8,\"value\":\"PMC7092803\"},{\"idtype\":\"pmcid\",\"idtypen\":5,\"value\":…", "attributes": "[\"Has Abstract\"]", "authors": "[{\"name\":\"Zhu N\",\"authtype\":\"Author\",\"clusterid\":\"\"},{\"name\":\"Zhang D\",\"authtype\":\"Author\",\"clusterid\":\"\"},{\"name\":\"Wang W\",\"authtype\":\"Auth…", "availablefromurl": "", "bookname": "", "booktitle": "", "chapter": "", "doccontriblist": "[]", "docdate": "", "doctype": "citation", "edition": "", "elocationid": "doi: 10.1056/NEJMoa2001017", "epubdate": "2020 Jan 24", "essn": "1533-4406", "fulljournalname": "The New England journal of medicine", "history": "[{\"pubstatus\":\"pubmed\",\"date\":\"2020/01/25 06:00\"},{\"pubstatus\":\"medline\",\"date\":\"2020/03/07 06:00\"},{\"pubstatus\":\"entrez\",\"date\":\"2020/01/25…", "issn": "0028-4793", "issue": "8", "lang": "[\"eng\"]", "lastauthor": "Tan W", "locationlabel": "", "medium": "", "nlmuniqueid": "0255562", "pages": "727-733", "pmcrefcount": "17", "pubdate": "2020 Feb 20", "publisherlocation": "", "publishername": "", "pubstatus": "256", "pubtype": "[\"Journal Article\"]", "recordstatus": "PubMed - indexed for MEDLINE", "references": "[{\"refsource\":\"N Engl J Med. 2020 Feb 20;382(8):760-762. doi: 10.1056/NEJMe2001126.\",\"reftype\":\"Comment in\",\"pmid\":31978944,\"note\":\"\"},{\"ref…", "reportnumber": "", "sortfirstauthor": "Zhu N", "sortpubdate": "2020/02/20 00:00", "sorttitle": "novel coronavirus from patients with pneumonia in china 2019", "source": "N Engl J Med", "srccontriblist": "[]", "srcdate": "", "title": "A Novel Coronavirus from Patients with Pneumonia in China, 2019.", "vernaculartitle": "", "volume": "382" }, "uid": "31978945" } ], "meta": { "cached": false, "endpoint": "summary", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
fetch
/v1/pubmed/fetchFull records from any Entrez database, as NCBI's text or XML format, verbatim.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
idstring required | Comma-separated UIDs, such as 31978945. Up to 200. e.g. 31978945 |
rettypestring | Record format: abstract, medline, ris, xml, uilist for PubMed; fasta, gb or gp for sequence databases.abstractmedlinerisxmluilistfastagbgpdefault abstracte.g. abstract |
retmodestring | text or xml.textxmldefault texte.g. text |
retstartinteger | Index of the first record to return. default 0 |
retmaxinteger | Records to return, from 1 to 100. default 10 |
strandstring | Nucleotide strand for sequence databases: 1 plus, 2 minus.12 |
seqStartinteger | First sequence position to return, for sequence databases. |
seqStopinteger | Last sequence position to return, for sequence databases. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
content | string |
format | string |
curl "https://api.hoshime.com/v1/pubmed/fetch?db=pubmed&id=31978945&rettype=abstract&retmode=text" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/fetch?db=pubmed&id=31978945&rettype=abstract&retmode=text", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/fetch?db=pubmed&id=31978945&rettype=abstract&retmode=text", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "content": "1. N Engl J Med. 2020 Feb 20;382(8):727-733. doi: 10.1056/NEJMoa2001017. Epub\n2020 Jan 24.\n\nA Novel Coronavirus from Patients with Pneumoni…", "format": "abstract" }, "meta": { "cached": false, "endpoint": "fetch", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
citationExport
/v1/pubmed/citationExportOne PubMed citation in RIS or MEDLINE format, ready for a reference manager.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
idstring required | PubMed id, such as 31978945. e.g. 31978945 |
formatstring | ris or medline.rismedlinedefault rise.g. ris |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
content | string |
format | string |
curl "https://api.hoshime.com/v1/pubmed/citationExport?db=pubmed&id=31978945&format=ris" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/citationExport?db=pubmed&id=31978945&format=ris", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/citationExport?db=pubmed&id=31978945&format=ris", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "content": "TY - JOUR\nDB - PubMed\nAU - Zhu, Na\nAU - Zhang, Dingyu\nAU - Wang, Wenling\nAU - Li, Xingwang\nAU - Yang, Bo\nAU - Song, Jingdong\nAU - Z…", "format": "ris" }, "meta": { "cached": false, "endpoint": "citationExport", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
post
/v1/pubmed/postStore a set of UIDs on NCBI's history server and return the webEnv and queryKey that name it.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
idstring required | Comma-separated UIDs, such as 31978945,32007145. Up to 200. e.g. 31978945,32007145 |
webEnvstring | webEnv of an existing history set to add the UIDs to. Empty starts a new one. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
queryKey | string |
webEnv | string |
curl "https://api.hoshime.com/v1/pubmed/post?db=pubmed&id=31978945%2C32007145" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/post?db=pubmed&id=31978945%2C32007145", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/post?db=pubmed&id=31978945%2C32007145", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "queryKey": "1", "webEnv": "MCID_6aee1617d9a8a9032a00488d" }, "meta": { "cached": false, "endpoint": "post", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
spell
/v1/pubmed/spellNCBI's spelling suggestion for a search term, such as cancer for cancr.
Parameters
dbstring | Entrez database, such as pubmed, nuccore or gene. Empty means pubmed. default pubmede.g. pubmed |
querystring required | Search term to check, such as cancr. e.g. cancr |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
corrected | string |
query | string |
curl "https://api.hoshime.com/v1/pubmed/spell?db=pubmed&query=cancr" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/spell?db=pubmed&query=cancr", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/spell?db=pubmed&query=cancr", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "corrected": "cancer", "query": "cancr" }, "meta": { "cached": false, "endpoint": "spell", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
citationMatch
/v1/pubmed/citationMatchThe PMID of a citation, found from its journal, year, volume, first page and author.
Parameters
journalstring required | Journal title as NLM abbreviates it, such as science. e.g. nature |
yearstring required | Publication year, such as 1997. e.g. 1953 |
volumestring | Volume, such as 278. e.g. 171 |
firstPagestring | First page, such as 1634. e.g. 737 |
authorstring | First author's last name, such as fictional. e.g. watson jd |
keystring | Your own label for the citation, echoed back with the PMID. default 1e.g. key1 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
2 fields
key | string |
pmid | string |
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"
const res = await fetch("https://api.hoshime.com/v1/pubmed/citationMatch?journal=nature&year=1953&volume=171&firstPage=737&author=watson+jd&key=key1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/citationMatch?journal=nature&year=1953&volume=171&firstPage=737&author=watson+jd&key=key1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "key": "key1", "pmid": "13054692" }, "meta": { "cached": false, "endpoint": "citationMatch", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
link
/v1/pubmed/linkRecords linked to a PubMed article, such as similar articles, with the links capped at maxLinks.
Parameters
idstring required | Comma-separated UIDs of the source records, such as 31978945. Up to 200. e.g. 31978945 |
dbfromstring | Database the UIDs are in. default pubmed |
dbstring | Database to link to. default pubmed |
linknamestring | A link name such as pubmed_pubmed. Empty returns every link of the source. e.g. pubmed_pubmed |
cmdstring | neighbor lists the links; neighbor_score adds NCBI's score to each.neighborneighbor_scoredefault neighbor |
maxLinksinteger | Links to return per link set, from 1 to 200. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
dbTo | string |
id | string |
linkName | string |
links | Link[] |
id | string |
score | integer (int64) | null |
curl "https://api.hoshime.com/v1/pubmed/link?id=31978945&linkname=pubmed_pubmed" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/link?id=31978945&linkname=pubmed_pubmed", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/link?id=31978945&linkname=pubmed_pubmed", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "dbTo": "pubmed", "id": "31978945", "linkName": "pubmed_pubmed", "links": [ { "id": "31978945", "score": null }, { "id": "32007145", "score": null } ] } ], "meta": { "cached": false, "endpoint": "link", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
linkCheck
/v1/pubmed/linkCheckWhich link types exist for a PubMed UID (acheck), or whether it has neighbours (ncheck) or outside links (lcheck), without the links themselves.
Parameters
cmdstring | acheck, ncheck or lcheck.achecknchecklcheckdefault achecke.g. acheck |
idstring required | Comma-separated UIDs, such as 31978945. Up to 200. e.g. 31978945 |
dbfromstring | Database the UIDs are in. default pubmed |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
dbTo | string |
has | boolean | null |
id | string |
linkName | string |
menu | string |
curl "https://api.hoshime.com/v1/pubmed/linkCheck?cmd=acheck&id=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/linkCheck?cmd=acheck&id=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/linkCheck?cmd=acheck&id=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "dbTo": "books", "has": null, "id": "31978945", "linkName": "pubmed_books_refs", "menu": "Cited in Books" }, { "dbTo": "pmc", "has": null, "id": "31978945", "linkName": "pubmed_pmc", "menu": "PMC Links" } ], "meta": { "cached": false, "endpoint": "linkCheck", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
linkProvider
/v1/pubmed/linkProviderOutside links to full text, data and other providers for a PubMed UID (LinkOut).
Parameters
cmdstring | prlinks lists the providers' links; llinks lists the library links.prlinksllinksdefault prlinkse.g. prlinks |
idstring required | Comma-separated UIDs, such as 31978945. Up to 200. e.g. 31978945 |
dbfromstring | Database the UIDs are in. default pubmed |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
category | string |
iconUrl | string |
id | string |
provider | string |
url | string |
curl "https://api.hoshime.com/v1/pubmed/linkProvider?cmd=prlinks&id=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/linkProvider?cmd=prlinks&id=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/linkProvider?cmd=prlinks&id=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "category": "Full Text Sources", "iconUrl": "https://www.ncbi.nlm.nih.gov/corehtml/query/egifs/https:--www.nejm.org-pb-assets-images-editorial-icons-nejm-free-full-text.gif", "id": "31978945", "provider": "Atypon", "url": "https://www.nejm.org/doi/10.1056/NEJMoa2001017?url_ver=Z39.88-2003&rfr_id=ori:rid:crossref.org&rfr_dat=cr_pub 0www.ncbi.nlm.nih.gov" }, { "category": "Full Text Sources", "iconUrl": "https://www.ncbi.nlm.nih.gov/corehtml/query/egifs/https:--cdn.ncbi.nlm.nih.gov-pmc-cms-images-pmc_linkout.png", "id": "31978945", "provider": "PubMed Central", "url": "https://pmc.ncbi.nlm.nih.gov/articles/pmid/31978945/" } ], "meta": { "cached": false, "endpoint": "linkProvider", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
annotations
/v1/pubmed/annotationsThe genes, diseases, chemicals and other entities PubTator3 finds in PubMed articles.
Parameters
pmidsstring required | Comma-separated PubMed ids, such as 31978945. Up to 200. e.g. 31978945 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
8 fields
entities | Entity[] |
database | string |
identifier | string |
name | string |
text | string |
type | string |
pmid | string |
title | string |
curl "https://api.hoshime.com/v1/pubmed/annotations?pmids=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/annotations?pmids=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/annotations?pmids=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "entities": [ { "database": "ncbi_mesh", "identifier": "MESH:D000086382", "name": "COVID-19", "text": "Novel Coronavirus", "type": "Disease" }, { "database": "ncbi_taxonomy", "identifier": "9606", "name": "9606", "text": "Patients", "type": "Species" } ], "pmid": "31978945", "title": "A Novel Coronavirus from Patients with Pneumonia in China, 2019." } ], "meta": { "cached": false, "endpoint": "annotations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
annotationSearch
/v1/pubmed/annotationSearchPubMed articles that match a text query with PubTator3's entity-aware ranking, a page at a time.
Parameters
textstring required | Text to search for, such as BRCA1 breast cancer or @GENE_BRCA1. e.g. covid |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
authors | string[] |
date | string |
journal | string |
pmid | string |
score | number (double) |
title | string |
curl "https://api.hoshime.com/v1/pubmed/annotationSearch?text=covid" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/annotationSearch?text=covid", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/annotationSearch?text=covid", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authors": [ "Makin S" ], "date": "2023-03-01", "journal": "Sci Am", "pmid": "39017122", "score": 233.02792, "title": "Cutting Out COVID: Tackling COVID (and more) with synthetic biology." }, { "authors": [ "Ingoglia C" ], "date": "2024-06-05", "journal": "J Behav Health Serv Res", "pmid": "38837121", "score": 233.02792, "title": "COVID-19 Is Not Done With Us ... We Are Not Done With COVID-19." } ], "meta": { "cached": false, "endpoint": "annotationSearch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
entityAutocomplete
/v1/pubmed/entityAutocompleteEntity names PubTator3 suggests for a query, with the concept ids the other PubTator3 endpoints take.
Parameters
querystring required | Name to look up, such as BRCA1. e.g. BRCA1 |
conceptstring | Type of entity to restrict to, such as gene, disease or chemical. Empty means any. e.g. gene |
limitinteger | Suggestions to return, from 1 to 50. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
conceptId | string |
database | string |
databaseId | string |
description | string |
name | string |
type | string |
curl "https://api.hoshime.com/v1/pubmed/entityAutocomplete?query=BRCA1&concept=gene" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/entityAutocomplete?query=BRCA1&concept=gene", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/entityAutocomplete?query=BRCA1&concept=gene", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "conceptId": "@GENE_BRCA1", "database": "ncbi_gene", "databaseId": "672", "description": "All Species", "name": "BRCA1", "type": "gene" }, { "conceptId": "@GENE_BRCA1.L", "database": "ncbi_gene", "databaseId": "399391", "description": "All Species", "name": "brca1.L", "type": "gene" } ], "meta": { "cached": false, "endpoint": "entityAutocomplete", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
entityRelations
/v1/pubmed/entityRelationsRelations PubTator3 has curated for an entity, such as the diseases a gene is associated with.
Parameters
e1string required | Concept id of one entity from entityAutocomplete, such as @GENE_BRCA1. e.g. @GENE_BRCA1 |
typestring | Relation type, such as associate. Empty means any. |
e2string | Concept id of the other entity. Empty means any. |
limitinteger | Relations to return, from 1 to 100. default 20e.g. 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
publications | integer (int64) |
source | string |
target | string |
type | string |
curl "https://api.hoshime.com/v1/pubmed/entityRelations?e1=%40GENE_BRCA1&limit=10" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/entityRelations?e1=%40GENE_BRCA1&limit=10", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/entityRelations?e1=%40GENE_BRCA1&limit=10", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "publications": 6912, "source": "@DISEASE_Breast_Neoplasms", "target": "@GENE_BRCA1", "type": "associate" }, { "publications": 4096, "source": "@DISEASE_Neoplasms", "target": "@GENE_BRCA1", "type": "associate" } ], "meta": { "cached": false, "endpoint": "entityRelations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
citationMetrics
/v1/pubmed/citationMetricsNIH iCite bibliometrics for PubMed articles: citation counts, relative citation ratio and percentile, optionally with the citing and cited PMIDs.
Parameters
pmidsstring required | Comma-separated PubMed ids, such as 31978945. Up to 200. e.g. 31978945 |
includeCitationListsboolean | true adds the PMIDs of the citing and cited articles. The lists can be very long. default false |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
11 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) |
curl "https://api.hoshime.com/v1/pubmed/citationMetrics?pmids=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/citationMetrics?pmids=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/citationMetrics?pmids=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "citedBy": [], "citedByCount": 17549, "doi": "10.1056/NEJMoa2001017", "journal": "N Engl J Med", "nihPercentile": 100, "pmid": "31978945", "referenceCount": 14, "references": [], "relativeCitationRatio": 1057.6116879530878, "title": "A Novel Coronavirus from Patients with Pneumonia in China, 2019.", "year": 2020 } ], "meta": { "cached": false, "endpoint": "citationMetrics", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
idConvert
/v1/pubmed/idConvertConvert PubMed, PMC, DOI or NIH manuscript ids of articles into each other.
Parameters
idtypestring | Type of the ids given: pmid, pmcid, doi or mid (NIH manuscript).pmidpmciddoimiddefault pmide.g. pmid |
idsstring required | Comma-separated ids of the declared type, such as 31978945. Up to 200. e.g. 31978945 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
doi | string |
pmcid | string |
pmid | string |
requested | string |
curl "https://api.hoshime.com/v1/pubmed/idConvert?idtype=pmid&ids=31978945" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/idConvert?idtype=pmid&ids=31978945", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/idConvert?idtype=pmid&ids=31978945", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "doi": "10.1056/NEJMoa2001017", "pmcid": "PMC7092803", "pmid": "31978945", "requested": "31978945" } ], "meta": { "cached": false, "endpoint": "idConvert", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
geneReport
/v1/pubmed/geneReportOne NCBI gene record by its symbol and taxonomy id: id, description, chromosomes and synonyms.
Parameters
symbolstring required | Gene symbol, such as BRCA1. e.g. BRCA1 |
taxonstring | NCBI taxonomy id of the species. 9606 is human. default 9606e.g. 9606 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
8 fields
chromosomes | string[] |
description | string |
geneId | string |
symbol | string |
synonyms | string[] |
taxId | string |
taxName | string |
type | string |
curl "https://api.hoshime.com/v1/pubmed/geneReport?symbol=BRCA1&taxon=9606" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/geneReport?symbol=BRCA1&taxon=9606", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/geneReport?symbol=BRCA1&taxon=9606", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "chromosomes": [ "17" ], "description": "BRCA1 DNA repair associated", "geneId": "672", "symbol": "BRCA1", "synonyms": [ "IRIS", "PSCP" ], "taxId": "9606", "taxName": "Homo sapiens", "type": "PROTEIN_CODING" }, "meta": { "cached": false, "endpoint": "geneReport", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
trialsSearch
/v1/pubmed/trialsSearchClinicalTrials.gov studies that match a condition or term, a page at a time.
Parameters
conditionstring | Condition to search for, such as diabetes. e.g. diabetes |
querystring | Other search text, such as an intervention. |
statusstring | Overall status to keep, such as RECRUITING or COMPLETED. |
limitinteger | Studies per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
7 fields
conditions | string[] |
nctId | string |
phases | string[] |
startDate | string |
status | string |
studyType | string |
title | string |
curl "https://api.hoshime.com/v1/pubmed/trialsSearch?condition=diabetes" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/trialsSearch?condition=diabetes", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/trialsSearch?condition=diabetes", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "conditions": [ "Diabetes Mellitus, Type 1", "Hypertension" ], "nctId": "NCT02644590", "phases": [ "EARLY_PHASE1" ], "startDate": "2016-02", "status": "UNKNOWN", "studyType": "INTERVENTIONAL", "title": "The Effect of Melatonin on Early Signs of Hypertension in Teenagers With Diabetes Mellitus Type 1" }, { "conditions": [ "Insulin-Dependent Diabetes Mellitus" ], "nctId": "NCT00006160", "phases": [ "NA" ], "startDate": "", "status": "COMPLETED", "studyType": "INTERVENTIONAL", "title": "African-American Diabetes Intervention Project" } ], "meta": { "cached": false, "endpoint": "trialsSearch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }
trialsDetail
/v1/pubmed/trialsDetailOne ClinicalTrials.gov study by its NCT id: title, status, sponsor, conditions, interventions and summary.
Parameters
nctIdstring required | ClinicalTrials.gov study id, such as NCT04368728. e.g. NCT04368728 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
12 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 |
curl "https://api.hoshime.com/v1/pubmed/trialsDetail?nctId=NCT04368728" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pubmed/trialsDetail?nctId=NCT04368728", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pubmed/trialsDetail?nctId=NCT04368728", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "completionDate": "2023-02-10", "conditions": [ "SARS-CoV-2 Infection", "COVID-19" ], "interventions": [ "BNT162b1", "BNT162b2" ], "leadSponsor": "BioNTech SE", "nctId": "NCT04368728", "officialTitle": "A PHASE 1/2/3, PLACEBO-CONTROLLED, RANDOMIZED, OBSERVER-BLIND, DOSE-FINDING STUDY TO EVALUATE THE SAFETY, TOLERABILITY, IMMUNOGENICITY, AND …", "phases": [ "PHASE2", "PHASE3" ], "startDate": "2020-04-29", "status": "COMPLETED", "studyType": "INTERVENTIONAL", "summary": "This is a Phase 1/2/3, randomized, placebo-controlled, observer-blind, dose-finding, vaccine candidate-selection, and efficacy study in heal…", "title": "Study to Describe the Safety, Tolerability, Immunogenicity, and Efficacy of RNA Vaccine Candidates Against COVID-19 in Healthy Individuals" }, "meta": { "cached": false, "endpoint": "trialsDetail", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pubmed", "requestId": "req_2Xb9kQ…", "units": 1 } }