ClinicalTrials.gov API: Clinical Trials Search
Pricing
$3.00 / 1,000 trial returneds
ClinicalTrials.gov API: Clinical Trials Search
Search ClinicalTrials.gov by condition, intervention, sponsor, location, phase, status or NCT ID. One flat record per trial.
Pricing
$3.00 / 1,000 trial returneds
Rating
0.0
(0)
Developer
Data and Beyond
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
19 days ago
Last modified
Categories
Features
Share
Search ClinicalTrials.gov by condition, drug, sponsor, location, phase, status or NCT ID. Each trial comes back as one flat record with status, phase, sponsor, enrollment, interventions, outcomes, dates and countries.
Example input
{"nctIds": ["NCT04368728"]}
How it works
- Give at least one of
condition,intervention,sponsor,searchTerm,locationornctIds. There are no hidden default filters. - NCT IDs with a wrong format get their own row with an error. A well-formed ID that doesn't exist gets a
NOT_FOUNDrow.
Output
One JSON record per result with: nctId, title, officialTitle, acronym, overallStatus, whyStopped, phases, studyType, enrollment, allocation, primaryPurpose, leadSponsor, leadSponsorClass, collaborators, conditions, keywords, interventions, primaryOutcomes, briefSummary, startDate, primaryCompletionDate, completionDate, firstPosted, lastUpdated, hasResults, countries, siteCount, minAge, maxAge, sex, url, source.
Limitations
- Summaries are cut to 1,500 characters.
- Only data registered on ClinicalTrials.gov.
- On Apify's free plan, start one run at a time. Several runs started at once can be refused with HTTP 402 (memory limit for concurrent runs).
Invalid input
Text fields or list items that contain only spaces stop the run with a clear error before any external API is called. Nothing is charged.
No results
A query with no hits gives one row: {"query": ..., "status": "NOT_FOUND", "message": "No results for ..."}. It is not charged.
When something goes wrong
If the upstream API is down, times out or rejects the request, the run fails with a status message that says which API failed and why. You won't get an empty "success" that looks like "no results".
Price
$0.003 per trial. No start fee. Apify's free plan includes a small monthly credit, so testing costs next to nothing.
Using it from an MCP client
Apify's MCP server exposes it as a tool. You need an Apify account and API token (the free plan is enough to try it):
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com/?tools=dataandbeyond/clinical-trials", "headers": { "Authorization": "Bearer <APIFY_TOKEN>" } } } }
Or call it over HTTP and get the rows back directly:
curl -X POST "https://api.apify.com/v2/acts/dataandbeyond~clinical-trials/run-sync-get-dataset-items" \-H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' -d '{"nctIds": ["NCT04368728"]}'
Source and license
ClinicalTrials.gov API v2 (U.S. National Library of Medicine). Each record has a source field. Follow the source license if you redistribute the data.
Contact
Mark, Data and Beyond ApS (Denmark). Open an issue on the Actor page if something is wrong or missing.