Convert web pages to clean Markdown with TopAI Web-to-Markdown API

Go to Workflow
0 views
Built by TopAI Gateway TopAI Gateway
Created on October 13, 2026

Description

Quick overview
This workflow manually converts a specified webpage URL into cleaned, RAG-ready Markdown by calling TopAI Gateway’s Web-to-Markdown API over HTTP.

How it works
Starts automatically when you trigger the workflow manually, via webhook, or through a recurring scheduled trigger in n8n.
Sends a high-speed POST request to TopAI Gateway's Anycast Edge Web-to-Markdown API with the target webpage URL and configuration options.
Cleans up HTML boilerplate, strips promotional ads, cookie popups, and scripts while preserving markdown tables and document metadata for RAG ingestion.

Setup
Create a free TopAI Gateway developer account and generate your API key at https://topaigateway.com.
Replace the 'Authorization' header parameter value in the HTTP Request node with your personal token: 'Bearer '.
Update the JSON request body with the target website 'url' you want to convert and adjust cleanup options like 'strip_ads_and_scripts' and 'preserve_tables' as needed.

Requirements
TopAI Gateway API Key (Free tier available at https://topaigateway.com)

Customization
Set 'strip_ads_and_scripts' to true to eliminate noise, or set 'preserve_tables' to true to keep HTML tables formatted as markdown tables.

This workflow was created by TopAI Gateway and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (1)

HTTP Request
n8n-nodes-base.httpRequest