NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

URL to Markdown API

POST

Save any webpage as clean, structured Markdown.

URL to Markdown converts any webpage URL into structured Markdown text. Each response delivers the page title, converted text, word count, and element counts, with paid plans adding optional link and image syntax.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/urltomarkdown
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://example.com/",
    "title": "Example Domain",
    "markdown": "# Example Domain\n\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n\n[Learn more](https://iana.org/domains/example)",
    "wordCount": 20,
    "imageCount": 0,
    "linkCount": 1
  }
}

About the URL to Markdown API

This URL to Markdown and website to markdown API converts a webpage to Markdown in one call: send any public URL and get back the page title, the Markdown text and a word count, ready for LLM, RAG and docs pipelines. Headings, paragraphs, lists, tables, code blocks, quotes and emphasis are kept as Markdown, while navigation, headers, footers, sidebars, cookie banners and scripts are removed, so what is left is the main content of the page.

Teams use it to feed articles and documentation into language models, build knowledge bases from help centres, archive pages as plain text, or turn a competitor's changelog into something a script can read. The response also counts the images and links found in the content, which helps you decide whether a page is worth processing further.

On the Free plan links are reduced to their text and images are left out. Paid plans can turn on includeLinks and includeImages to keep full Markdown link syntax and image references with absolute URLs.

How it works

The API fetches the page through a scraping service that tries a plain HTTP request first and falls back to a headless browser, retrying through a proxy when the site answers with a blocking status. The browser waits only for the DOM to load and skips images, fonts and media to stay fast. Non-public addresses are refused before any fetch, and pages that block the request or return an error status are reported as failures instead of being converted.

The HTML is parsed and script, style, iframe, nav, header, footer, aside and common sidebar, menu, advert, cookie-banner and popup classes are removed. Conversion starts from the first main, article or common content container, or from body if none is present. Headings become # to ######, pre blocks become fenced code, tables become pipe tables with the first row as header, and lists, quotes, bold and italic map to their Markdown forms. Runs of blank lines and spaces are collapsed. title comes from the page <title>, then og:title, then the first h1.

includeLinks writes [text](url) and includeImages writes ![alt](src), resolving relative URLs against the page address and reading lazy-load data-src attributes. Both default to false and are ignored on the Free plan. imageCount and linkCount count elements in the content area whatever those settings are, excluding # and javascript: links. wordCount splits the final Markdown on whitespace. Results are cached for one hour per URL and option combination, and a page that yields under 10 characters of Markdown returns an error.

What people use it for

Static Site Migration
Developers moving legacy blogs to static site generators extract page titles and converted text to generate clean Markdown source files automatically.
Offline Documentation Readers
Technical writers turn public product docs into offline Markdown manuals, tracking extracted word counts across pages to structure revision bundles.
Knowledge Base Ingestion
Feed live help center URLs to internal knowledge bases, stripping unnecessary HTML markup while preserving document headings and lists for local search.
Web Page Archiving
Before third-party guides go offline, research teams store target articles as version-controlled Markdown text plus recorded image and link counts.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use URL to Markdown

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the URL to Markdown API.

Read the docs →
Does the URL to Markdown API accept raw HTML, or only a URL?
Only a URL. This webpage to Markdown API fetches the page itself, so you send the address and it returns the Markdown; there is no field for pasting an HTML string. To strip HTML you already have, use the HTML to Text API instead.
How far does the Starter plan go for page conversions?
Starter covers 20,000 page conversions every month, which works out to about $0.0015 per page ($1.50 per 1,000 calls). Each conversion consumes 10 credits from your plan balance. On the Free plan, you can convert up to 20 pages each month.
Can I include images and links in the Markdown on the Free plan?
No, including image references and hyperlinks requires a paid subscription. The Free plan converts pages with default settings, while any paid plan, starting with Starter, unlocks parameters to retain images and links in the output.
Does the conversion preserve document structure like headings and lists?
Yes, the parser maps standard HTML elements directly to Markdown syntax. Headings, lists, and text formatting are converted on every plan; paid plans can also convert links while preserving the layout of the original document.
Does the API download and host images from the converted page?
No, images are not downloaded or cached during conversion to keep fetch times fast. Instead, on paid plans, image references and source URLs are reconstructed directly within the generated Markdown.
What metadata comes back with the converted text?
Each response delivers the extracted page title, total word count, image count, and link count alongside the converted Markdown string. You also receive the original source URL for verification.

Ready to build with URL to Markdown? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs