About this endpoint
What it does
Extracts the readable text from an HTML document, returning the cleaned text content and its character length. You can optionally provide a canonical URL to help improve extraction quality.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | Optional canonical URL to improve extraction quality. |
| html | String | Yes | Raw HTML string. |
Response
Returns a JSON object with a text string field and a length integer field.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | No | The extracted clean readable text. |
| length | Integer | No | The length of the extracted text. |