Web, pages and documents logo

Page contents: URL to clean Markdown or text

$0.01 USDC per call · Developer and security · POST /api/v1/page-contents · Id page-contents

Fetches one public web page and returns its main content as clean GitHub-flavored Markdown or plain text, with title, canonical URL, language, absolute links and content hashes, for agents that feed pages to a model. Deterministic, no model. Does not run JavaScript (client-rendered pages come back sparse), does not follow links, does not consult robots.txt, and drops navigation, footers, sidebars and forms.

What you get

Token-efficient page text for an LLM without writing a scraper or an HTML cleaner.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/page-contents. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/page-contents \
  -H 'content-type: application/json' \
  -d '{"url":"https://example.com/","format":"markdown","max_chars":20000}'

Input

FieldTypeRequiredDescription
urlstring; length 8..2048yesPublic http(s) URL.
formatstring; one of "markdown", "text"no
max_charsinteger; 1000..200000noContent is cut to this many characters; truncated says whether it was.
include_linksbooleannoKeep Markdown links and return a links list (at most 200).
include_tablesbooleannoConvert data tables to GFM tables; false drops them.

Example request body

{
  "url": "https://example.com/",
  "format": "markdown",
  "max_chars": 20000
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
urlstringno
final_urlstringno
titlestringno
canonicalone ofno
langone ofno
descriptionone ofno
formatstring; one of "markdown", "text"no
contentstringno
word_countintegerno
truncatedbooleanno
content_sha256stringno
html_sha256stringno
linksarray<object>no
fetched_atstringno
limitsobjectno

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable