GALENAPI

API Reference

Complete documentation for all 40+ endpoints. Base URL: https://research.usegalen.com/api/v1

All requests require an X-API-Key header. Get your free API key →

Knowledge Graph

Search, explore, and traverse 280K+ cancer biology entities and 4.75M relationships.

Free
GET/entities/{entity_id}
Free
import requests

resp = requests.get(
    "https://research.usegalen.com/api/v1/entities/EGFR",
    headers={"X-API-Key": "YOUR_API_KEY"}
)
print(resp.json())
GET/entities/search
Free
resp = requests.get(
    "https://research.usegalen.com/api/v1/entities/search",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"q": "KRAS", "limit": 10}
)
for entity in resp.json()["results"]:
    print(f"{entity['name']} ({entity['entity_type']})")
GET/entities/{entity_id}/relationships
Free
POST/entities/subgraph
Free
GET/entities/{entity_id}/pch
Free
POST/entities/paths
Free

Databases

Query 28 integrated biomedical databases through a unified API.

Researcher
GET/chembl/compound/{name}
Free
resp = requests.get(
    "https://research.usegalen.com/api/v1/chembl/compound/erlotinib",
    headers={"X-API-Key": "YOUR_API_KEY"}
)
compound = resp.json()
print(f"Name: {compound['name']}")
print(f"Targets: {len(compound['targets'])}")
GET/depmap/gene/{gene}
Researcher
GET/gdsc/drug/{drug}
Researcher
GET/cbioportal/gene/{gene}
Researcher
GET/gtex/gene/{gene}
Researcher
GET/string/protein/{protein}
Researcher
GET/oncokb/gene/{gene}
Researcher
GET/drugcomb/drug/{drug}
Researcher

Causal Inference

Simulate interventions, run do-calculus queries, and explore counterfactual scenarios.

Researcher
POST/causal/intervention
Researcher
resp = requests.post(
    "https://research.usegalen.com/api/v1/causal/intervention",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={
        "target": "BRAF",
        "intervention_type": "inhibit"
    }
)
for effect in resp.json()["downstream_effects"]:
    print(f"  {effect['entity']}: {effect['direction']}")
POST/causal/explain
Researcher
POST/causal/do-calculus
Pro
POST/causal/counterfactual
Pro
GET/causal/vulnerabilities/{entity}
Researcher
POST/causal/dynamic-simulation
Pro
GET/causal/feedback-loops/{entity}
Researcher

Predictions

Predict drug responses, gene essentiality, and mutation effects with confidence scores.

Researcher
POST/predictions/drug-response
Researcher
POST/predictions/essentiality
Researcher
POST/predictions/mutation-effect
Researcher
GET/predictions/accuracy
Researcher

Hypotheses

Discover knowledge gaps and explore the frontier of cancer biology.

Researcher
GET/hypotheses/frontier
Researcher
GET/hypotheses/gaps/{entity}
Researcher

Patient Interpretation

Interpret multi-mutation profiles, find treatments, match clinical trials.

Pro
POST/patient/profile
Pro
resp = requests.post(
    "https://research.usegalen.com/api/v1/patient/profile",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={
        "mutations": ["EGFR L858R", "TP53 R248W"],
        "cancer_type": "NSCLC"
    }
)
profile = resp.json()
print(f"Interpretation: {profile['summary']}")
POST/patient/treatments
Pro
POST/patient/resistance
Pro
POST/patient/trials
Pro
POST/patient/question
Pro

System

Health checks, system statistics, and data source information.

Free
GET/health
Free
GET/health/status
Free
GET/health/stats
Free
GET/health/data-sources
Free