Leverine · PageMark API

URL in. Clean Markdown out.

PageMark is a hosted API that turns a web page into clean Markdown, plus metadata and word and token counts — the input RAG pipelines and browsing agents need. Extraction is a deterministic readability pipeline: no headless browser, and no LLM calls, ever.

Live now The API is running at pagemark.leverine.com and the free tier is usable now. Paid checkout opens at launch — see Purchase.

Check the live API health See pricing

A cluttered web page flowing through a funnel and emerging as a clean, tidy document

The API

One endpoint, a predictable answer

Send a URL with your API key; get the page’s main content as Markdown with its metadata. Chrome and noise — navigation, headers, footers, asides, forms, scripts — are stripped, and the output preserves headings, paragraphs, lists, links (absolutised), emphasis, code blocks, blockquotes, simple tables, and images.

ExtractPOST https://pagemark.leverine.com/v1/extract with a JSON body of {"url": "https://…"} and your key as Authorization: Bearer pm_… (or an X-API-Key header).
ResponseThe final URL, title, description, author, publication date, site name, language and canonical URL (each null when the page doesn’t provide it), the Markdown itself, word and character counts, a token count estimate, and your current usage for the month.
HealthGET https://pagemark.leverine.com/health — public, no key needed, returns the service status and version. Try it.
ErrorsStructured errors with a code and message: malformed requests, missing or invalid keys, robots refusals, blocked private addresses, oversized or non-HTML responses, and quota exhaustion each get their own answer.

Call it with curl

curl -s -X POST https://pagemark.leverine.com/v1/extract \
  -H "Authorization: Bearer pm_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/some-article"}'

Pricing

Metered per key, per month

Usage is counted per API key per month (UTC). Only successful extractions consume quota — refusals and upstream failures are free.

Tier Free$0 Pro$9/mo Ultra$29/mo
Extractions100 / month10,000 / month100,000 / month
What countsSuccessful extractions only. Robots refusals, blocked addresses, and upstream fetch failures never consume quota.
AvailabilityLive now — keys are issued on request while self-serve signup is finishedCheckout opens at launchCheckout opens at launch

Prices in USD. There is no self-serve key signup yet: free-tier keys are minted by hand on request — reach us through the contact section of the homepage.

Honest limits

What PageMark deliberately doesn’t do

No JavaScript renderingVersion 1 has no headless browser and no JavaScript rendering, by design. A page that only exists after client-side scripts run will extract poorly or return a “no content” error rather than a guess.
Token count is an estimatetoken_count_estimate is exactly that — a deterministic estimate (characters divided by four, rounded up), not a model-specific tokenizer count.
Robots rules applyThe fetcher honours each site’s robots.txt for the PageMark bot. If a site disallows the path, the API refuses and the refusal costs you no quota.
SSRF protectionEvery hop — the initial URL and each redirect — is checked before any connection is made. Hosts resolving to private, loopback, link-local, reserved, or multicast addresses are refused, and URLs with embedded credentials are refused.
Caps10-second fetch timeout, 2 MB response cap, HTML content types only, at most 5 redirects.

Purchase

Free tier live; paid checkout opens at launch

Use it now — Free

The API is live and the Free tier (100 requests/month) is usable today. Keys are issued on request while self-serve signup is being finished — ask via the homepage contact section, and check the service any time at pagemark.leverine.com/health.

Paid tiers — Pro $9/mo · Ultra $29/mo

Checkout opens at launch. The Paddle products for Pro and Ultra have not been created yet, so there is deliberately no buy button on this page today. When checkout opens, it will appear in this section at the prices in the table above.