MCP + API · kestrel/clinical-trials-search

Clinical Trials Search - Studies, Sponsors & 临床试验

Search clinical trials on ClinicalTrials.gov by query and recruitment status. Rows: NCT ID, title, sponsor, conditions, phase, enrollment, eligibility, locations and public study contacts. Free country/text filters; exclude known IDs or content hashes for repeat-run research. 临床试验。

Open Actor Download MCP config

Connect this tool

Add this URL as a remote MCP server in your client, then sign in to Apify. For a client-specific setup, use Apify's configurator.

https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/clinical-trials-search
Generic MCP client configuration
{
  "mcpServers": {
    "kestrel-clinical-trials-search": {
      "url": "https://mcp.apify.com?tools=call-actor,fetch-actor-details,kestrel/clinical-trials-search"
    }
  }
}

Understand the output before you run

Declared dataset fields and row types · Output locations and dataset links

Use the declared dataset schema for item fields; the output schema describes where results are stored. Optional fields may be null or absent. If an integration shows a sampled schema without an optional field, check this declaration, the Actor instructions and actual returned rows before concluding that the field is unsupported.

Inspect 22 declared output fields
FieldTypeMeaning
idstring / nullid
titlestring / nulltitle
official_titlestring / nullofficial title
statusstring / nullstatus
last_updatedstring / nulllast updated
start_datestring / nullstart date
completion_datestring / nullcompletion date
conditionsarray / nullconditions
interventionsarray / nullinterventions
phasesarray / nullphases
study_typestring / nullstudy type
enrollmentinteger / nullenrollment
sponsorstring / nullsponsor
summarystring / nullsummary
eligibilitystring / nulleligibility
contactsarray / nullcontacts
locationsarray / nulllocations
has_resultsboolean / nullhas results
study_urlstring / nullstudy url
source_urlstring / nullsource url
content_hashstring / nullcontent hash
fetched_atstring / nullfetched at

Start with a small sample

Use call-actor with the JSON below. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Change the target to match your request. This input validates against build 1.0.5; it is not a promise that the source has matching rows today.

{
  "actor": "kestrel/clinical-trials-search",
  "input": {
    "searchQuery": "diabetes",
    "recruitmentStatus": "all",
    "countryContains": "",
    "maxResults": 3,
    "maxPages": 1
  },
  "callOptions": {
    "maxTotalChargeUsd": 0.25,
    "timeout": 300
  },
  "waitSecs": 30
}

After completion, use get-dataset-items with storages.datasets.default.id. If still running, poll get-actor-run using the returned runId. Check status rows and errors before treating an empty dataset as no matches.

Call from Python, JavaScript or REST

Python SDK 3 example · JavaScript SDK 2 example · curl + jq example. Each uses this same small input, reads APIFY_TOKEN from your environment, sets a five-minute run timeout and exports all dataset row types as JSON Lines. The $0.25 run ceiling is separate from the Actor input and may stop the sample early. Inspect the run and source status before treating results as complete. Installation and usage.

Pricing and limits

Current listed event prices in USD. Some Actors charge for successful source checks even when no output rows match. The event descriptions below define those differences.

EventUSD eachWhat is charged
study$0.005One delivered study snapshot ($5 per 1,000 rows; row keys id, title, official_title, status, last_updated, start_date, completion_date, conditions, interventions, content_hash, fetched_at). No start fee; proxy and compute included. Filters, duplicates, excluded rows and failures without delivered rows are free. Stops at maxTotalChargeUsd (Apify run option, not input). Nested data included; partial errors retain paid rows already delivered. Inspect free SUMMARY for page limits and source errors.

Contracts for agents

Public contract checked 2026-11-11. Active build: 1.0.5. Refresh live details before a large or recurring run.