GET /v1/html-to-structuredConvert HTML tables/lists to structured JSON
Agent Tools lf-agent-tools
Turns tables and lists from a web page into clean structured data. Parses HTML content and converts tables and lists into structured JSON data.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
html | string | No | Raw HTML content |
url | string | No | URL to fetch HTML from |
Response Schema
success (boolean): Operation success
type (string): Detected structure type
data (object/array): Parsed structured data
cURL Example
curl 'https://lf-agent-tools.laminarforge.dev/v1/html-to-structured?url=https://example.com' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/html-to-structured'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': 'https://example.com'}
response = requests.get(url, headers=headers, params=params)
print(response.json())