# ClinicalTrials.gov Scraper – Studies API (`unnoted/clinicaltrials-gov-search`) Actor

Search ClinicalTrials.gov studies by keyword, condition, intervention, sponsor, location, status and phase, or look up NCT ids. Get title, status, phases, conditions, interventions, sponsor, enrollment, key dates, sites and summary per study. Export JSON, CSV or Excel. Unofficial.

- **URL**: https://apify.com/unnoted/clinicaltrials-gov-search.md
- **Developed by:** [Unnoted](https://apify.com/unnoted) (community)
- **Categories:** AI, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 studies

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does ClinicalTrials.gov Scraper – Studies API do?

ClinicalTrials.gov Scraper searches the US registry of clinical studies and returns each study as one flat row: title, recruitment status, phases, conditions, interventions, sponsor, enrollment, start and completion dates, sites and summary, ready to export or call by API.

Unofficial, not affiliated with ClinicalTrials.gov.

**Main features:** up to 100,000 studies per run, no login needed, export to JSON, CSV or Excel, and full API and scheduling support on Apify.

### What data can you get from ClinicalTrials.gov?

Each study is one row with these fields:

| Field | Description |
|---|---|
| `nctId` | ClinicalTrials.gov study id (e.g. NCT04882293) (always filled) |
| `url` | Study page on clinicaltrials.gov (always filled) |
| `briefTitle` | Short study title (always filled) |
| `overallStatus` | Recruitment status (e.g. RECRUITING, COMPLETED, TERMINATED) |
| `phases` | Trial phases (e.g. PHASE2, PHASE3); NA for studies where phases don't apply; empty for observational studies |
| `studyType` | INTERVENTIONAL, OBSERVATIONAL or EXPANDED_ACCESS |
| `conditions` | Conditions or diseases studied |
| `interventions` | Treatments studied: \[{ type, name }], e.g. { type: DRUG, name: Metformin } |
| `leadSponsor` | Lead sponsor organisation (empty when the sponsor is an individual) |
| `leadSponsorClass` | Lead sponsor type: INDUSTRY, NIH, FED, OTHER_GOV, NETWORK, OTHER, INDIV, … |
| `collaborators` | Collaborating organisations |
| `enrollment` | Number of participants |
| `enrollmentType` | Whether enrollment is ACTUAL or ESTIMATED |
| `startDate` | Study start (YYYY-MM-DD or YYYY-MM, as registered) |
| `primaryCompletionDate` | Primary completion (YYYY-MM-DD or YYYY-MM) |
| `completionDate` | Study completion (YYYY-MM-DD or YYYY-MM) |
| `locations` | Study sites: \[{ facility, city, state, country }] |
| `briefSummary` | Brief summary of the study |
| `officialTitle` | Full protocol title |
| `acronym` | Study acronym (e.g. SUSTAIN-6) |
| `keywords` | Keywords the sponsor registered |
| `hasResults` | Whether results are posted on ClinicalTrials.gov |
| `firstPostedAt` | When the study was first posted (YYYY-MM-DD) |
| `lastUpdatedAt` | When the record was last updated (YYYY-MM-DD) |
| `scrapedAt` | When the study was collected (ISO 8601) |

### How to scrape ClinicalTrials.gov with ClinicalTrials.gov Scraper – Studies API

1. Open ClinicalTrials.gov Scraper – Studies API on Apify and go to the **Input** tab.
2. In **Search terms**, enter `diabetes`.
3. In **Max studies**, enter `20`.
4. Click **Start** and wait for the run to finish. A small run like this one takes under a minute.
5. Open the **Output** tab to see the results, or download them as JSON, CSV, Excel or HTML.

### Input

See the **Input** tab for every option. The fields:

| Field | Name | What it does | Default |
|---|---|---|---|
| `query` | Search terms | Words to find anywhere in a study, as on ClinicalTrials.gov's "Other terms" box, e.g. diabetes, GLP-1, NCT04882293 or pembrolizumab AND melanoma. |  |
| `condition` | Condition or disease | Only studies of this condition or disease, e.g. type 2 diabetes, breast cancer, long covid. Synonyms are matched too. |  |
| `intervention` | Intervention or treatment | Only studies of this drug, device, procedure or other treatment, e.g. metformin, semaglutide, CAR-T. |  |
| `sponsor` | Sponsor or collaborator | Only studies whose lead sponsor or a collaborator matches, e.g. Novo Nordisk, Pfizer, National Cancer Institute. |  |
| `location` | Location | Only studies with a site matching this place: a country, state, city or facility name, e.g. Germany, Texas, Boston or Mayo Clinic. |  |
| `status` | Recruitment status | Any of: recruiting, not yet recruiting, enrolling by invitation, active not recruiting, completed, suspended, terminated, withdrawn, unknown. |  |
| `phases` | Phases | Any of: early phase 1, phase 1, phase 2, phase 3, phase 4, not applicable. |  |
| `sortBy` | Sort by | Order of the results. With a sort by date, a run with Max studies set to 100 gets the 100 newest. Options: `relevance` (Relevance), `lastUpdated` (Last updated (newest first)), `firstPosted` (First posted (newest first)), `startDate` (Start date (latest first)). | `"relevance"` |
| `nctIds` | NCT ids | NCT ids or study links, e.g. `NCT04882293`. |  |
| `maxItems` | Max studies | Maximum number of studies in total, across the search and the id list. You pay only for studies saved. | `100` |

Example input:

```json
{
  "query": "diabetes",
  "maxItems": 20
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. One real result:

```json
{
  "nctId": "NCT07703371",
  "url": "https://clinicaltrials.gov/study/NCT07703371",
  "briefTitle": "Kodo Millet Porridge and Its Effects on Gut Health and Metabolic Syndrome",
  "overallStatus": "RECRUITING",
  "phases": [
    "NA"
  ],
  "studyType": "INTERVENTIONAL",
  "conditions": [
    "Obesity & Overweight",
    "Metabolic Syndrome",
    "Gut Dysbiosis",
    "Insulin Resistance",
    "Dyslipidemia"
  ],
  "interventions": [
    {
      "type": "DIETARY_SUPPLEMENT",
      "name": "Kodo Millet Porridge Beverage"
    }
  ],
  "leadSponsor": "JSS MEDICAL COLLEGE, JSS ACADEMY OF HIGHER EDUCATION AND RESEARCH",
  "leadSponsorClass": "OTHER",
  "collaborators": [],
  "enrollment": 50,
  "enrollmentType": "ESTIMATED",
  "startDate": "2026-06-01",
  "primaryCompletionDate": "2026-10-16",
  "completionDate": "2026-11-16",
  "locations": [
    {
      "facility": "JSS Medical College, JSS Academy of Higher Education & Research(JSSAHER).",
      "city": "Mysore",
      "state": "Karnataka",
      "country": "India"
    }
  ],
  "briefSummary": "Dietary fiber are components in foods that are not digested by human gastrointestinal enzymes (alpha amylase and alpha glucosidase) but are instead broken down and fermented by gut microbes. The byproducts generated during fermentation in the large intestine, primarily short-chain fatty acids (SCFA), bile acids, indoles, and their derivatives, circulate through the circulatory system to the liver, lungs, brain, adipose tissue, and muscles, where they modulate metabolism (suppress lipogenesis and alleviate insulin resistance) and immune function. Individuals who are overweight or obese frequently exhibit gut dysbiosis, characterized by lower SCFA producing commensals. This condition predisposes them to metabolic disorders such as insulin resistance, dyslipidemia, and hypertension, and contributes to conditions including type 2 diabetes, cardiovascular disease, and metabolic dysfunction-associated steatotic liver disease. Preclinical and clinical research have demonstrated that the consumption of fiber-rich foods maintains or restores gut microbiota health and diminishes the risk of metabolic disorders. Kodo millet (Paspalum scrobiculatum), a small millet, is rich in dietary fiber and we have developed a palatable kodo millet porridge beverage enriched with polyphenols and dietary fiber. The purpose of this study is to examine the effects of consuming Kodo millet porridge beverage as a nutritional supplement for 3 months, on gut microbiome richness (composition and diversity) and metabolic health in overweight or obese people.",
  "officialTitle": "Impact of Dietary Fiber-Rich Kodo Millet Porridge Supplementation on Gut Microbiome and Metabolic Syndrome",
  "acronym": "KMGMS",
  "keywords": [
    "Kodo Millet",
    "Dietary Fiber",
    "Gut Microbiome",
    "Short-Chain Fatty Acids",
    "16S rRNA Sequencing",
    "Metabolic Syndrome",
    "Obesity",
    "Gut Dysbiosis",
    "Dyslipidemia",
    "Glycemia",
    "Prebiotic",
    "Small Millet",
    "Porridge",
    "Antioxidant",
    "Inflammation"
  ],
  "hasResults": false,
  "firstPostedAt": "2026-07-14",
  "lastUpdatedAt": "2026-07-14",
  "scrapedAt": "2026-10-08T22:16:41.194Z"
}
```

### How much does it cost to scrape ClinicalTrials.gov?

ClinicalTrials.gov Scraper – Studies API uses pay-per-event pricing: **$3.00 per 1,000 studies** (Study). You pay only for studies saved to the dataset; platform usage is included in the price. Each run also has Apify's standard start fee of a fraction of a cent.

| Studies | Price |
|---|---|
| 100 | $0.30 |
| 1,000 | $3.00 |
| 10,000 | $30.00 |

Set **Max items** (and the run's maximum cost in the run options) to cap what a run can spend. The run stops when either limit is reached.

### Use cases

- **Pharma and biotech intelligence:** track a competitor's or a drug class's trials by sponsor or intervention, and see phases, status and dates change over time.
- **Site and patient recruitment:** list recruiting studies for a condition in a country or city, with their sites.
- **Investment research:** follow pipelines by phase and completion date ahead of readouts.
- **Medical and academic research:** build datasets of studies for a disease, e.g. every completed phase 3 diabetes trial.
- **Monitoring:** schedule a daily run sorted by last updated and send changes to Google Sheets, Slack or email.

### Tips

- Combine fields to narrow a search: condition breast cancer, intervention pembrolizumab, status recruiting, location Germany.
- Search terms take ClinicalTrials.gov's own syntax too: AND, OR, NOT, quotes for phrases.
- Sort by last updated to get the newest changes first; with a daily schedule, a small Max studies is enough.
- Dates are as the sponsor registered them: some studies give only a month (YYYY-MM).
- NCT ids are looked up directly, in any order; ids that don't exist are skipped.

### FAQ

#### Is it legal to scrape ClinicalTrials.gov?

ClinicalTrials.gov Scraper – Studies API collects only data that ClinicalTrials.gov shows publicly to every visitor, and it leaves out personal data such as private profiles and contact details. Our Actors are ethical and do not extract private user data. Results could still contain personal data in titles or descriptions written by uploaders. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You are responsible for how you use the data.

#### Can I use it through an API?

Yes. Every Apify Actor has an API: start runs, pass input and read results over HTTP, or use the JavaScript and Python clients. See the **API** tab on the Actor page for ready-made examples.

#### Can I schedule runs and connect other apps?

Yes. Use Apify **Schedules** to run ClinicalTrials.gov Scraper – Studies API every hour, day or week, and integrations (Make, Zapier, Google Sheets, webhooks and more) to send the results where you need them.

#### Why did I get fewer results than expected?

The run stops at **Max items** or at the run's maximum cost, whichever comes first. ClinicalTrials.gov may also return fewer results for rare search terms. Duplicates across search terms are saved once. Check the run's `RUN_SUMMARY` record in the key-value store for the inputs that returned nothing.

#### What if it stops working?

Sites change. We run a daily check of our own and fix breakages quickly. If something looks wrong, open an issue in the **Issues** tab with the run link and we'll look at it.

#### Does it include results or eligibility criteria?

No. Each study row has whether results are posted (hasResults) and a link to the study page, where the full record, eligibility criteria and posted results are.

#### Why are some sponsors empty?

When the lead sponsor or a collaborator is registered as an individual, the name is left out, so every row names organisations only.

#### How many studies can one run get?

All of a search: a search for diabetes returns about 35,000 studies. Set Max studies to the number you need; you pay only for studies saved.

#### Is the data free to reuse?

ClinicalTrials.gov is a US National Library of Medicine service, and its records are public. Check its terms for how to cite it.

### Not included

No personal data: no contact names, emails or phone numbers, no investigators, and no sponsor or collaborator registered as an individual. Sites are listed by facility and place only. Eligibility criteria, outcome measures and posted results are not included; each study links to its full record.

### More Actors from us

- [AliExpress Search Scraper – Products & Prices](https://apify.com/unnoted/aliexpress-product-search)
- [BBB Scraper – Business Ratings & Accreditation](https://apify.com/unnoted/bbb-business-search)
- [Bilibili Scraper – Video Search & Stats API](https://apify.com/unnoted/bilibili-video-scraper)
- [Bumeran Jobs Scraper – LATAM Job Listings](https://apify.com/unnoted/bumeran-job-listings)
- [Foundit Jobs Scraper – India Job Listings API](https://apify.com/unnoted/foundit-job-listings)
- [Google Jobs Scraper – Job Listings API](https://apify.com/unnoted/google-jobs-listings)
- [Google Play Reviews Scraper – App Reviews API](https://apify.com/unnoted/google-play-reviews-scraper)
- [Google Trends Scraper – Interest & Related Queries](https://apify.com/unnoted/google-trends-data)
- [Idealo Scraper – Price Comparison Data](https://apify.com/unnoted/idealo-price-search)
- [Kleinanzeigen Scraper – Listings & Prices](https://apify.com/unnoted/kleinanzeigen-listings-scraper)
- [Mercari Japan Scraper – Listings & Prices API](https://apify.com/unnoted/mercari-japan-search)
- [Resident Advisor Scraper – RA Event Listings](https://apify.com/unnoted/resident-advisor-events)
- [Sainsbury's Scraper – UK Grocery Prices](https://apify.com/unnoted/sainsburys-grocery-search)
- [Tokopedia Scraper – Product Search & Prices](https://apify.com/unnoted/tokopedia-product-search)
- [Workday Jobs Scraper – Any Careers Site](https://apify.com/unnoted/workday-jobs-scraper)
- [Yandex Maps Scraper – Places & Business Data](https://apify.com/unnoted/yandex-maps-places)

# Actor input Schema

## `query` (type: `string`):

Words to find anywhere in a study, as on ClinicalTrials.gov's "Other terms" box, e.g. diabetes, GLP-1, NCT04882293 or pembrolizumab AND melanoma.

## `condition` (type: `string`):

Only studies of this condition or disease, e.g. type 2 diabetes, breast cancer, long covid. Synonyms are matched too.

## `intervention` (type: `string`):

Only studies of this drug, device, procedure or other treatment, e.g. metformin, semaglutide, CAR-T.

## `sponsor` (type: `string`):

Only studies whose lead sponsor or a collaborator matches, e.g. Novo Nordisk, Pfizer, National Cancer Institute.

## `location` (type: `string`):

Only studies with a site matching this place: a country, state, city or facility name, e.g. Germany, Texas, Boston or Mayo Clinic.

## `status` (type: `array`):

Only studies with any of these statuses, one per line: recruiting, not yet recruiting, enrolling by invitation, active not recruiting, completed, suspended, terminated, withdrawn, unknown. Empty means any status.

## `phases` (type: `array`):

Only studies in any of these phases, one per line: early phase 1, phase 1, phase 2, phase 3, phase 4, or not applicable (studies without phases, e.g. device or behavioural). Empty means any phase.

## `sortBy` (type: `string`):

Order of the results. With a sort by date, a run with Max studies set to 100 gets the 100 newest.

## `nctIds` (type: `array`):

Study ids or links to get, one per line, e.g. NCT04882293 or https://clinicaltrials.gov/study/NCT04882293. Searches and filters don't apply to them.

## `maxItems` (type: `integer`):

Maximum number of studies in total, across the search and the id list. You pay only for studies saved.

## Actor input object example

```json
{
  "query": "diabetes",
  "sortBy": "relevance",
  "maxItems": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One item per study.

## `runSummary` (type: `string`):

Items saved, inputs done, and how complete each field was.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "diabetes",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("unnoted/clinicaltrials-gov-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "diabetes",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("unnoted/clinicaltrials-gov-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "diabetes",
  "maxItems": 20
}' |
apify call unnoted/clinicaltrials-gov-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unnoted/clinicaltrials-gov-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/URdOyKyqnNlbAECHY/builds/IicvjpNHzhLxXDAY9/openapi.json
