TapCub is live — analytics, insights and live chat, free on one platform

Web data API Web Page to Markdown API

Send a URL and get the main content as Markdown, with navigation, footers and cookie banners removed and word and token counts included. Turn on render for pages that need JavaScript.

POSThttps://api.pathclue.com/v1/web/markdownBeta
Request

Call it from your code

Set your key in the TAPCUB_API_KEY environment variable. Base URL: https://api.pathclue.com/v1.

terminal
curl -X POST https://api.pathclue.com/v1/web/markdown \
  -H "Authorization: Bearer $TAPCUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/blog/post"}'
Parameters

Request parameters

Request parameters
ParameterTypeRequiredDefaultDescription
urlurlYes—Page address, http or https only. Private and reserved addresses are refused.
modeenumone of: article | fullNo"article"article keeps the main content only (drops navigation, footers, cookie banners); full keeps the whole page body.
renderbooleanNofalseRender the page in a headless browser first (for pages built with JavaScript). Costs more.
linksbooleanNotrueKeep links.
imagesbooleanNotrueKeep images.
frontMatterbooleanNofalsePrepend YAML front matter (title, source, dates).
Response

Example response

Successful responses carry the X-Credits-Charged and X-Credits-Balance headers. Errors return {"error":{"code","message"}} and are never charged.

response.json
{
  "url": "https://example.com/blog/post",
  "finalUrl": "https://example.com/blog/post",
  "status": 200,
  "title": "Post title",
  "markdown": "# Post title\n\nFirst paragraph…",
  "words": 812,
  "tokens": 1090,
  "bytes": 5230,
  "truncated": false,
  "rendered": false
}
Price and limits

What it costs

What it costs
Price1 credit per call; 5 credits when render: true
In US dollarsabout $0.001 · $1 / 1,000
CreditsFree or paid credits
Rate limitFree 10 / min · Plus 60 / min · Pro 300 / min
Free daily cap1,000 calls a day per key on free accounts
ChargedOnly on success — errors and timeouts are free
Use cases

What people build with it

RAG and AI agents

Give a model readable page text instead of raw HTML, and budget context with the token count.

Content archives

Save articles and docs as Markdown for search, notes or diffs over time.

Research pipelines

Pull competitor pages and changelogs into one format your scripts can read.

FAQ

Frequently asked questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

Does it run JavaScript?

Not by default, which keeps it fast and at 1 credit. Set render to true to load the page in a headless browser first; that call costs 5 credits.

Can it read pages behind a login?

No. It only reads public pages, never sends cookies and refuses private and internal addresses. See the API terms for what is allowed.

How much does the Web Page to Markdown API cost?

Each successful call costs 1 credit per call; 5 credits when render: true (about $0.001). 1 credit is about $0.001. Failed calls — invalid input, unreachable sites, timeouts or errors on our side — are not charged.

Can I try it for free?

Yes. New accounts get 300 credits and every account gets 30 free credits a day, and they work on this endpoint. You can also try the matching free tool on tapcub.com without a key.

What are the rate limits?

Free accounts can make 10 calls a minute and 1,000 a day per key; Plus allows 60 a minute and Pro 300. Over the limit you get HTTP 429 with a Retry-After header, and nothing is charged.

How do I get an API key?

Sign in to the TapCub console, verify your email and create a key on the Tools → API page. Keys start with tck_ and are shown once; send them in the Authorization: Bearer header.

Get your API key

Create a key in the console and make your first call in a minute. Light endpoints run on free daily credits.