Docs/Agent Tools/GET /v1/structured-parse

GET /v1/structured-parseParse unstructured text into structured fields

Agent Tools lf-agent-tools

Pulls useful details such as names, addresses, and numbers out of a messy block of text. Extracts structured fields from unstructured text: emails, URLs, phone numbers, dates, amounts, social media handles, and codes.

Query Parameters

ParameterTypeRequiredDescription
textstringYesUnstructured text to parse

Response Schema

emails (array): Extracted email addresses
urls (array): Extracted URLs
phoneNumbers (array): Phone numbers
dates (array): Date strings
amounts (array): Monetary amounts
socialMedia (array): Social handles

cURL Example

curl 'https://lf-agent-tools.laminarforge.dev/v1/structured-parse?text=Contact%20user@example.com' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/structured-parse'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'text': 'Contact user@example.com or call +1-555-1234'}
response = requests.get(url, headers=headers, params=params)
print(response.json())