Skip to main content

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

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)

Source distribution for clinical-trials-gov 1.0.0
File Size Uploaded
clinical_trials_gov-1.0.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clinical-trials-gov 1.0.0
File Interpreter ABI Platform
clinical_trials_gov-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page