---
type: "firecrawl-provider"
description: "Full openFDA Structured Product Labeling (SPL) drug labels by SPL set id or effective date range, with indications, dosage, warnings, adverse reactions and product identifiers."
use_when: "openFDA drug labeling."
categories: "Life sciences"
capabilities: 2
credits_per_record: 1
---
# FDA Drug Labels on Firecrawl Alexandria

Full openFDA Structured Product Labeling (SPL) drug labels by SPL set id or effective date range, with indications, dosage, warnings, adverse reactions and product identifiers.

- Categories: Life sciences
- Category index: [Life sciences category](https://alexandria.firecrawl.dev/agents/categories/life-sciences)
- Provider key: `firecrawl-fda-drug-labels`
- Access: Firecrawl credits
- Cost (FDA drug label by SPL set id): 1 credit per record
- Cost (FDA drug labels by effective date range): 1 credit per record

## More

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

## Capabilities

- [FDA drug label by SPL set id](https://alexandria.firecrawl.dev/agents/providers/firecrawl-fda-drug-labels/drug-labels/get): records: one per id found; notFound: each id with no record and why. Only records found are billed.
- [FDA drug labels by effective date range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-fda-drug-labels/drug-labels/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

openFDA drug labeling.

## 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-fda-drug-labels",
  "capability": "drug-labels/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 SPL set ids, such as 773ccd41-b35f-4bd9-b055-e3b775ed4002. 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-fda-drug-labels",
    capability: "drug-labels/get",
    options: {
      ids: [],
      maxChars: 40000,
      offset: 0,
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "firecrawl-fda-drug-labels",
  "capability": "drug-labels/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-fda-drug-labels",
    "capability": "drug-labels/get",
    "options": {
      "ids": [],
      "maxChars": 40000,
      "offset": 0
    }
  }
}'
```

### CLI

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


### MCP

Call the FCX MCP retrieve tool with this object:

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

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "firecrawl-fda-drug-labels",
  "capability": "drug-labels/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.

### FDA drug label by SPL set id

- Capability: `drug-labels/get`
- Description: records: one per id found; notFound: each id with no record and why. Only records found are billed.
- Instructions: Full openFDA drug label (SPL) by set id: every labeling section as published, including indications, dosage, warnings, adverse reactions and the product identifiers.
- Cost: 1 credit per record
- Capability file: [FDA drug label by SPL set id](https://alexandria.firecrawl.dev/agents/providers/firecrawl-fda-drug-labels/drug-labels/get)

Accepted options:
- `ids` (string[], required): 1 to 25 SPL set ids, such as 773ccd41-b35f-4bd9-b055-e3b775ed4002. 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": {}
    }
  ]
}
```

### FDA drug labels by effective date range

- Capability: `drug-labels/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: openFDA drug labels whose effective date falls between two dates, oldest first, a page at a time, with the total matched.
- Cost: 1 credit per record
- Capability file: [FDA drug labels by effective date range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-fda-drug-labels/drug-labels/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": {}
    }
  ]
}
```
