Skip to main content

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clinical_trials_gov-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clinical_trials_gov-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for clinical_trials_gov-1.0.0.tar.gz
Algorithm Hash digest
SHA256 86878d4124a4d6368952c5c609718f6bd447881a2a0bfd7676497c97b9e31295
MD5 f6a87e65a7bde48c134d25800bee4b57
BLAKE2b-256 4f7b6324cf4a20bab18793378a83ba17b6b85b1f11d63b0275eac80d49f7aa13

See more details on using hashes here.

File details

Details for the file clinical_trials_gov-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clinical_trials_gov-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f65df6af95792a9c4ab19d106faad15022788e64b7f57fbddcb60c413d296899
MD5 1b8b5b93cbc5ebec747f78368cc623cb
BLAKE2b-256 7a0c3069bccc7755c03db3a46409bea8a5452e589fd793019c7e3f18204327bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page