ClinicalTrials.gov Studies Search & Monitor: Recruitment (Apify Actor)

Search ClinicalTrials.gov studies by condition, drug, sponsor, country, status and phase. Export study data and compare with your last snapshot to catch recruitment status changes. No API key, no personal contacts. Export JSON or CSV. Price: $0.40 per 1,000 saved studies, plus $0.015 per run start. Runs as an Apify Actor, callable from MCP clients via the Apify MCP server (https://mcp.apify.com/?tools=cliqtomedia/clinicaltrials-gov-studies-monitor).

Hosted MCP Server

npx add-mcp 'https://mcp.apify.com/?tools=cliqtomedia/clinicaltrials-gov-studies-monitor'

Installs into Claude Code, Codex, Cursor and more

Documentation

ClinicalTrials.gov Studies Search & Monitor: Recruitment (cliqtomedia/clinicaltrials-gov-studies-monitor) Actor

Search ClinicalTrials.gov by condition, drug, sponsor, country, status and phase. Export study data and compare recruitment status changes with your snapshot. No API key or personal contacts.

Pricing

from $0.28 / 1,000 study saved

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events. Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 section below.

Each client library has reference documentation the quickstart does not restate: JavaScript/TypeScript (npm install apify-client) and Python (pip install apify-client).

README

Search ClinicalTrials.gov by disease, treatment, sponsor, country, recruitment status or phase. Get study records and compare them with your own earlier snapshot. No API key is needed. The 25-study demo costs $0.025 on the Free tier; a search with no matches still has a $0.015 start fee.

ClinicalTrials.gov study search, recruitment status comparison and JSON or CSV export

Contents

What it does

Choose filters. The Actor searches the official ClinicalTrials.gov API and returns the newest updated studies first. It follows all needed pages, up to your limit. It removes duplicate NCT IDs.

Use it for pharma business research, CRO planning and registry analysis. It returns public study information. It does not match patients, give medical advice or return personal contact details.

Study data

Each row has the NCT ID, titles, overall status, phases, conditions, treatments, lead sponsor, collaborators, enrollment, dates and countries. It also has links and the source dates. Some fields are not present in the registry. These return null or an empty array.

Dates retain their source type: ACTUAL means a reported actual date; ESTIMATED means an expected date, also called anticipated. A date can have year or month precision. The Actor does not invent a day.

Quick start

  1. Open Input. The new form has condition: "diabetes", overallStatus: ["RECRUITING"], maxResults: 25 and onlyNew: false.
  2. Click Start.
  3. Open Output → Studies. Check nctId, briefTitle and overallStatus.
  4. Export JSON, CSV or Excel from the Dataset.
  5. For a later comparison, open Next snapshot and save the whole JSON object.

The same demo works on the next run. It uses no saved hidden state. A typical small run takes a few seconds, plus platform startup time. Sending {} through the API instead searches all recent studies, up to the runtime default of 100; it does not add the diabetes demo filters.

Input

All fields are optional, except that onlyNew: true needs previousSnapshot.

FieldTypeRuntime default / form prefillLimits and use
conditionstring"" / "diabetes"Disease search, for example diabetes. Up to 200 characters. Empty skips this filter.
interventionstring"" / emptyDrug or treatment search, for example metformin. Up to 200 characters.
sponsorstring"" / emptySponsor or collaborator search, for example Novo Nordisk. Up to 200 characters.
countriesstring array[] / emptyExact registry country names, for example ["United States", "Canada"]. Up to 20. A study needs a site in at least one listed country.
overallStatusstring array[] / ["RECRUITING"]Overall recruitment statuses. Up to 20 values; choose from the list below. Empty allows all.
phasestring array[] / emptyEARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA. Empty allows all. NA means Not Applicable; a missing phase is different.
updatedSincestring"" / emptyInclusive last update posted date, YYYY-MM-DD. For example 2026-09-01. This is not the study start date.
maxResultsinteger100 / 251–500 distinct studies to scan. Start small. In changes-only mode it caps studies scanned, not changes returned.
previousSnapshotobjectabsent / absentCopy the entire SNAPSHOT record from your earlier run. Up to 2,000 study fingerprints and 2 MB. Keep all filters and maxResults the same.
onlyNewbooleanfalse / falseFalse returns all matched studies with change labels. True returns only new or changed studies and needs a baseline.

Supported statuses: RECRUITING, NOT_YET_RECRUITING, ENROLLING_BY_INVITATION, ACTIVE_NOT_RECRUITING, COMPLETED, SUSPENDED, TERMINATED, WITHDRAWN, UNKNOWN, AVAILABLE, NO_LONGER_AVAILABLE, TEMPORARILY_NOT_AVAILABLE, APPROVED_FOR_MARKETING, WITHHELD.

Filters combine with AND. Values inside country, status or phase lists combine with OR. Duplicate list values are removed. The text search fields use the registry search rules, including synonyms and supported search expressions. They do not mean an exact string match. Country filtering checks site country, not whether that site is recruiting.

Recruiting diabetes studies

{"condition":"diabetes","overallStatus":["RECRUITING"],"maxResults":25,"onlyNew":false}

Phase 3 studies with a US site, updated since a date

{"condition":"diabetes","countries":["United States"],"phase":["PHASE3"],"updatedSince":"2026-09-01","maxResults":25}

Snapshot format

previousSnapshot is the full object returned under Next snapshot. Its shape is:

{
  schemaVersion: 1,
  queryFingerprint: "the search fingerprint from SNAPSHOT",
  complete: true,
  studies: [{ nctId: "NCT07348432", overallStatus: "RECRUITING", contentHash: "the saved fingerprint" }]
}

This shows the format, not a ready-to-run baseline. Copy real values from your earlier run. A snapshot from a different query, or one with complete: false, is rejected before searching. complete: false appears when the input was invalid, or when a failed run saved no studies and had no baseline; then RUN_SUMMARY.snapshotUsable is false. Run the search again without previousSnapshot to get a new baseline.

Output

One Dataset row represents one study. A real diabetes demo row contains:

{
  "nctId":"NCT07348432",
  "briefTitle":"The diabEAT Study: Insulin dElivery Technologies And eaTing Behaviours in People With Type 1 Diabetes",
  "overallStatus":"RECRUITING",
  "phases":[],
  "studyType":"OBSERVATIONAL",
  "leadSponsor":"McGill University",
  "enrollment":106,
  "enrollmentType":"ESTIMATED",
  "startDate":{"date":"2024-07-29","type":"ACTUAL"},
  "primaryCompletionDate":{"date":"2026-10-31","type":"ESTIMATED"},
  "completionDate":{"date":"2027-04-30","type":"ESTIMATED"},
  "locationsCount":1,
  "countries":["Canada"],
  "lastUpdatePostDate":"2026-10-09",
  "url":"https://clinicaltrials.gov/study/NCT07348432",
  "changeType":"SNAPSHOT"
}

This is a shortened row from a live run on 2026-10-13. The registry can change it later.

FieldType / empty valueMeaning / example
nctIdstring, not nullRegistry ID, such as NCT07348432.
briefTitlestring, not nullShort study title.
officialTitlestring or nullFull official title, when present.
overallStatusstring, not nullOverall recruitment status.
phasesstring array, []Source phases; combined phase 2/3 has both values.
studyTypestring or nullFor example OBSERVATIONAL or INTERVENTIONAL.
conditionsstring array, []Reported conditions.
interventionsobject array, []{name, type}; either member can be null. No contacts.
leadSponsorstring or nullLead organization name, such as McGill University.
leadSponsorClassstring or nullSource organization class, such as OTHER.
collaboratorsobject array, []{name, class} organization records; members can be null.
enrollmentnumber or nullParticipant count reported by the source. Null is not zero.
enrollmentTypestring or nullACTUAL or ESTIMATED.
startDateobject{date, type}; either member can be null.
primaryCompletionDateobjectDate of main outcome collection, with actual/estimated type.
completionDateobjectStudy completion date and type.
locationsCountinteger or nullNumber of reported location entries. Null means the source did not return this list.
countriesstring array, []Unique reported site countries. Empty does not mean a study has no sites.
lastUpdatePostDatestring or nullDate the study update was posted.
urlstringPublic study page.
providerstringClinicalTrials.gov.
sourceUrlstringOfficial study API URL.
fetchedAtstringTime this Actor fetched the row, in ISO UTC.
sourceUpdatedAtstring or nullSame study-level value as lastUpdatePostDate.
providerDataTimestampstring or nullRegistry data processing timestamp from the version response, kept as reported. Different from study update and fetch time.
licensestringTerms notice. Reuse permission is not independently confirmed.
licenseUrlstringLink to source terms.
changeTypestringSNAPSHOT, NEW, UNCHANGED, STATUS_CHANGED or UPDATED.
changedFieldsstring array, []overallStatus for status change, record for other change. This is not a full field diff.
contentHashstringNormalized content fingerprint for comparison. Fetch time is excluded.

Run summary (RUN_SUMMARY) has these keys: status, errorCode (null on success), error (same code), statusReason (plain-English reason), message (null, or the input problem), inputErrors (empty, or field, message, example of the input problem; a Timeout that is too short adds code INPUT_TIMEOUT_TOO_SHORT), stopReason (null, or the reason a partial run stopped), runTimeoutSecs (the Timeout of this run in seconds, or null), provider, sourceUrl, scannedStudies, emittedStudies (saved and charged rows), pages, limitReached, sourceExhausted, requests, retries, responseBytes, durationMs, internalDeadlineSecs, snapshotStudies, snapshotCarriedOver, snapshotDropped, snapshotCap, snapshotUsable, resumedAfterMigration and snapshotScope. Error runs have the same keys, with zero counts.

Next snapshot (SNAPSHOT) contains the query fingerprint and study fingerprints for your next comparison. Both records live in the default key-value store.

There is no separate OUTPUT record. The Output tab links directly to the Dataset and these two records. The run's own STATE record is internal: it lets a moved run continue and is not needed for monitoring.

Pricing

Pay per event. One automatic start costs $0.015 per run at the supported 256 MB memory. Each saved study has one study event. Unchanged studies skipped by onlyNew have no study event. The start fee is also charged when nothing is saved: no match, no change, an unknown country, a search text that ClinicalTrials.gov rejects, a source error, or a Timeout that ended before the first study was saved. Platform usage is covered by this model for standard runs.

PlanPrice per saved studyPrice per 1,000 saved studies
Free$0.00040$0.40
Bronze$0.00038$0.38
Silver$0.00036$0.36
Gold, Platinum, Diamond$0.00034$0.34
Example on Free tierEvent total
No matches or no changes$0.015
1 study$0.0154
10 studies$0.019
25-study demo$0.025
100 studies$0.055
500 studies, one run$0.215
1,000 studies across at least two distinct searches$0.43

The limit is 500 per run. The last line is a price calculation, not a promise of a 1,000-study scan or automatic split. Do not repeat the same search to get the next 500; the Actor starts with the newest studies again. Set a total charge limit of at least $0.0154. A lower limit may not start the run. When your charge limit is reached, the Actor stops, keeps the saved studies and ends as Succeeded with status: "partial" and errorCode: "CHARGE_LIMIT". Studies that were not saved are not charged.

Use cases

TaskFiltersUseful fields
Review a disease research pipelinecondition, phaseNCT ID, phases, sponsor, enrollment
Review an organization portfoliosponsorTitles, countries, dates
Watch recruitment updatespreviousSnapshot, onlyNewChange type, status, content fingerprint
Export a regional registry listcountries, overallStatusCountries, status, source links

Monitoring

Run a search and save SNAPSHOT. Later, run the same filters and maxResults with that object in previousSnapshot. Set onlyNew: true for changes only. A new study gets NEW; a different overall status gets STATUS_CHANGED; other study content changes get UPDATED. With onlyNew: false, unchanged rows get UNCHANGED.

The next snapshot starts from your baseline. Studies saved in this run replace their old entries. Baseline studies that this run did not see, for example because they moved beyond maxResults, stay in the snapshot unchanged. So a study that comes back later is compared with its old entry and is not sold again as NEW. Studies that were not saved, for example after the charge limit, are not added. The snapshot keeps up to 2,000 studies; when it is full, the studies not seen for the longest time are dropped first. A record absent from the later result is never called deleted or closed. For recruitment monitoring, avoid a status filter if you need to see a study change out of that status. The Actor does not keep a shared baseline or create schedules. You can set up an Apify schedule yourself and supply your saved baseline.

API, export and integrations

Use the Apify API, Dataset exports or your own Make, Zapier or n8n flow. Get JSON or CSV through the Output links; Excel export is available in the Dataset page. The CSV export (fixed columns) link has the same columns every run and leaves out list fields. A full Dataset CSV puts list items into numbered columns, such as countries/0 and countries/1, so the number of columns can change between runs. Use JSON or Excel when you need the lists.

Start a run using the Apify API endpoint https://api.apify.com/v2/actors/cliqtomedia~clinicaltrials-gov-studies-monitor/runs. Send the same JSON input as in the examples. Use your own Apify token in an authorization header. Do not put it into the input or a shared URL.

Use with AI agents (MCP)

Connect Apify MCP for this Actor. Send {"condition":"diabetes","overallStatus":["RECRUITING"],"maxResults":25}. Read nctId, briefTitle, overallStatus, leadSponsor and changeType in the results. The Free-tier demo event price is $0.025. A small run usually finishes in seconds; large or slow source runs take longer. The Actor uses limited permissions and pay-per-event pricing.

Limits and errors

The proven maximum is 500 distinct studies per run. Work at the source stops after 90 seconds. Requests have a 15-second limit, including the body. The Actor retries temporary errors at most three attempts, with at most two timeouts. It reads at most 10 study pages and accepts at most 6 MB of response data. A large or slow response can produce partial output.

RUN_SUMMARY.status separates:

StatusMeaningPlatform result
completeThe requested bounded scan finished; may have zero changes.SUCCEEDED
not_foundNo studies matched; not a source error.SUCCEEDED
partial with CHARGE_LIMITYour charge limit was reached; saved rows are kept.SUCCEEDED
partial with RUN_TIMEOUT or SOURCE_DEADLINEThe run time or the 90-second source limit ran out after some studies; saved rows are kept. The status message starts with ⚠️.SUCCEEDED
partial with another codeA source or runtime error stopped the run after some studies; saved rows are kept.FAILED; inspect saved rows
invalid_inputYour input is wrong, for example a bad updatedSince date or onlyNew without previousSnapshot. No source request, no studies; message and inputErrors name the field and give an example. A Timeout below 300 seconds that ended before the first study was saved also ends here, with INPUT_TIMEOUT_TOO_SHORT.SUCCEEDED
errorSource, resource or runtime failed before useful output.FAILED

limitReached: true means more results may exist. It does not mean all matching studies were exported. The snapshot of a partial run is still a valid baseline when it holds studies saved in that run or your earlier baseline. If a failed run saved nothing and had no baseline, the snapshot has complete: false. Source errors, invalid JSON, redirects and rate limits do not become an empty result. Studies are saved and charged together, one source page at a time. If the platform moves a run to another server, the run continues from the last saved page. In a rare case one page may repeat: its studies are then saved and charged twice. Also rarely, if the platform confirms a page write too late and the write is retried, one page of studies can appear twice in the Dataset while being charged once. Deduplicate by nctId if you need a strict list.

Registry updates may be delayed, especially over weekends and holidays. Check providerDataTimestamp and lastUpdatePostDate. Records are supplied by study sponsors; inclusion in the registry does not mean government approval or verified scientific quality.

Source and reuse

Source: ClinicalTrials.gov and its official API documentation. This independent Actor is not affiliated with NIH or NLM.

Read the ClinicalTrials.gov Terms and Conditions before reuse. The terms require attribution, current data, the provider processing date and disclosure of modifications. Data can carry international or third-party copyright. This Actor does not grant a new data license or proprietary rights over the government database. It selects fields, flattens selected modules, sorts list values, removes duplicate IDs and contacts, adds links/provenance, and adds snapshot comparison labels. It does not change medical values. Refresh your export when you distribute it.

Troubleshooting

ProblemAction
No rowsCheck spelling and combined filters. Read summary: not_found is a valid result.
No changesThis can be normal. Check scanned count and the same search fingerprint.
SNAPSHOT_QUERY_MISMATCHRestore the filters and maxResults from the baseline run.
INVALID_previousSnapshotCopy the full successful SNAPSHOT, not Dataset rows.
SOURCE_QUERY_REJECTEDCheck the text search syntax, for example an unclosed bracket or quote. The $0.015 start fee is charged.
Unknown country nameThe run returns not_found and the $0.015 start fee is charged. Use registry country names such as United States, Korea, Republic of or Turkey (Türkiye).
SOURCE_RATE_LIMIT or SOURCE_UNAVAILABLERetry later. Do not run many copies at once.
The run ran out of timeThe saved studies stay in the Dataset and the run ends SUCCEEDED with a status message that starts with ⚠️. Set a longer Timeout in Run options, or lower maxResults. Work stops at least 45 seconds before the Timeout so the results and the summary are always saved. If you set a Timeout below 300 seconds and no study was saved, the run also ends SUCCEEDED with a short-Timeout message and only the start fee is charged. With a Timeout of 300 seconds or more and no study saved, the run is FAILED.
Byte limitUse a smaller or narrower search. Partial data remains visible.
CHARGE_LIMITThe run succeeded with fewer rows. Raise your per-run limit or lower maxResults.
Missing date or enrollmentThe registry did not report that value. Null is not zero.

Run finished with no results and an input error message — fix the named field and run again.

FAQ

Do I need a ClinicalTrials.gov key? No.

Can I export every trial? This Actor exports at most 500 per run. It does not promise all registry records.

Is this real-time monitoring? It compares two snapshots you supply. The registry has its own update schedule.

Can I see which fields changed? A status change is named. Other changes get UPDATED and changedFields: ["record"]. A full field-level diff is not included.

Does it return investigator emails? No. It selects study and organization fields only.

Can I use it to choose treatment? It is a registry data tool, not a treatment or patient selection tool.

Related Actors

For literature work, use your preferred research tools with the NCT IDs from this export.

Support

Open the Issues tab on this Actor in Apify Store. Include the run ID, safe filters and the error code. Do not include tokens or personal data.

Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/clinicaltrials-gov-studies-monitor/changelog.md

Actor input Schema

condition (type: string):

Condition search, such as diabetes. Empty searches all conditions. Maximum 200 characters.

intervention (type: string):

Treatment search, such as metformin. Empty means any intervention. Maximum 200 characters.

sponsor (type: string):

Organization name. Empty means any sponsor. Maximum 200 characters.

updatedSince (type: string):

Inclusive last-update posted date in YYYY-MM-DD. Empty means no date filter.

countries (type: array):

Exact registry country names, such as United States. OR within list, AND with other filters. Maximum 20 names.

overallStatus (type: array):

OR within the list; empty means any status.

phase (type: array):

OR within the list; empty means any phase. Not applicable (NA) is a registry value, different from a missing phase.

maxResults (type: integer):

Stop after 1–500 distinct studies. Default 100; demo 25. In onlyNew mode caps scanned studies, not changes. Newest updates first.

previousSnapshot (type: object):

Paste the whole SNAPSHOT object from your earlier run with the same filters and maxResults. Up to 2,000 study fingerprints. Do not paste Dataset rows.

onlyNew (type: boolean):

False returns every study with change labels. True emits NEW, STATUS_CHANGED and UPDATED only. Requires previousSnapshot. No hidden state or automatic schedule.

Actor input object example

{
  "condition": "diabetes",
  "intervention": "",
  "sponsor": "",
  "updatedSince": "",
  "countries": [],
  "overallStatus": [
    "RECRUITING"
  ],
  "phase": [],
  "maxResults": 25,
  "onlyNew": false
}

Actor output Schema

studies (type: string):

Study rows with recruitment status, dates, sponsor and changes.

csv (type: string):

Main study fields as CSV with the same columns every run. List fields are in JSON and Excel.

runSummary (type: string):

Status, error code, reason and counts.

snapshot (type: string):

Copy this JSON into previousSnapshot for the same search.

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

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 = {
    "condition": "diabetes",
    "overallStatus": [
        "RECRUITING"
    ],
    "maxResults": 25,
    "onlyNew": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/clinicaltrials-gov-studies-monitor").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

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 = {
    "condition": "diabetes",
    "overallStatus": ["RECRUITING"],
    "maxResults": 25,
    "onlyNew": False,
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/clinicaltrials-gov-studies-monitor").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

echo '{
  "condition": "diabetes",
  "overallStatus": [
    "RECRUITING"
  ],
  "maxResults": 25,
  "onlyNew": false
}' |
apify call cliqtomedia/clinicaltrials-gov-studies-monitor --silent --output-dataset

MCP server setup

{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/clinicaltrials-gov-studies-monitor"
        }
    }
}

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/6hzOMUfcWyNpwWR5q/builds/hMDz5wg3rtjG9eblt/openapi.json