Life sciences provider · 2 capabilities

Clinical Trials API for AI agents and assistants

Full ClinicalTrials.gov study registry records by NCT id or first-posted date range, with status, phases, enrollment, interventions, outcomes, eligibility, sponsors and sites. Available to your AI agents via Firecrawl Alexandria.

Sign up to use Clinical Trials
Sign in

Try Clinical Trials with
Firecrawl Alexandria

Choose an example or ask your own question.

Clinical Trials
TRY ASKING

Playground

Try the Clinical Trials API via Firecrawl Alexandria

Pick a capability, fill in its inputs and run it, or copy the JavaScript, Python, cURL or CLI code.

1Request
stringRequired

string

Defaults to since.

number

Most records per page, 1 to 25. Default 25.

string

nextCursor from the previous page, sent with the same range options. A cursor reads the snapshot it started on; when a new release replaces it the call fails with snapshot_changed.

number

Most Markdown characters returned per record. Default 40000; read the rest of a long one with the get capability's offset.

1 credit per record
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "firecrawl-clinical-trials",
    capability: "trials/list",
    options: {
      limit: 25,
      maxChars: 40000,
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Clinical Trials.

datasetsnapshotIdiddocIdsourceUrltitledocTypepublishedAtfieldsmarkdowntextlicense

Connect

Use the Clinical Trials API in your agent via Firecrawl Alexandria

Connect Firecrawl once and your agent can call Clinical Trials and every other provider in Alexandria.

  1. Setup guide for

    01

    Connect your agent to Firecrawl Alexandria

    Add Firecrawl to Claude, ChatGPT, Cursor or your own agent, signed in on a team with Alexandria enabled. One API key from that team reaches Clinical Trials and every other provider in Alexandria.

  2. 02

    Ask in plain language

    Tell your agent what you need from Clinical Trials. Alexandria finds the capability that fits, and your agent runs it.

    • Clinical trial by NCT id1 / record
    • Clinical trials first posted in a date range1 / record
    One Firecrawl billFirecrawl credits

    03

    Pay per use

    Each Clinical Trials call costs Firecrawl credits, all on one Firecrawl bill, so you pay only for what your agent uses.

Skills

Firecrawl skills using Clinical Trials

Drug shortage impact assessmentUse when a hospital pharmacy director or supply chain lead learns a drug is short and needs to plan. Reads the FDA shortage entry, finds alternative labelers and presentations, checks recalls at the affected manufacturer, compares the EU shortage picture and lists clinical trials that depend on the drug.

For one generic drug. The FDA entry alone does not say how long it will last or what to switch to; recalls, other labelers and the EU picture do.

1. The shortage itself

  1. Search Drug shortages with generic_name. Keep status, affected presentations, the company names, therapeutic category and posting and update dates.

2. Why, and what else exists

  1. Search Drug recalls with each company from step 1 as recalling_firm over the last 18 months: a quality recall often explains a shortage and its likely length.

  2. Search NDC directory with the same generic_name: list every other labeler, dosage form, route and package that could substitute.

  3. Check the label of the leading substitute with Drug labels for dosing or indication differences.

3. Is it global

  1. Search EMA shortages with the INN: a parallel EU shortage points to an upstream active-ingredient problem rather than one plant.

4. Who else depends on it

  1. Search Trial search with the drug as intervention and status recruiting: trials at your sites may need protocol deviations.

Write the assessment

  • Status: what is short, since when, which presentations, likely cause.

  • Substitutes: table of labeler, form, NDC and any label difference.

  • Global signal: EU status and what it implies for duration.

  • Actions: conservation, substitution and trial-team notices, most urgent first.

  • Sources: cite each record id, NDC and NCT number. Say what could not be found.

View skill

Why Alexandria

Why use Firecrawl Alexandria

What you get when your agent calls Clinical Trials through Alexandria instead of a one-off integration.

  • API KEYfc-••••3f2aClinical TrialsWeb searchScrapeData providers
    01

    One key for every provider

    • No separate Clinical Trials account, contract or API key. Calls are billed in Firecrawl credits.
    • The same key reaches Alexandria's data providers plus Firecrawl's web search and scraping.
  • CAPABILITYtrials/getINidsstring[]REQUIREDINincludestring[]OUTresponsejson
    02

    Built for agents

    • Every capability has documented inputs and outputs your agent can read before it calls.
    • Searching Alexandria for the capability that fits is free, through MCP, the CLI or the API.
  • NOT ENOUGH CALLS TO BENCHMARK YETQualitySpeedCost
    03

    Measured in public

    • Quality, speed and cost benchmarks come from real agent calls across every Alexandria user.
    • Category benchmarks compare providers side by side, so you can see which one works best.
  • SOC 2 TYPE II
    04

    Secure by default

    • Firecrawl is SOC 2 Type II compliant, and the annual renewal audit is in progress.

Benchmarks

Clinical Trials API benchmarks via Firecrawl Alexandria

Quality, speed and cost, last 24 hours, across every agent call to Clinical Trials through Alexandria.

Fewer than 20 calls in the last 24 hours, so there is not enough to report yet.

FAQ

Clinical Trials API via Firecrawl Alexandria FAQs

What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of data providers for AI agents, Clinical Trials among them. Each provider returns structured data through documented capabilities, and your agent reaches all of them, along with Firecrawl's web search and scraping, from Claude, ChatGPT, Cursor, the MCP server, the CLI or the API. Alexandria needs a Firecrawl account on a team with Alexandria enabled, or an API key from one; keyless connections don't include it.
How do I use the Clinical Trials API with Firecrawl Alexandria?
Connect Firecrawl to Claude, ChatGPT, Cursor or another AI tool, signed in on a team with Alexandria enabled, and ask for what you need: your agent searches Alexandria, finds Clinical Trials and calls it. From your own code, search Alexandria for the Clinical Trials capability you need with the Firecrawl API, SDKs or CLI, then call it with your API key. Either way you don't write any Clinical Trials integration code.
Do I need a Clinical Trials account or API key?
No. Calls to Clinical Trials run through Alexandria and are billed in Firecrawl credits, so you don't need a separate Clinical Trials account, contract or API key.
How much does the Clinical Trials API cost through Alexandria?
Each call costs 1 Firecrawl credit per billed unit, so the total depends on how much data it returns. The capabilities list on this page shows the price of each one, and finding the right capability is free.
Can I combine Clinical Trials with other data providers?
Yes. Your agent can call Clinical Trials alongside the live web and any other provider in Alexandria, with the same Firecrawl account.

Related

Other Life sciences providers, on the same Firecrawl API key.

//
Get started
//
Give your agent Clinical Trials.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options