Get Markdown
AI-generatedSummary
Convert a webpage at a specified URL to Markdown format using the ScrapingAnt API, optionally rendering it with headless Chrome and using proxy settings.
Inputs
- markdownUrl (required) — The URL of the webpage to convert to Markdown.
- markdownOptions — Optional settings including whether to use browser rendering, proxy country code, and proxy type.
Output shape
a single JSON object containing the webpage content converted to Markdown format.
The response is returned as a JSON object from the ScrapingAnt API's /v2/markdown endpoint. Optional query parameters include 'browser' for headless Chrome rendering, 'proxy_country' for selecting proxy location by two-letter country code, and 'proxy_type' to specify using datacenter or residential proxies.
Examples
Example 1: Convert a webpage to Markdown with default browser rendering
Set 'markdownUrl' to the target URL and use default 'markdownOptions' (browser rendering enabled, datacenter proxy).
Example 2: Convert a webpage to Markdown using a UK residential proxy without browser rendering
Set 'markdownUrl' to the target URL. In 'markdownOptions', set 'browser' to false, 'proxy_country' to 'gb', and 'proxy_type' to 'residential'.