Developer API
A read-oriented REST API over the Curebiology dataset — research papers, news, blog posts, clinical trials, FDA approvals and nonprofits — plus AI question answering and MAMMAL-style biomedical predictions.
Overview
- Base URL: your deployment origin (e.g.
http://localhost:3000). - All data endpoints accept an optional
diseaseslug (defaults to your selected disease). - Responses are JSON. List endpoints return
{ total, page, limit, items }. - Authentication is not required for public data endpoints.
Data endpoints
/api/stats?disease={slug}Aggregated counts and distributions for a disease.
/api/papers?disease={slug}&q=&subtype=&page=Paginated research papers.
/api/papers/{id}A single research paper.
/api/news?disease={slug}&q=&page=Paginated news items.
/api/blog?disease={slug}&q=&page=Paginated blog posts.
/api/blog/{slug}A single blog post.
/api/trials?disease={slug}&q=&location=Clinical trials.
/api/fda?disease={slug}FDA approvals for the disease.
/api/nonprofits?disease={slug}Related nonprofit organizations.
/api/graph?disease={slug}&topic=&size=RAG knowledge-graph nodes and clusters.
/api/ncbi?db=pubmed&term=&retmax=Live proxy to NCBI E-utilities (PubMed/PMC).
Diligence engine
/api/diligence/analyzeRun a full multi-source diligence pass on a compound / disease / modality / target. Returns the complete report: signals, scores, analogs, failure modes, contradictions, risks.
{ "compound": "osimertinib", "disease": "non-small cell lung cancer", "target": "EGFR" }/api/diligence/deckMultipart upload of a pitch deck (PDF/TXT) + mechanism/target/molecule/trialData fields. Extracts claims, grades each against open sources, and returns the deck report.
/api/diligence/reportsList the 25 most recent diligence runs (metadata only).
/api/diligence/reports/{id}Fetch a stored report by id (full payload).
Sources: PubMed (NCBI E-utilities), ClinicalTrials.gov API v2, openFDA (FAERS, Drugs@FDA), PubChem PUG-REST, Open Targets Platform GraphQL, ChEMBL Web Services, PatentsView. All free, key-optional endpoints; each analysis is fail-soft per source and every synthesized claim carries a source chain. Reports are heuristic — not investment or medical advice.
AI & model endpoints
/api/ai/askAsk a plain-English question; grounded in the indexed dataset. Uses OpenAI if configured, else a local fallback.
{ "question": "What are the latest immunotherapy advances?", "disease": "cancer" }/api/mammalMAMMAL-style predictions (illustrative). task = protein-protein | drug-target | clintox.
{ "task": "protein-protein", "proteinA": "EGFR", "proteinB": "GRB2" }MAMMAL predictions are illustrative approximations for demo purposes and must not be used for clinical decisions. NCBI data is subject to NCBI's usage policies.