
ClinicalTrials.gov Has a Free API — Search 500K+ Trials in Python
If you're in biotech, pharma, or health research — you need this API. ClinicalTrials.gov has a free API (v2) that lets you search 500,000+ clinical trials worldwide. No API key needed. I built a Python toolkit around it. Quick Search import requests resp = requests . get ( ' https://clinicaltrials.gov/api/v2/studies ' , params = { ' query.term ' : ' cancer immunotherapy ' , ' filter.overallStatus ' : ' RECRUITING ' , ' pageSize ' : 5 , ' format ' : ' json ' }) for study in resp . json (). get ( ' studies ' , []): p = study [ ' protocolSection ' ] nct = p [ ' identificationModule ' ][ ' nctId ' ] title = p [ ' identificationModule ' ][ ' briefTitle ' ] status = p [ ' statusModule ' ][ ' overallStatus ' ] print ( f ' [ { nct } ] { title } — { status } ' ) Output: [NCT05847283] CAR-T Cell Therapy for Solid Tumors — RECRUITING [NCT06123456] Pembrolizumab + Novel Agent Phase 3 — RECRUITING ... Use Cases Researchers : Find trials in your area, build meta-analysis datasets Investors : Monitor
Continue reading on Dev.to Tutorial
Opens in a new tab




