POST

Extract plain text from HTML body. Uses turndown / cheerio

/v1/html-text

Web · turndown / cheerio

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/html-text
Content-Type: application/json

{
  "html": "Hello, world!",
  "format": "text"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Extract plain text from HTML body. Uses turndown / cheerio.

Request schema

Body: JSON · application/json

FieldTypeDescription
htmlstringrequired
formatstringrequiredenum: text, markdown
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/html-text \
  -H "Content-Type: application/json" \
  -d '{
  "html": "Hello, world!",
  "format": "text"
}'

402 payment flow omitted — see Integrations for settlement.