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
Metadata
Release files for clinical-trials-gov 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clinical_trials_gov-1.0.0.tar.gz | 3.4 kB | Without provenance | Details for clinical_trials_gov-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clinical_trials_gov-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for clinical_trials_gov-1.0.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / clinical_trials_gov-1.0.0.tar.gz
| Download URL | clinical_trials_gov-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86878d4124a4d6368952c5c609718f6bd447881a2a0bfd7676497c97b9e31295
|
|
BLAKE2b-256 checksum How to use checksums |
4f7b6324cf4a20bab18793378a83ba17b6b85b1f11d63b0275eac80d49f7aa13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / clinical_trials_gov-1.0.0-py3-none-any.whl
| Download URL | clinical_trials_gov-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f65df6af95792a9c4ab19d106faad15022788e64b7f57fbddcb60c413d296899
|
|
BLAKE2b-256 checksum How to use checksums |
7a0c3069bccc7755c03db3a46409bea8a5452e589fd793019c7e3f18204327bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for clinical-trials-gov 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.