# Webpage Markdown Extractor

Source: https://openflow.run/zh-tw/templates/webpage-markdown-extractor/
Content language: en
Template revision: f2bf5895d91486412f320151dafd9c6b95b42091

內容

Fetch one page through Firecrawl and return its Markdown content with the reported page status.

[在 Open Flow 中使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Ff2bf5895d91486412f320151dafd9c6b95b42091%2Fworkflows%2Fwebpage-markdown-extractor%2Ftemplates%2Fwebpage-markdown-extractor.openflow.json)

*   [Open Flow JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webpage-markdown-extractor/templates/webpage-markdown-extractor.openflow.json)
*   [n8n JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webpage-markdown-extractor/templates/webpage-markdown-extractor.n8n.json)

![Webpage Markdown Extractor 在 Open Flow 中的工作流程截圖](https://openflow.run/_astro/preview-light.BLhZ1Vhy_ZM9g4D.webp)

Fetch one page through Firecrawl and return its main content as Markdown.

## Setup and use

Connect Firecrawl on **Scrape page as Markdown**. Use Run and supply one URL:

```json
{ "url": "https://example.com/page" }
```

In n8n, select an HTTP Header Auth credential on **FireCrawl**, with name `Authorization` and value `Bearer <your Firecrawl API key>`. Call the imported workflow through Execute Sub-workflow with the string field `url`. The workflow returns the Markdown as `response` and the target website’s reported HTTP status as `pageStatus`, or `null` when no valid status was supplied.

Each run has one scrape step. It requests main content in Markdown, with a 30-second Firecrawl timeout and `maxAge: 0` to request fresh content. Firecrawl manages rendering, target redirects and extraction. Extraction is subject to the website and your Firecrawl account’s limits and API allowance. The URL is sent to Firecrawl. This workflow does not crawl linked pages, generate a summary or write the extracted content to another service.

A successful Firecrawl request can contain a target error page such as HTTP 404. This template preserves that content and exposes `pageStatus` so callers can decide how to use it. Firecrawl request failures, unsuccessful service responses and missing or blank Markdown stop the run. There are no workflow-level retries configured; provider request retries remain service controlled.

## Changes to the source

*   Declare the input as `url`, matching the source’s documented call shape instead of its undeclared `query.url` binding.
*   Use the current Firecrawl v2 scrape API in both formats. [Firecrawl v1 shuts down on December 10, 2026](https://docs.firecrawl.dev/migrate-to-v2).
*   Preserve the source v1 freshness setting explicitly with `maxAge: 0`; v2 otherwise defaults to a two-day cache allowance.
*   Build the n8n JSON body as an object, remove the empty header entry and keep the API key in its credential.
*   Reject unsuccessful or empty scrape results and include the reported page status alongside the Markdown.

Adapted from [Using External Workflows as Tools in n8n](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/Other_Integrations_and_Use_Cases/Using%20External%20Workflows%20as%20Tools%20in%20n8n.json) in [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). The source export does not identify a separate template author or license. See [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/README.md#licensing) for the scope of OOMOL contributions and third-party material.

## 使用的應用

*   [**Firecrawl**`firecrawl`](https://console.openflow.run/connections/firecrawl)

## 設定需求

*   Firecrawl account and API allowance
*   One HTTP or HTTPS page URL
*   n8n HTTP Header Auth credential with Authorization: Bearer <Firecrawl API key>

*   firecrawl
*   web
*   markdown
*   extraction

[在 GitHub 查看](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webpage-markdown-extractor/README.md)
