Api Endpoint

readfetch.com

Extract one heading or one CSS selector from a public page instead of the whole document. Returns matched Markdown or text, title, chars, content_sha256, and billed. If the heading is missing, returns HTTP 200 with empty text and `available_headings` so you can retry. `mode`: fast (plain HTTP) or render (default, Chromium when the page blocks HTTP). `max_chars` truncates output (default 8000, max 20000). Prefer readfetch_text for full articles; readfetch_scrape when content n

Open interactive test console

Offering

Provider
readfetch.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://readfetch.com/v1/section
MIME type
application/json
First seen
2026-11-01T15:05:36.808Z
Last seen
Tags
Data, docs, heading, section, selector, tokens

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0x26C2308aDC8fe5FFE6d4183588DD2DD22ed86071"
  }
]

Observed health

Status
Healthy
Latest latency
670 ms
Average latency
509 ms
HTTP status
402
Last checked
Reachability
100% over 10 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "properties": {
    "body": {
      "oneOf": [
        {
          "required": [
            "heading"
          ]
        },
        {
          "required": [
            "selector"
          ]
        }
      ],
      "properties": {
        "format": {
          "default": "markdown",
          "description": "Output flavour for the matched section (markdown default).",
          "enum": [
            "markdown",
            "text"
          ],
          "type": "string"
        },
        "heading": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Heading text to match (case-insensitive, whitespace-normalised). Required unless `selector` is set — send exactly one of `heading` or `selector`, not both.",
          "example": "Introduction"
        },
        "max_chars": {
          "default": 8000,
          "description": "Truncate matched text after this many characters.",
          "maximum": 20000,
          "minimum": 100,
          "type": "number"
        },
        "mode": {
          "default": "render",
          "description": "fast = HTTP-first; render = one browser pass when plain HTTP fails (default).",
          "enum": [
            "fast",
            "render"
          ],
          "type": "string"
        },
        "selector": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "CSS selector; up to 20 matches concatenated. Required unless `heading` is set — use selector when the section has no stable heading text."
        },
        "url": {
          "description": "Public page URL to extract from.",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "bodyType": {
      "const": "json"
    },
    "method": {
      "enum": [
        "POST"
      ]
    },
    "type": {
      "const": "http"
    }
  },
  "required": [
    "type",
    "method",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "available_headings": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "billed": {
      "type": "boolean"
    },
    "chars": {
      "type": "integer"
    },
    "content_sha256": {
      "type": "string"
    },
    "hint": {
      "type": [
        "string",
        "null"
      ]
    },
    "matched": {
      "properties": {
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "level": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "status": {
      "type": "string"
    },
    "status_code": {
      "type": "integer"
    },
    "text": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "format": "uri",
      "type": "string"
    },
    "used_browser": {
      "type": "boolean"
    }
  },
  "type": "object"
}