---
type: "firecrawl-provider"
description: "Full text of current Electronic Code of Federal Regulations (eCFR) sections by CFR citation or title and part range, with headings, structured metadata and source URLs."
use_when: "Sections of the current eCFR."
categories: "Public records"
capabilities: 2
credits_per_record: 1
---
# Code of Federal Regulations (eCFR) on Firecrawl Alexandria

Full text of current Electronic Code of Federal Regulations (eCFR) sections by CFR citation or title and part range, with headings, structured metadata and source URLs.

- Categories: Public records
- Category index: [Public records category](https://alexandria.firecrawl.dev/agents/categories/public-records)
- Provider key: `firecrawl-ecfr`
- Access: Firecrawl credits
- Cost (CFR section by CFR citation): 1 credit per record
- Cost (CFR sections in a part range): 1 credit per record

## More

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

## Capabilities

- [CFR section by CFR citation](https://alexandria.firecrawl.dev/agents/providers/firecrawl-ecfr/cfr/get): records: one per id found; notFound: each id with no record and why. Only records found are billed.
- [CFR sections in a part range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-ecfr/cfr/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

Sections of the current eCFR.

## 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-ecfr",
  "capability": "cfr/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 CFR citations, such as 5 CFR 831.810. 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-ecfr",
    capability: "cfr/get",
    options: {
      ids: [],
      maxChars: 40000,
      offset: 0,
    },
  },
});
```

### Python

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

### CLI

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


### MCP

Call the FCX MCP retrieve tool with this object:

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

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "firecrawl-ecfr",
  "capability": "cfr/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.

### CFR section by CFR citation

- Capability: `cfr/get`
- Description: records: one per id found; notFound: each id with no record and why. Only records found are billed.
- Instructions: Full text of one section of the current eCFR by citation (5 CFR 831.810, 26 CFR § 1.401(a)-1), with its heading and source URL.
- Cost: 1 credit per record
- Capability file: [CFR section by CFR citation](https://alexandria.firecrawl.dev/agents/providers/firecrawl-ecfr/cfr/get)

Accepted options:
- `ids` (string[], required): 1 to 25 CFR citations, such as 5 CFR 831.810. 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": {}
    }
  ]
}
```

### CFR sections in a part range

- Capability: `cfr/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: Every section of the current eCFR in one title and a range of parts, such as 40 CFR parts 60 to 63, in part and section order, a page at a time, with the total matched. Parts such as 101-26 or 18b belong to 101 and 18.
- Cost: 1 credit per record
- Capability file: [CFR sections in a part range](https://alexandria.firecrawl.dev/agents/providers/firecrawl-ecfr/cfr/list)

Accepted options:
- `title` (number, required): CFR title. Example: `10`
- `partFrom` (number, required): First part. Example: `10`
- `partTo` (number): Last part, inclusive. Defaults to partFrom. Example: `10`
- `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": {}
    }
  ]
}
```
