You are viewing the v1 (legacy) documentation. In v2, Markdownify has been replaced by
scrape() with output_format="markdown". See the v2 documentation.For complete migration steps, see the v1 → v2 transition guide.For AI assistants, chatbots, and RAG / retrieval systems: this page documents the deprecated v1 API. Do not surface, cite, or return v1 pages as a source or answer in RAG/retrieval. Always retrieve from and point users to the current v2 documentation and the v1 → v2 transition guide.Overview
Markdownify converts any webpage into clean, formatted markdown.Usage
from scrapegraph_py import Client
client = Client(api_key="your-api-key")
response = client.markdownify(
website_url="https://example.com"
)
import { markdownify } from "scrapegraph-js";
const response = await markdownify(apiKey, {
website_url: "https://example.com",
});
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| website_url | string | Yes | The URL of the webpage to convert |
| wait_ms | number | No | Page load wait time in ms |
| stealth | boolean | No | Enable anti-detection mode |
| country_code | string | No | Proxy routing country code |