WritersLogic Verifiable AI Agent Hub Page Contents API
The Page Contents API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for page contents.
The Page Contents API from WritersLogic Verifiable AI Agent Hub — 1 operation(s) for page contents.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/writerslogic-com:writerslogic-com-page-contents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WritersLogic Verifiable AI Agent Hub Page Contents API
version: 2.0.0
description: Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.
contact:
name: WritersLogic
url: https://writerslogic.com/agents
email: agents@writerslogic.com
servers:
- url: https://agents.writerslogic.com
tags:
- name: Page Contents
paths:
/api/v1/page-contents:
post:
operationId: page_contents
summary: 'Page contents: URL to clean Markdown or text'
description: '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.
Price: 0.004 USDC on Base (x402).'
x-x402-price-usdc: '0.004'
x-x402-amount: '4000'
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.004'
x-audience: developer
x-sample-url: https://agents.writerslogic.com/api/v1/samples/page-contents
security:
- x402: []
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- url
properties:
url:
type: string
minLength: 8
maxLength: 2048
description: Public http(s) URL.
format:
type: string
enum:
- markdown
- text
default: markdown
max_chars:
type: integer
minimum: 1000
maximum: 200000
default: 60000
description: Content is cut to this many characters; truncated says whether it was.
include_links:
type: boolean
default: true
description: Keep Markdown links and return a links list (at most 200).
include_tables:
type: boolean
default: true
description: Convert data tables to GFM tables; false drops them.
example:
url: https://example.com/
format: markdown
max_chars: 20000
responses:
'200':
description: Paid result with provenance
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
url:
type: string
final_url:
type: string
title:
type: string
canonical:
anyOf:
- type: string
- type: 'null'
lang:
anyOf:
- type: string
- type: 'null'
description:
anyOf:
- type: string
- type: 'null'
format:
type: string
enum:
- markdown
- text
content:
type: string
word_count:
type: integer
truncated:
type: boolean
content_sha256:
type: string
html_sha256:
type: string
links:
type: array
items:
type: object
properties:
text:
type: string
href:
type: string
fetched_at:
type: string
limits:
type: object
properties:
note:
type: string
_provenance:
type: object
description: C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance
required:
- data
- _provenance
'400':
description: Invalid request (no payment consumed)
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'401':
description: Invalid X-API-KEY
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'402':
description: Payment required or invalid
content:
application/json:
schema:
type: object
description: x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)
properties:
x402Version:
type: integer
error:
type: string
code:
type: string
resource:
type: object
accepts:
type: array
items:
type: object
extensions:
type: object
'502':
description: Upstream failure; the payment is released or not settled
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
tags:
- Page Contents
components:
securitySchemes:
x402:
type: apiKey
in: header
name: PAYMENT-SIGNATURE
description: x402 v2 payment payload (base64) sent after a 402 challenge
apiKey:
type: apiKey
in: header
name: X-API-KEY