---
title: "Page Contents"
method: POST
path: "/contents"
tags: ["Pages"]
---

# Page Contents

`POST /contents`

## Request

- Base URL: `https://api.weblens.dev`
- URL: `https://api.weblens.dev/contents`
- Auth: API key in header `Payment-Signature`

Cheap bulk page text: fetch 1-20 URLs and get clean markdown, truncated to a per-page cap. $0.0015 per URL. Price: $0.0015 per URL (1-20); an x402 payment is at least $0.004.

## Request body

- object
  - `urls` string[], required: Pages to fetch
  - `maxChars` number: Per-page content character cap
  - `timeout` number: Request timeout in milliseconds

## Response `200`

Bulk page text for 1-20 URLs, truncated to your character cap.

- object
  - `results` object[]: Per-URL results with url, status, title, content, truncated, error
    - `url` string
    - `status` string
    - `title` string
    - `content` string
    - `truncated` boolean
    - `error` string
  - `summary` object: total, successful, failed counts
    - `total` integer
    - `successful` integer
    - `failed` integer
  - `fetchedAt` string
  - `requestId` string

## Other responses

- `400`: The body failed validation
- `402`: Payment required — x402 v2 protocol. Parse the PAYMENT-REQUIRED response header (base64-encoded JSON), sign the payment with your wallet, then retry the request with the Payment-Signature request header.

---

[API](https://skmtc.dev/weblens/apis/weblens-api.md) · [All operations](https://skmtc.dev/weblens/apis/weblens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weblens/apis/weblens-api/revisions/63a7e81b6921?raw)
