Scrape a Page
Firecrawl
Firecrawl
Scrape a Page
Scrape a single URL and return clean content such as markdown, HTML, links, images, screenshots, summaries, or structured JSON.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
url | text | Required | The URL to scrape. |
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 scrape response. |
success | yes/no | Whether the scrape succeeded. |
data | object | Scraped page data returned by Firecrawl. |
markdown | text | Markdown content when markdown is in formats. |
summary | text | Summary of the page when summary is in formats. |
html | text | Cleaned HTML when html is in formats. |
rawHtml | text | Exact unmodified HTML when rawHtml is in formats. |
json | object | Structured JSON extraction result when json is in formats (free-form object). |
screenshot | text | Screenshot URL when screenshot is in formats. Links expire after 24 hours. |
audio | text | Signed MP3 audio URL when audio is in formats. Expires after 1 hour. |
video | text | Signed video URL when video is in formats. Expires after 1 hour. |
answer | text | Natural-language answer when a question format is included. |
highlights | text | Relevant source text selected when highlights 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. |
actions | object | Results of actions specified in the actions request parameter. |
screenshots | array of text | Screenshot URLs in the same order as screenshot actions. |
scrapes | array of object | Scrape contents in the same order as scrape actions. |
url | text | Scraped URL. |
html | text | Scraped HTML content. |
javascriptReturns | array of object | JavaScript return values in the same order as executeJavascript actions. |
type | text | Return value type. |
value | object | Return value from the JavaScript action (shape depends on the script). |
pdfs | array of text | Generated PDFs in the same order as pdf actions. |
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. |
changeTracking | object | Change tracking information when changeTracking is in formats. |
previousScrapeAt | text | Timestamp of the previous scrape compared against, or null when none exists. |
changeStatus | text | Comparison result: new, same, changed, or removed. |
visibility | text | Page visibility: visible or hidden. |
diff | text | Git-style diff when changeTracking mode is git-diff. |
json | object | JSON comparison results when changeTracking mode is json (free-form object). |
branding | object | Branding information extracted when branding is in formats. Includes colorScheme, logo, a colors object (primary/secondary/accent/background/text/link/etc.), fonts, plus deeply-nested typography, spacing, components, icons, images, animations, layout, and personality detail (largely free-form objects). |
colorScheme | text | Detected page color scheme: light or dark. |
logo | text | Primary logo URL. |
colors | object | Brand colors extracted from the page (hex values). |
primary | text | Primary brand color in hex. |
secondary | text | Secondary brand color in hex. |
accent | text | Accent color in hex. |
background | text | Background color in hex. |
textPrimary | text | Primary text color in hex. |
textSecondary | text | Secondary text color in hex. |
link | text | Link color in hex. |
success | text | Success/positive color in hex. |
warning | text | Warning color in hex. |
error | text | Error/danger color in hex. |
fonts | array of object | Font families used on the page. |
family | text | Font family name. |
typography | object | Detailed typography (fontFamilies, fontSizes, fontWeights, lineHeights). Summarized. |
spacing | object | Spacing and layout (baseUnit, borderRadius, padding, margins). Summarized. |
components | object | UI component styles (buttonPrimary, buttonSecondary, input). Summarized. |
icons | object | Icon style information (free-form object). |
images | object | Brand images. |
logo | text | Logo image URL. |
favicon | text | Favicon URL. |
ogImage | text | Open Graph image URL. |
animations | object | Animation and transition settings (free-form object). |
layout | object | Layout configuration such as grid and header/footer heights (free-form object). |
personality | object | Brand personality traits such as tone, energy, and target audience (free-form object). |