Parse a File
Firecrawl
Firecrawl
Parse a File
Upload and parse a local or non-public file with Firecrawl. Sends a required file part and optional JSON options.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
file | files | Required | The file bytes to parse. Supported extensions: .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls. |
options | object | Optional | Optional parse options sent as JSON. |
formats | array of object | Optional | Output formats. Browser-rendering formats and change tracking are not supported for parse uploads. |
type | select | Required | Format type. (options: Markdown, Summary, HTML, Raw HTML, Links, Images, JSON) |
schema | object | Optional | Optional JSON Schema for json format (free-form object). |
prompt | text | Optional | Optional prompt for json extraction. |
onlyMainContent | yes/no | Optional | Only return the main content. Firecrawl default: true. |
includeTags | array of text | Optional | Tags to include in the output. |
excludeTags | array of text | Optional | Tags to exclude from the output. |
headers | object | Optional | Headers to send when additional network requests are required (free-form object). |
timeout | number | Optional | Timeout in milliseconds. Firecrawl default: 30000; maximum: 300000. |
parsers | array of object | Optional | Controls file parser behavior, such as PDF parser mode. |
type | select | Required | Parser type. (options: PDF) |
mode | select | Optional | PDF parsing mode. fast uses embedded text only, auto falls back to OCR, ocr forces OCR. Firecrawl default: auto. (options: Fast, Auto, OCR) |
maxPages | number | Optional | Maximum number of PDF pages to parse. Firecrawl range: 1-10000. |
skipTlsVerification | yes/no | Optional | Skip TLS certificate verification. Firecrawl default: true. |
removeBase64Images | yes/no | Optional | Remove base64-encoded images and keep alt text placeholders. Firecrawl default: true. |
blockAds | yes/no | Optional | Enable ad and cookie popup blocking. Firecrawl default: true. |
proxy | select | Optional | Proxy mode for parse uploads. Parse supports only basic and auto. (options: Basic, Auto) |
origin | text | Optional | Origin identifier for analytics and logging. Firecrawl default: api. |
integration | text | Optional | Optional integration identifier. |
zeroDataRetention | yes/no | Optional | Enable zero data retention for this parse. Requires Firecrawl support. Firecrawl default: false. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code. |
body | object | Firecrawl Parse response. |
success | yes/no | Whether the parse request succeeded. |
data | object | Parsed file data returned by Firecrawl. |
markdown | text | Markdown content when markdown is in formats. |
summary | text | Summary when summary is in formats. |
html | text | Cleaned HTML when html is in formats. |
rawHtml | text | Exact unmodified HTML when rawHtml is in formats. |
links | array of text | Links on the page when links is in formats. |
images | array of text | Images on the page when images is in formats. |
json | object | Structured extraction result when json is in formats (free-form object). |
metadata | object | Page metadata returned by Firecrawl. |
title | text | Title extracted from the page. |
description | text | Description extracted from the page. |
language | text | Language extracted from the page. |
sourceURL | text | Original URL requested. May differ from the final URL if redirects occurred. |
url | text | Final URL after redirects. |
keywords | text | Keywords extracted from the page. |
ogLocaleAlternate | array of text | Alternative locales for the page. |
additionalMetadata | object | Other metadata extracted from HTML. Firecrawl may return additional arbitrary keys (free-form object). |
statusCode | number | Status code of the scraped page. |
error | text | Page error message, if any. |
concurrencyLimited | yes/no | Whether this scrape was throttled due to team concurrency limits. |
concurrencyQueueDurationMs | number | Milliseconds the request waited in the concurrency queue. Present when concurrencyLimited is true. |
warning | text | Warning message, if any. Can appear when using LLM extraction. |