Skip to content

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
urltextRequiredThe URL to scrape.
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 scrape response.
successyes/noWhether the scrape succeeded.
dataobjectScraped page data returned by Firecrawl.
markdowntextMarkdown content when markdown is in formats.
summarytextSummary of the page when summary is in formats.
htmltextCleaned HTML when html is in formats.
rawHtmltextExact unmodified HTML when rawHtml is in formats.
jsonobjectStructured JSON extraction result when json is in formats (free-form object).
screenshottextScreenshot URL when screenshot is in formats. Links expire after 24 hours.
audiotextSigned MP3 audio URL when audio is in formats. Expires after 1 hour.
videotextSigned video URL when video is in formats. Expires after 1 hour.
answertextNatural-language answer when a question format is included.
highlightstextRelevant source text selected when highlights 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.
actionsobjectResults of actions specified in the actions request parameter.
screenshotsarray of textScreenshot URLs in the same order as screenshot actions.
scrapesarray of objectScrape contents in the same order as scrape actions.
urltextScraped URL.
htmltextScraped HTML content.
javascriptReturnsarray of objectJavaScript return values in the same order as executeJavascript actions.
typetextReturn value type.
valueobjectReturn value from the JavaScript action (shape depends on the script).
pdfsarray of textGenerated PDFs in the same order as pdf actions.
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.
changeTrackingobjectChange tracking information when changeTracking is in formats.
previousScrapeAttextTimestamp of the previous scrape compared against, or null when none exists.
changeStatustextComparison result: new, same, changed, or removed.
visibilitytextPage visibility: visible or hidden.
difftextGit-style diff when changeTracking mode is git-diff.
jsonobjectJSON comparison results when changeTracking mode is json (free-form object).
brandingobjectBranding 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).
colorSchemetextDetected page color scheme: light or dark.
logotextPrimary logo URL.
colorsobjectBrand colors extracted from the page (hex values).
primarytextPrimary brand color in hex.
secondarytextSecondary brand color in hex.
accenttextAccent color in hex.
backgroundtextBackground color in hex.
textPrimarytextPrimary text color in hex.
textSecondarytextSecondary text color in hex.
linktextLink color in hex.
successtextSuccess/positive color in hex.
warningtextWarning color in hex.
errortextError/danger color in hex.
fontsarray of objectFont families used on the page.
familytextFont family name.
typographyobjectDetailed typography (fontFamilies, fontSizes, fontWeights, lineHeights). Summarized.
spacingobjectSpacing and layout (baseUnit, borderRadius, padding, margins). Summarized.
componentsobjectUI component styles (buttonPrimary, buttonSecondary, input). Summarized.
iconsobjectIcon style information (free-form object).
imagesobjectBrand images.
logotextLogo image URL.
favicontextFavicon URL.
ogImagetextOpen Graph image URL.
animationsobjectAnimation and transition settings (free-form object).
layoutobjectLayout configuration such as grid and header/footer heights (free-form object).
personalityobjectBrand personality traits such as tone, energy, and target audience (free-form object).