Skip to content

Search the Web

Firecrawl

Firecrawl

Search the Web

Search the web with Firecrawl and optionally return scraped page content.

ActionAI Tool

Inputs

Name Type Required Description
querytextRequiredThe search query. Maximum length: 500 characters.
limitnumberOptionalMaximum number of results per source. Firecrawl range: 1-100. Default: 10.
sourcesarray of selectOptionalSources to search. Defaults to web when omitted.
categoriesarray of selectOptionalOptional category filters (github, research, pdf).
includeDomainsarray of textOptionalDomain allowlist (hostnames only). Mutually exclusive with excludeDomains.
excludeDomainsarray of textOptionalDomain blocklist (hostnames only). Mutually exclusive with includeDomains.
tbstextOptionalTime-based search filter, such as qdr:d, qdr:w, qdr:m, qdr:y, or sbd:1.
locationtextOptionalGeo-targeting location string, e.g. Germany or San Francisco,California,United States.
countrytextOptionalISO country code for search results. Firecrawl default: US.
timeoutnumberOptionalTimeout in milliseconds. Firecrawl default: 60000.
ignoreInvalidURLsyes/noOptionalExclude URLs that are invalid for other Firecrawl endpoints.
enterprisearray of selectOptionalEnterprise search options. Requires Firecrawl team support.
scrapeOptionsobjectOptionalOptional options for scraping each search result (same per-page scrape options as the Scrape a Page action).
formatsarray of objectOptionalOutput formats to include in the response. Use object form with a type field for each format, e.g. [{"type":"markdown"},{"type":"json","schema":{...}}].
typeselectRequiredFormat type. (options: Markdown, Summary, HTML, Raw HTML, Links, Images, Screenshot, JSON, Change Tracking, Branding, Audio, Video, Question, Highlights)
schemaobjectOptionalOptional JSON Schema for json format or changeTracking json mode (free-form object).
prompttextOptionalOptional prompt for json, changeTracking, question, or highlights formats.
questiontextOptionalOptional question for the question format.
modesarray of selectOptionalOptional changeTracking diff modes.
tagtextOptionalOptional changeTracking tag to separate tracking history.
fullPageyes/noOptionalOptional screenshot setting to capture the full page.
qualitynumberOptionalOptional screenshot quality.
viewportobjectOptionalOptional screenshot viewport size.
widthnumberOptionalViewport width in pixels.
heightnumberOptionalViewport height in pixels.
onlyMainContentyes/noOptionalOnly return main page content, excluding headers, navs, footers, etc. Firecrawl default: true.
onlyCleanContentyes/noOptionalBeta. Run an extra LLM cleanup pass over generated markdown. Not supported on zero-data-retention requests. Firecrawl default: false.
includeTagsarray of textOptionalTags to include in the output.
excludeTagsarray of textOptionalTags to exclude from the output.
maxAgenumberOptionalReturn a cached page if younger than this age in milliseconds. Firecrawl default: 172800000.
minAgenumberOptionalOnly check cache and never trigger a fresh scrape. Minimum cache age in milliseconds; set to 1 to accept any cached data.
headersobjectOptionalHeaders to send with the request, such as cookies or user-agent (free-form object).
waitFornumberOptionalDelay in milliseconds before fetching content, in addition to Firecrawl smart wait. Firecrawl default: 0.
mobileyes/noOptionalEmulate scraping from a mobile device. Firecrawl default: false.
skipTlsVerificationyes/noOptionalSkip TLS certificate verification. Firecrawl default: true.
timeoutnumberOptionalTimeout in milliseconds. Firecrawl range: 1000-300000. Default: 60000.
parsersarray of objectOptionalControls how files are processed during scraping. Use pdf to extract PDF content, or pass an empty array to return PDFs in base64.
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.
actionsarray of objectOptionalActions to perform on the page before grabbing content. For complex interactions, prefer the Interact with a Page action.
typeselectRequiredAction type. (options: Wait, Wait for Element, Screenshot, Click, Write Text, Press Key, Scroll, Scrape, Execute JavaScript, Generate PDF)
millisecondsnumberOptionalMilliseconds to wait. Required for wait by duration.
selectortextOptionalCSS selector for click, write, wait-for-element, or related actions.
texttextOptionalText to write.
keytextOptionalKey to press, such as Enter.
directionselectOptionalScroll direction. (options: Down, Up)
scripttextOptionalJavaScript to execute.
fullPageyes/noOptionalCapture the full page for screenshot actions.
qualitynumberOptionalScreenshot quality.
locationobjectOptionalLocation settings for proxy, language, and timezone emulation. Defaults to US if omitted.
countrytextOptionalISO 3166-1 alpha-2 country code, such as US, AU, DE, or JP.
languagesarray of textOptionalPreferred languages and locales in priority order, such as en-US.
removeBase64Imagesyes/noOptionalRemove base64 images from markdown output. Firecrawl default: true.
blockAdsyes/noOptionalEnable ad-blocking and cookie popup blocking. Firecrawl default: true.
proxyselectOptionalProxy type. enhanced may cost up to 5 credits; auto retries with enhanced if basic fails. (options: Basic, Enhanced, Auto)
storeInCacheyes/noOptionalStore the page in the Firecrawl index/cache. Firecrawl default: true.
lockdownyes/noOptionalServe only from Firecrawl cache and never make an outbound request. Treated as zero data retention. Firecrawl default: false.
profileobjectOptionalPersistent browser storage profile shared across scrape and interact sessions.
nametextRequiredProfile name. Scrapes with the same name share browser state.
saveChangesyes/noOptionalSave browser state back to the profile when the session stops. Firecrawl default: true.
zeroDataRetentionyes/noOptionalEnable zero data retention for this scrape. Requires Firecrawl support. Firecrawl default: false.

Outputs

Name Type Description
statusCodenumberHTTP status code.
bodyobjectFirecrawl search response.
successyes/noWhether the search succeeded.
dataobjectSearch results grouped by source.
webarray of objectWeb search results. Each result also carries any requested scraped content (markdown, html, json, screenshot, etc.).
titletextResult title.
descriptiontextResult description.
urltextResult URL.
categorytextResult category such as github, research, or pdf.
markdowntextScraped markdown, when requested.
htmltextScraped HTML, when requested.
jsonobjectStructured JSON extraction result, when requested (free-form object).
screenshottextScreenshot output, when requested.
metadataobjectScraped result metadata (title, description, sourceURL, url, statusCode, error).
imagesarray of objectImage search results.
titletextImage title.
imageUrltextImage URL.
imageWidthnumberImage width.
imageHeightnumberImage height.
urltextSource page URL.
positionnumberResult position.
newsarray of objectNews search results. Each result also carries any requested scraped content.
titletextNews title.
snippettextNews snippet.
urltextNews URL.
datetextPublication date.
imageUrltextNews image URL.
positionnumberResult position.
markdowntextScraped markdown, when requested.
warningtextWarning message, if any.
idtextSearch job ID.
creditsUsednumberCredits used by the search.