
Page contents: URL to clean Markdown or text
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
| Field | Type | Required | Description |
|---|---|---|---|
url | string; length 8..2048 | yes | Public http(s) URL. |
format | string; one of "markdown", "text" | no | |
max_chars | integer; 1000..200000 | no | Content is cut to this many characters; truncated says whether it was. |
include_links | boolean | no | Keep Markdown links and return a links list (at most 200). |
include_tables | boolean | no | Convert 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.
| Field | Type | Required | Description |
|---|---|---|---|
url | string | no | |
final_url | string | no | |
title | string | no | |
canonical | one of | no | |
lang | one of | no | |
description | one of | no | |
format | string; one of "markdown", "text" | no | |
content | string | no | |
word_count | integer | no | |
truncated | boolean | no | |
content_sha256 | string | no | |
html_sha256 | string | no | |
links | array<object> | no | |
fetched_at | string | no | |
limits | object | no |
Pay and connect
Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent