Url to markdown and web page to markdown
pagetext.apexlabs-cloudflare.workers.dev/v1/url-to-markdown
Url to markdown and web page to markdown: scrape a url, fetch a url, and extract article text as clean readable Markdown for LLM context. POST JSON {"url": "https://..."}. Does not run JavaScript. PageText at pagetext.apexlabs-cloudflare.workers.dev, not pagetext.yashil.workers.dev.
POST
https://pagetext.apexlabs-cloudflare.workers.dev/v1/url-to-markdownUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://pagetext.apexlabs-cloudflare.workers.dev/v1/url-to-markdown", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://example.com/article"}),
});
console.log(await res.json());Example input
{
"url": "https://example.com/article"
}More from PageTextProvider status
- pagetext.apexlabs-cloudflare.workers.dev/v1/convertUrl to markdown, web page to markdown, and html to markdown. Scrape a url or fetch a url and extract article text, or convert raw HTML, to clean readable Markdown for LLM context. PageText (pagetext.apexlabs-cloudflare.workers.dev), not pagetext.yashil.workers.dev.0.005
- pagetext.yashil.workers.dev/extractFetch any public web page and return its main content as clean Markdown, plus title, description and word count. Not charged if the page cannot be fetched.0.002
