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())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 →
Search, explore, and traverse 280K+ cancer biology entities and 4.75M relationships.
/entities/{entity_id}import requests
resp = requests.get(
"https://research.usegalen.com/api/v1/entities/EGFR",
headers={"X-API-Key": "YOUR_API_KEY"}
)
print(resp.json())/entities/searchresp = 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']})")/entities/{entity_id}/relationships/entities/subgraph/entities/{entity_id}/pch/entities/pathsQuery 28 integrated biomedical databases through a unified API.
/chembl/compound/{name}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'])}")/depmap/gene/{gene}/gdsc/drug/{drug}/cbioportal/gene/{gene}/gtex/gene/{gene}/string/protein/{protein}/oncokb/gene/{gene}/drugcomb/drug/{drug}Simulate interventions, run do-calculus queries, and explore counterfactual scenarios.
/causal/interventionresp = 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']}")/causal/explain/causal/do-calculus/causal/counterfactual/causal/vulnerabilities/{entity}/causal/dynamic-simulation/causal/feedback-loops/{entity}Predict drug responses, gene essentiality, and mutation effects with confidence scores.
/predictions/drug-response/predictions/essentiality/predictions/mutation-effect/predictions/accuracyDiscover knowledge gaps and explore the frontier of cancer biology.
/hypotheses/frontier/hypotheses/gaps/{entity}Interpret multi-mutation profiles, find treatments, match clinical trials.
/patient/profileresp = 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']}")/patient/treatments/patient/resistance/patient/trials/patient/questionHealth checks, system statistics, and data source information.
/health/health/status/health/stats/health/data-sources