Docs/Agent Tools/GET /v1/web-content-extract

GET /v1/web-content-extractExtract readable content from URL

Agent Tools lf-agent-tools

Pulls just the article out of a web page and leaves the menus and ads behind. Extracts the main readable content from a webpage URL, stripping navigation, ads, and clutter.

Query Parameters

ParameterTypeRequiredDescription
urlstringYesURL of the page to extract

Response Schema

title (string): Page title
content (string): Extracted text content
word_count (integer): Word count
source_url (string): Source URL

cURL Example

curl 'https://lf-agent-tools.laminarforge.dev/v1/web-content-extract?url=https://example.com' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/web-content-extract'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': 'https://example.com'}
response = requests.get(url, headers=headers, params=params)
print(response.json())