Python client for the ClinicalTrials.gov API v2. Search recruiting trials by condition, location, and status.
Project description
clinical-trials-gov
Python client for the ClinicalTrials.gov API v2. Zero dependencies.
Install
pip install clinical-trials-gov
Usage
from clinical_trials_gov import fetch_trials, get_study, search_trials
# Find recruiting breast cancer trials
data = fetch_trials(condition="breast cancer")
print(f"Found {len(data['studies'])} trials")
# Find trials in a specific city
local = fetch_trials(condition="diabetes", location="New York")
# Get a specific study
study = get_study("NCT05382442")
# Free-text search
results = search_trials("immunotherapy lung cancer")
Using the client class
from clinical_trials_gov import ClinicalTrialsClient
client = ClinicalTrialsClient()
data = client.fetch_trials(condition="psoriasis", location="Boston")
See Also
- HelloStudys — Free AI-powered clinical trial matching for patients
- ClinicalTrials.gov — Official registry
- awesome-clinical-trials — Curated resource list
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clinical_trials_gov-1.0.0.tar.gz.
File metadata
- Download URL: clinical_trials_gov-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86878d4124a4d6368952c5c609718f6bd447881a2a0bfd7676497c97b9e31295
|
|
| MD5 |
f6a87e65a7bde48c134d25800bee4b57
|
|
| BLAKE2b-256 |
4f7b6324cf4a20bab18793378a83ba17b6b85b1f11d63b0275eac80d49f7aa13
|
File details
Details for the file clinical_trials_gov-1.0.0-py3-none-any.whl.
File metadata
- Download URL: clinical_trials_gov-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f65df6af95792a9c4ab19d106faad15022788e64b7f57fbddcb60c413d296899
|
|
| MD5 |
1b8b5b93cbc5ebec747f78368cc623cb
|
|
| BLAKE2b-256 |
7a0c3069bccc7755c03db3a46409bea8a5452e589fd793019c7e3f18204327bc
|