Skip to content

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
filefilesRequiredThe file bytes to parse. Supported extensions: .html, .htm, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls.
optionsobjectOptionalOptional parse options sent as JSON.
formatsarray of objectOptionalOutput formats. Browser-rendering formats and change tracking are not supported for parse uploads.
typeselectRequiredFormat type. (options: Markdown, Summary, HTML, Raw HTML, Links, Images, JSON)
schemaobjectOptionalOptional JSON Schema for json format (free-form object).
prompttextOptionalOptional prompt for json extraction.
onlyMainContentyes/noOptionalOnly return the main content. Firecrawl default: true.
includeTagsarray of textOptionalTags to include in the output.
excludeTagsarray of textOptionalTags to exclude from the output.
headersobjectOptionalHeaders to send when additional network requests are required (free-form object).
timeoutnumberOptionalTimeout in milliseconds. Firecrawl default: 30000; maximum: 300000.
parsersarray of objectOptionalControls file parser behavior, such as PDF parser mode.
typeselectRequiredParser type. (options: PDF)
modeselectOptionalPDF parsing mode. fast uses embedded text only, auto falls back to OCR, ocr forces OCR. Firecrawl default: auto. (options: Fast, Auto, OCR)
maxPagesnumberOptionalMaximum number of PDF pages to parse. Firecrawl range: 1-10000.
skipTlsVerificationyes/noOptionalSkip TLS certificate verification. Firecrawl default: true.
removeBase64Imagesyes/noOptionalRemove base64-encoded images and keep alt text placeholders. Firecrawl default: true.
blockAdsyes/noOptionalEnable ad and cookie popup blocking. Firecrawl default: true.
proxyselectOptionalProxy mode for parse uploads. Parse supports only basic and auto. (options: Basic, Auto)
origintextOptionalOrigin identifier for analytics and logging. Firecrawl default: api.
integrationtextOptionalOptional integration identifier.
zeroDataRetentionyes/noOptionalEnable zero data retention for this parse. Requires Firecrawl support. Firecrawl default: false.

Outputs

Name Type Description
statusCodenumberHTTP status code.
bodyobjectFirecrawl Parse response.
successyes/noWhether the parse request succeeded.
dataobjectParsed file data returned by Firecrawl.
markdowntextMarkdown content when markdown is in formats.
summarytextSummary when summary is in formats.
htmltextCleaned HTML when html is in formats.
rawHtmltextExact unmodified HTML when rawHtml is in formats.
linksarray of textLinks on the page when links is in formats.
imagesarray of textImages on the page when images is in formats.
jsonobjectStructured extraction result when json is in formats (free-form object).
metadataobjectPage metadata returned by Firecrawl.
titletextTitle extracted from the page.
descriptiontextDescription extracted from the page.
languagetextLanguage extracted from the page.
sourceURLtextOriginal URL requested. May differ from the final URL if redirects occurred.
urltextFinal URL after redirects.
keywordstextKeywords extracted from the page.
ogLocaleAlternatearray of textAlternative locales for the page.
additionalMetadataobjectOther metadata extracted from HTML. Firecrawl may return additional arbitrary keys (free-form object).
statusCodenumberStatus code of the scraped page.
errortextPage error message, if any.
concurrencyLimitedyes/noWhether this scrape was throttled due to team concurrency limits.
concurrencyQueueDurationMsnumberMilliseconds the request waited in the concurrency queue. Present when concurrencyLimited is true.
warningtextWarning message, if any. Can appear when using LLM extraction.