---
type: "firecrawl-provider"
description: "Full ClinicalTrials.gov study registry records by NCT id or first-posted date range, with status, phases, enrollment, interventions, outcomes, eligibility, sponsors and sites."
use_when: "ClinicalTrials.gov registry records."
categories: "Life sciences"
capabilities: 2
credits_per_record: 1
---
# Clinical Trials on Firecrawl Alexandria

Full ClinicalTrials.gov study registry records by NCT id or first-posted date range, with status, phases, enrollment, interventions, outcomes, eligibility, sponsors and sites.

- Categories: Life sciences
- Category index: [Life sciences category](https://alexandria.firecrawl.dev/agents/categories/life-sciences)
- Provider key: `firecrawl-clinical-trials`
- Access: Firecrawl credits
- Cost (Clinical trial by NCT id): 1 credit per record
- Cost (Clinical trials first posted in a date range): 1 credit per record

## More

- [Human guide](https://www.firecrawl.dev/app/alexandria/firecrawl-clinical-trials)
- [OpenAPI spec](https://alexandria.firecrawl.dev/agents/providers/firecrawl-clinical-trials/openapi.json)

## Capabilities

- [Clinical trial by NCT id](https://alexandria.firecrawl.dev/agents/providers/firecrawl-clinical-trials/trials/get): records: one per id found; notFound: each id with no record and why. Only records found are billed.
- [Clinical trials first posted in a date range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-clinical-trials/trials/list): records: this page's records, each as the get capability returns it; nextCursor: pass it back for the next page, null after the last; total: matches in the whole range, for date and part ranges. Only records returned are billed; an empty page is free.

## 1. Choose this provider when

ClinicalTrials.gov registry records.

## 2. Minimal request

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: { provider, capability, options } }`. For a batch, send `{ alexandria: [...] }` with up to 10 calls.

```json
{
  "provider": "firecrawl-clinical-trials",
  "capability": "trials/get",
  "options": {
    "ids": [],
    "maxChars": 40000,
    "offset": 0
  }
}
```

## 3. Add provider options

Use only the options needed for the task:

- `ids` (string[], required): 1 to 25 NCT ids, such as NCT04866498. A source URL or a docId is accepted too. Example: `[]`
- `include` (string[]): fields, markdown or both. Omit for both; ["fields"] skips the body. Example: `[]`
- `maxChars` (number): Most Markdown characters returned per record. Default 40000. Example: `40000`
- `offset` (number): Markdown character to start from: a record's text.nextOffset, to read the rest of a long one. Example: `0`

## 4. Request through your preferred interface

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "firecrawl-clinical-trials",
    capability: "trials/get",
    options: {
      ids: [],
      maxChars: 40000,
      offset: 0,
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "firecrawl-clinical-trials",
  "capability": "trials/get",
  "options": {
    "ids": [],
    "maxChars": 40000,
    "offset": 0
  }
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "firecrawl-clinical-trials",
    "capability": "trials/get",
    "options": {
      "ids": [],
      "maxChars": 40000,
      "offset": 0
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'firecrawl-clinical-trials/trials/get' \
  --options '{"ids":[],"maxChars":40000,"offset":0}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "firecrawl-clinical-trials",
  "capability": "trials/get",
  "options": {
    "ids": [],
    "maxChars": 40000,
    "offset": 0
  }
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "firecrawl-clinical-trials",
  "capability": "trials/get",
  "options": {
    "ids": [],
    "maxChars": 40000,
    "offset": 0
  }
}
```

## 6. Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. This example shows the provider payload in `data`:

```json
{
  "records": [
    {
      "dataset": "<dataset>",
      "snapshotId": "<snapshotId>",
      "id": "<id>",
      "docId": "<docId>",
      "sourceUrl": "<sourceUrl>",
      "title": "<title>",
      "docType": "<docType>",
      "publishedAt": "<publishedAt>",
      "fields": {},
      "markdown": "<markdown>",
      "text": {},
      "license": {}
    }
  ]
}
```

## API reference-derived contract

The following capability contract is generated from the same normalized Alexandria API reference exposed in the API spec.

### Clinical trial by NCT id

- Capability: `trials/get`
- Description: records: one per id found; notFound: each id with no record and why. Only records found are billed.
- Instructions: Full ClinicalTrials.gov registry record by NCT id: status, phases, enrollment, design, arms and interventions, outcomes, eligibility, sponsors, sites, dates and the full description.
- Cost: 1 credit per record
- Capability file: [Clinical trial by NCT id](https://alexandria.firecrawl.dev/agents/providers/firecrawl-clinical-trials/trials/get)

Accepted options:
- `ids` (string[], required): 1 to 25 NCT ids, such as NCT04866498. A source URL or a docId is accepted too. Example: `[]`
- `include` (string[]): fields, markdown or both. Omit for both; ["fields"] skips the body. Example: `[]`
- `maxChars` (number): Most Markdown characters returned per record. Default 40000. Example: `40000`
- `offset` (number): Markdown character to start from: a record's text.nextOffset, to read the rest of a long one. Example: `0`

Response schema example:
```json
{
  "records": [
    {
      "dataset": "<dataset>",
      "snapshotId": "<snapshotId>",
      "id": "<id>",
      "docId": "<docId>",
      "sourceUrl": "<sourceUrl>",
      "title": "<title>",
      "docType": "<docType>",
      "publishedAt": "<publishedAt>",
      "fields": {},
      "markdown": "<markdown>",
      "text": {},
      "license": {}
    }
  ]
}
```

### Clinical trials first posted in a date range

- Capability: `trials/list`
- Description: records: this page's records, each as the get capability returns it; nextCursor: pass it back for the next page, null after the last; total: matches in the whole range, for date and part ranges. Only records returned are billed; an empty page is free.
- Instructions: ClinicalTrials.gov studies first posted between two dates, oldest first, a page at a time, with the total matched.
- Cost: 1 credit per record
- Capability file: [Clinical trials first posted in a date range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-clinical-trials/trials/list)

Accepted options:
- `since` (string, required): First day, YYYY-MM-DD. Example: `<since>`
- `until` (string): Last day, inclusive, YYYY-MM-DD. Defaults to since. Example: `<until>`
- `limit` (number): Most records per page, 1 to 25. Default 25. Example: `25`
- `cursor` (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. Example: `<cursor>`
- `include` (string[]): fields, markdown or both. Omit for both; ["fields"] skips the body. Example: `[]`
- `maxChars` (number): Most Markdown characters returned per record. Default 40000; read the rest of a long one with the get capability's offset. Example: `40000`

Response schema example:
```json
{
  "records": [
    {
      "dataset": "<dataset>",
      "snapshotId": "<snapshotId>",
      "id": "<id>",
      "docId": "<docId>",
      "sourceUrl": "<sourceUrl>",
      "title": "<title>",
      "docType": "<docType>",
      "publishedAt": "<publishedAt>",
      "fields": {},
      "markdown": "<markdown>",
      "text": {},
      "license": {}
    }
  ]
}
```
