npm.io
1.0.0 • Published 3d ago

clinicaltrials-gov-scraper

Licence
MIT
Version
1.0.0
Deps
1
Size
7 kB
Vulns
0
Weekly
0

ClinicalTrials.gov Scraper

Run on Apify Node.js client

ClinicalTrials.gov Scraper — a Node.js client for the Apify Actor. Pull ClinicalTrials.gov data at scale with no API-key hassle: thousands of clean, structured results you can export to JSON, CSV or Excel.

Run it on Apify: https://apify.com/logiover/clinicaltrials-gov-scraper

Install

npm install clinicaltrials-gov-scraper

Usage

const scrape = require("clinicaltrials-gov-scraper");

(async () => {
  const items = await scrape({}, { token: process.env.APIFY_TOKEN });
  console.log(items.length, "results");
  console.log(items[0]);
})();

Get your free Apify token at https://console.apify.com/account/integrations.

Input

Field Type Description
condition string Condition / Disease
searchTerm string Search Term
sponsor string Sponsor
overallStatus array Recruitment status
studyType string Study type
sort string Sort order
maxStudies integer Max studies

All fields optional — run with empty input {} for a broad default result set.

Output

Each result item includes fields such as: nctId, briefTitle, overallStatus, phases, leadSponsor, conditions, enrollmentCount, startDate, officialTitle, acronym, organization, studyType, sponsorClass, collaborators, interventions, briefSummary, sex, minimumAge, maximumAge, healthyVolunteers.

Why use this

  • Thousands of results per run, auto-paginated
  • No ClinicalTrials.gov login or reverse-engineering — just call the Actor
  • Export to JSON, CSV, Excel, JSONL, XML
  • Runs on Apify cloud — schedule it, add webhooks, wire into Make / Zapier / n8n

FAQ

Do I need an API key?

Only a free Apify token (grab one at https://console.apify.com/account/integrations). No ClinicalTrials.gov login and no scraping setup on your side.

How many results can I get?

Thousands per run. Raise the limit in the input to pull more — the Actor paginates for you.

What export formats are supported?

Results are plain JSON in code; from the Apify dataset you can export CSV, Excel, JSON, JSONL or XML.

Is this an official ClinicalTrials.gov API?

No. It is an unofficial ClinicalTrials.gov data client on the Apify platform — a maintained alternative when there is no official or affordable API.


MIT 2026 logiover · Client library for the hosted Apify Actor. Not affiliated with ClinicalTrials.gov.

Keywords