About this endpoint
What it does
Extracts the visible text from a webpage identified by a URL and returns it as an array of text lines. You can optionally preserve paragraph grouping instead of splitting the extracted text into discrete lines.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Webpage URL to extract text from. Must be a valid URI. |
| preserve_paragraphs | Boolean | No | When true, preserves paragraph grouping in the extracted text. Default: false. |
Response
Returns a JSON object with a data string array field containing the extracted visible text split into discrete lines, unless preserve_paragraphs is true.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | String Array | Yes | Extracted text split into discrete lines, unless preserve_paragraphs is true. |