Sapience icon

Sapience

Sapience API integration

Utility → Fetch URL Text

AI-generated

Summary

Fetches and extracts text content from one or more URLs using the selected extraction engine (Trafilatura or BeautifulSoup). Optionally also saves the extracted text as a file via the Sapience backend.

Inputs

None.

Output shape

object

The raw response from the Sapience /api/v2/utilities/fetch-url-text endpoint, which contains the extracted text for each URL.

Examples

Example 1: Extract article text from a news URL

urls=https://example.com/article, engine=trafilatura, shouldSaveAsFileToo=false

Links

Discussion