↑ ↓ to move ↵ to open

Website to Markdown API

Any page, PDF or document as clean Markdown.

At a glance

Endpoint ID
web.markdown
Price
1 credit per call; failed calls are free
Runs for up to
600 seconds
Request
POST /markdown or POST /execute
MCP tool when pinned
web__markdown
Pin tools
OpenAPI
openapi.json
Download

The Website to Markdown API reads one page, PDF or document and returns it as clean Markdown: headings, lists, links and tables kept; menus, banners and footers left out. It's the text an AI model or a search index wants.

Call it

curl https://data.upscrape.com/markdown \  -H "Authorization: Bearer $UPSCRAPE_API_KEY" \  -H "Content-Type: application/json" \  -H "Prefer: wait=30" \  -d '{"url": "https://stripe.com/privacy"}'

The Markdown is in results[0].data.parsed.markdown. The start of it, from a run on staging on 16 October 2026:

parsed.markdown
# Privacy Policy#### Last updated: April 28, 2026This Privacy Policy includes important information about your personal data…

Files, not only pages

PDF, Word, Excel, CSV, JSON, XML and RSS or Atom feeds are read the same way: send their URL. Tables in them come back as Markdown tables and in parsed.tables.

Choose what to keep

InputWhat it does
main_content_onlyOn by default: only the page's main content. Turn it off for the whole page.
include_selectorsKeep only the first element matching one of these, such as "article" or ".post-body".
exclude_selectorsDrop elements matching these, such as ".newsletter".
detailstandard (default) is the clean content; summary is the metadata only; full adds every element, image and link found.
headersExtra request headers for this page, such as Accept-Language.

Big pages

A page larger than the size limit fails with response_too_large. Raise max_body_bytes, or set allow_truncated: true to keep what was read; the response then says it was cut.

Input

FieldTypeRequiredWhat it doesExample
url string yes The public page or file to capture: a web page, PDF, DOCX, XLSX, CSV, JSON, XML or feed. https://stripe.com/privacy
accept_statuses array<integer> no Error statuses you still want returned, such as [404], to inspect the page.
allow_browser_fallback boolean no Open the page in a real browser when it needs JavaScript or blocks a plain request. On by default.
allow_truncated boolean no Return what was read when a page is larger than the size limit, instead of failing.
archive object no Also save the page as self-contained HTML or a ZIP of the page and its files.
detail string no How much to return: summary (title and counts), standard (the clean content: Markdown, text, links, images and tables) or full. summary · standard · full
document object no Options for PDFs and other files, such as whether to read scanned pages. Ignored for ordinary web pages.
exclude_selectors array<string> no Leave out parts of the page matching simple CSS selectors, such as .ads.
headers object no Extra request headers to send, such as Accept-Language.
include_selectors array<string> no Keep only the part of the page matching a simple CSS selector, such as article or #content.
main_content_only boolean no Keep the Markdown to the page's main content, without menus, banners and footers.
max_body_bytes integer no The largest page or file to read, in bytes.
max_total_bytes integer no The most bytes to read in all, redirects included.

Response

A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.

This is results[0].data from a real run:

results[0].data
{  "content_type": "text/html; charset=utf-8",  "final_url": "https://stripe.com/privacy",  "status_code": 200,  "page": {    "title": "Privacy Policy",    "canonical_url": "https://stripe.com/privacy",    "lang": "en-US"  },  "parsed": {    "markdown": "# Privacy Policy\n\n#### Last updated: April 28, 2026\n\nThis Privacy Policy includes important information about your personal data and we enc…",    "status": "parsed",    "metadata": {      "title": "Privacy Policy",      "canonical_url": "https://stripe.com/privacy",      "language": "en-US"    }  },  "warnings": []}

Fields

FieldTypeWhat it isExample
page object The page this response holds. 3 fields
page.title string The page's title. Privacy Policy
page.lang string The page's language. en-US
page.canonical_url string The address the page names as its main one. https://stripe.com/privacy
final_url string The address the page ended at, after any redirects. https://stripe.com/privacy
status_code integer The site's HTTP status for the page, such as 200. 200
content_type string The kind of content the page is. text/html; charset=utf-8
parsed object The page's content, read and cleaned. 3 fields
parsed.metadata.title string The page's title. Privacy Policy
parsed.markdown string The page as Markdown: headings, lists, links and tables kept, menus and footers left out. # Privacy Policy #### Last updated: April 28, 2026 This Privacy…
parsed.metadata object The title, language and canonical address the page declares. 3 fields
parsed.metadata.canonical_url string The address the page names as its main one. https://stripe.com/privacy
parsed.metadata.language string The page's language. en-US
parsed.status string Whether the page was read. parsed
warnings array Anything that limited the read, such as a page cut at the size limit; empty when all went well. empty in this sample

What to know

  • PDF, Word, Excel, CSV, JSON, XML and feeds are read the same way as web pages.
  • A page that needs JavaScript is opened in a real browser for you.
  • A page larger than the size limit fails with response_too_large, unless you set allow_truncated to keep what was read.
  • The Markdown keeps the page's own words; nothing is summarised or rewritten.

If a call fails

A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.

Something missing or unclear? Ask the team that builds the endpoints.