Urgent.News

What's breaking now, across hundreds of outlets.

Tech

HTML to Markdown API: Clean Markdown From Any Web Page

Disclosure: I work on APIBox, the API used in this guide. The first draft was written with AI assistance; I tested the code and edited it. Markdown has quietly become the exchange format of the AI era. LLMs read it well, it costs far fewer tokens than raw HTML, note apps like Obsidian store it natively, and every static site generator speaks it. The web, however, still ships HTML: navigation…

The HTML to Markdown API, developed by APIBox, simplifies the process of converting HTML content into clean Markdown format. Users can input either an HTML string or a public URL, and the API returns Markdown output along with metadata such as word and character counts. The service removes unwanted elements like scripts, styles, and iframes, and converts HTML elements into their Markdown equivalents, including tables, strikethrough, and task lists.

Additionally, the API supports GitHub-flavored Markdown, absolute and relative links, and article mode, which uses Mozilla Readability to extract the main content of a webpage. The API has certain limitations, such as a maximum input size of 5MB and a timeout of 10 seconds for URL fetches. It is important to note that the API does not render JavaScript-heavy content and does not bypass login or paywall protections.

To use the API, users need to create a free account, generate an API key, and include it in their requests. The API can be utilized in various applications, such as generating LLM prompts, scraping content, migrating existing content, and sending HTML emails.

Brief written by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

What Is the Difference Between val and var in Kotlin, and Is val Immutable?

In short: var can be given a new value. val can't. But val only locks the name, not the object behind it. A val list can still grow, and a val property can return a new value each time you read it.

  • Var allows variable reassignment, val does not
  • val locks object reference, not object itself
  • In Android, val misuse can cause view update issues

What Changed in This npm Release? Compare the Tarballs Before Upgrading

A dependency upgrade can change more than the function your application imports. It might add an install script, move a command-line entry point, or ship a directory that was absent from the previous…

  • Compare two tarballs using exact version from lockfile
  • Use npm pack, tar, sort, diff, sha512sum for comparison
  • Save script 'compare-release.sh' and run with version arguments

More from Saturday, 28 November 2026 →