Research library API
Search publications, preprints and trial registrations by catalogue concept, design and retraction status, and see whether research has looked at a stored health-pattern finding, with citations and design limits.
Anpheros is building a research library: publications, preprints and trial registrations filled in batch from Europe PMC, PubMed (NCBI E-utilities) and ClinicalTrials.gov through their official APIs. Each record has its identifiers, citation, licence, study design (evidence class, with the rule that set it) and status, and the refresh job re-checks records for retractions, corrections, expressions of concern, newer versions and withdrawals.
Status (beta): the library is not populated yet. The batch ingestion and the refresh are off until they are
enabled and scheduled, so searches may return few or no records, and research on a finding answers
available: false with finding.library_not_populated while the library holds nothing for the finding's concepts.
Two uses:
- The library itself, for developers: search records by catalogue concept, title words, design or status. Catalogue data only, no patient data.
- Research on a stored health-pattern finding: whether published research in the library has looked at the relationship a finding describes, with what kind of studies, and what is missing when it has not.
Research describes groups of people. Nothing here diagnoses, says what caused something in one person or recommends a treatment. "Supports" and "contradicts" are never set automatically: they appear only when a human reviewer recorded that judgement, with who, when and why.
Search the library
GET /v1/research/records?concept=icd10:G43&evidence_class=cohort&limit=20
| Parameter | Meaning |
|---|---|
concept |
A catalogue id (SYM-…, CON-…, TRT-…, from /v1/search) or a code token: kb:, icd10:, con:, trt:, atc:. ATC matches by prefix, so atc:N02CC returns records on every substance in that group. LOINC codes are not accepted: no research source indexes by LOINC. |
q |
Words that must all appear in the title. |
evidence_class |
systematic_review, rct, non_randomized_trial, cohort, case_control, other_observational, case_report, guideline, preprint, trial_registration, unknown. |
status |
active, corrected, expression_of_concern, superseded, withdrawn, retracted. |
exclude_status |
Comma-separated statuses to leave out server side, for example retracted,withdrawn. Pages stay full, total leaves them out too, and left_out_by_status says how many were left out. |
limit, cursor |
Paging (at most 50 per page). |
Records are ordered by study design (systematic reviews first), then status (active first), then year (newest first). There is no relevance score and no popularity.
Every record carries status: its value, the notice that set it (for example the retraction notice), when it was
last checked, and whether it would be counted in an assessment. Retracted and withdrawn records are returned only
with that status; show it whenever you show the record.
abstract is present only when the source's licence allows reuse (Europe PMC open access under CC0, CC BY,
CC BY-SA or CC BY-ND; ClinicalTrials.gov public records). Otherwise you get the metadata and the identifier link;
licence says which case applies.
GET /v1/research/records/{record_id}
One record with the study details as the sources give them in structured form (population, sample size,
methodology, outcomes, and source_limitations: the limitations text stated by the source, quoted verbatim and not
written by Anpheros), the concepts it is indexed under with how each mapping
was made (mesh_name_match, mesh_chemically_induced, title_query, registry_condition_match, …) and its status
history. MeSH headings map a record to a concept only when they are major topics of the article.
Auth: any credential with the read scope. Rate limit: 120 requests a minute per credential.
Research on a stored finding
GET /v1/patients/{patient_id}/patterns/{finding_key}/research
Same gate as GET /v1/patients/{id}/patterns/current: only the trusted project the person gave the
anpheros/patterns consent to, with its API key or its app's token for this person. Any other credential gets 403;
revoking the consent deletes the stored assessments with the other derived data.
The answer:
| Field | Meaning |
|---|---|
shown, available, reason |
Research is attached only to a current finding that is shown to the person under the display rule. A finding that is not shown, whose method compares periods or results rather than describing a relationship, or whose concepts the library holds nothing on yet (finding.library_not_populated), says why in reason. |
research.verdict |
investigated (at least one systematic review, or at least two primary studies on the relationship) or not_adequately_investigated. |
research.counts, research.best_level |
Studies per design, and the strongest design among the counted ones. |
research.missing |
When not adequately investigated: what is missing (no records for the concept, none on the relationship, only case reports, only preprints or registrations, …). |
research.summary |
One plain-English text citing records as [n]. |
research.records |
Up to 10 records, each with its citation and identifier link, design and its limits, who was studied when the source states it, and status. Records with an expression of concern or a newer version are listed but not counted. |
research.excluded |
Retracted and withdrawn records, with their notice. Never counted. |
research.curation |
Human reviewers' judgements (supports / contradicts), if any. Empty by default. |
research.query |
The query used: concept tokens and fixed terms only. |
research.store_fingerprint |
Changes when the matching records, their status or the curations change. |
Privacy: the query is built from the finding's concept codes only, never the person's ids, dates, values or free text, and it runs over the local library. Nothing about the person is sent to Europe PMC, PubMed, ClinicalTrials.gov or anyone else at request time; the library is filled in batch from the shared, de-identified concept catalogue.
Every text in the answer passes the same wording guard as the pattern findings: no causes, no diagnoses, no treatment or dose advice, no "proves" or "confirms".
SDKs and MCP
- TypeScript:
client.research.search({ concept }),client.research.record(id),client.patterns.research(patientId, findingKey). - Dart:
client.research.search(concept: …),client.research.record(id),client.patterns.research(patientId, findingKey). - MCP (
https://platform.anpheros.com/mcp):search_research,get_research_record,get_finding_research. They call the same routes with the same credential and the same checks.search_researchleaves retracted and withdrawn records out unlessinclude_retractedis set, and then returns them only with their status. get_stored_patternswithinclude_researchadds this answer to the first stored findings it returns.
How research fits with consent, the display rule and feedback: Health patterns developer guide.
Ask your AI
Paste this into Claude, ChatGPT, Cursor or Claude Code. Your assistant reads this guide and adapts it to your code.
Read https://developers.anpheros.com/guides/research-api.md and help me apply this guide to my own project. Use the Anpheros sandbox (base URL https://platform.anpheros.com) with my API key from the ANPHEROS_KEY environment variable, never written in the code. Give me complete, runnable code, the response I should expect, and how to fix the errors in https://developers.anpheros.com/guides/troubleshooting.md if a call fails.Open in ClaudeOpen in ChatGPTThis guide as MarkdownBuild the whole integration with an AI coding tool
Try it free in the sandbox · first FHIR call in 5 minutesFree · 30 synthetic patients · no cardYour first API call in 2 minutes →
