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 |
|---|---|---|---|
query | text | Required | The search query. Maximum length: 500 characters. |
limit | number | Optional | Maximum number of results per source. Firecrawl range: 1-100. Default: 10. |
sources | array of select | Optional | Sources to search. Defaults to web when omitted. |
categories | array of select | Optional | Optional category filters (github, research, pdf). |
includeDomains | array of text | Optional | Domain allowlist (hostnames only). Mutually exclusive with excludeDomains. |
excludeDomains | array of text | Optional | Domain blocklist (hostnames only). Mutually exclusive with includeDomains. |
tbs | text | Optional | Time-based search filter, such as qdr:d, qdr:w, qdr:m, qdr:y, or sbd:1. |
location | text | Optional | Geo-targeting location string, e.g. Germany or San Francisco,California,United States. |
country | text | Optional | ISO country code for search results. Firecrawl default: US. |
timeout | number | Optional | Timeout in milliseconds. Firecrawl default: 60000. |
ignoreInvalidURLs | yes/no | Optional | Exclude URLs that are invalid for other Firecrawl endpoints. |
enterprise | array of select | Optional | Enterprise search options. Requires Firecrawl team support. |
scrapeOptions | object | Optional | Optional options for scraping each search result (same per-page scrape options as the Scrape a Page action). |
formats | array of object | Optional | Output formats to include in the response. Use object form with a type field for each format, e.g. [{"type":"markdown"},{"type":"json","schema":{...}}]. |
type | select | Required | Format type. (options: Markdown, Summary, HTML, Raw HTML, Links, Images, Screenshot, JSON, Change Tracking, Branding, Audio, Video, Question, Highlights) |
schema | object | Optional | Optional JSON Schema for json format or changeTracking json mode (free-form object). |
prompt | text | Optional | Optional prompt for json, changeTracking, question, or highlights formats. |
question | text | Optional | Optional question for the question format. |
modes | array of select | Optional | Optional changeTracking diff modes. |
tag | text | Optional | Optional changeTracking tag to separate tracking history. |
fullPage | yes/no | Optional | Optional screenshot setting to capture the full page. |
quality | number | Optional | Optional screenshot quality. |
viewport | object | Optional | Optional screenshot viewport size. |
width | number | Optional | Viewport width in pixels. |
height | number | Optional | Viewport height in pixels. |
onlyMainContent | yes/no | Optional | Only return main page content, excluding headers, navs, footers, etc. Firecrawl default: true. |
onlyCleanContent | yes/no | Optional | Beta. Run an extra LLM cleanup pass over generated markdown. Not supported on zero-data-retention requests. Firecrawl default: false. |
includeTags | array of text | Optional | Tags to include in the output. |
excludeTags | array of text | Optional | Tags to exclude from the output. |
maxAge | number | Optional | Return a cached page if younger than this age in milliseconds. Firecrawl default: 172800000. |
minAge | number | Optional | Only check cache and never trigger a fresh scrape. Minimum cache age in milliseconds; set to 1 to accept any cached data. |
headers | object | Optional | Headers to send with the request, such as cookies or user-agent (free-form object). |
waitFor | number | Optional | Delay in milliseconds before fetching content, in addition to Firecrawl smart wait. Firecrawl default: 0. |
mobile | yes/no | Optional | Emulate scraping from a mobile device. Firecrawl default: false. |
skipTlsVerification | yes/no | Optional | Skip TLS certificate verification. Firecrawl default: true. |
timeout | number | Optional | Timeout in milliseconds. Firecrawl range: 1000-300000. Default: 60000. |
parsers | array of object | Optional | Controls how files are processed during scraping. Use pdf to extract PDF content, or pass an empty array to return PDFs in base64. |
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. |
actions | array of object | Optional | Actions to perform on the page before grabbing content. For complex interactions, prefer the Interact with a Page action. |
type | select | Required | Action type. (options: Wait, Wait for Element, Screenshot, Click, Write Text, Press Key, Scroll, Scrape, Execute JavaScript, Generate PDF) |
milliseconds | number | Optional | Milliseconds to wait. Required for wait by duration. |
selector | text | Optional | CSS selector for click, write, wait-for-element, or related actions. |
text | text | Optional | Text to write. |
key | text | Optional | Key to press, such as Enter. |
direction | select | Optional | Scroll direction. (options: Down, Up) |
script | text | Optional | JavaScript to execute. |
fullPage | yes/no | Optional | Capture the full page for screenshot actions. |
quality | number | Optional | Screenshot quality. |
location | object | Optional | Location settings for proxy, language, and timezone emulation. Defaults to US if omitted. |
country | text | Optional | ISO 3166-1 alpha-2 country code, such as US, AU, DE, or JP. |
languages | array of text | Optional | Preferred languages and locales in priority order, such as en-US. |
removeBase64Images | yes/no | Optional | Remove base64 images from markdown output. Firecrawl default: true. |
blockAds | yes/no | Optional | Enable ad-blocking and cookie popup blocking. Firecrawl default: true. |
proxy | select | Optional | Proxy type. enhanced may cost up to 5 credits; auto retries with enhanced if basic fails. (options: Basic, Enhanced, Auto) |
storeInCache | yes/no | Optional | Store the page in the Firecrawl index/cache. Firecrawl default: true. |
lockdown | yes/no | Optional | Serve only from Firecrawl cache and never make an outbound request. Treated as zero data retention. Firecrawl default: false. |
profile | object | Optional | Persistent browser storage profile shared across scrape and interact sessions. |
name | text | Required | Profile name. Scrapes with the same name share browser state. |
saveChanges | yes/no | Optional | Save browser state back to the profile when the session stops. Firecrawl default: true. |
zeroDataRetention | yes/no | Optional | Enable zero data retention for this scrape. Requires Firecrawl support. Firecrawl default: false. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code. |
body | object | Firecrawl search response. |
success | yes/no | Whether the search succeeded. |
data | object | Search results grouped by source. |
web | array of object | Web search results. Each result also carries any requested scraped content (markdown, html, json, screenshot, etc.). |
title | text | Result title. |
description | text | Result description. |
url | text | Result URL. |
category | text | Result category such as github, research, or pdf. |
markdown | text | Scraped markdown, when requested. |
html | text | Scraped HTML, when requested. |
json | object | Structured JSON extraction result, when requested (free-form object). |
screenshot | text | Screenshot output, when requested. |
metadata | object | Scraped result metadata (title, description, sourceURL, url, statusCode, error). |
images | array of object | Image search results. |
title | text | Image title. |
imageUrl | text | Image URL. |
imageWidth | number | Image width. |
imageHeight | number | Image height. |
url | text | Source page URL. |
position | number | Result position. |
news | array of object | News search results. Each result also carries any requested scraped content. |
title | text | News title. |
snippet | text | News snippet. |
url | text | News URL. |
date | text | Publication date. |
imageUrl | text | News image URL. |
position | number | Result position. |
markdown | text | Scraped markdown, when requested. |
warning | text | Warning message, if any. |
id | text | Search job ID. |
creditsUsed | number | Credits used by the search. |