Overview
Extract structured data from URLs or content
Credits
3 credits per call
Providers
SDK Method
client.documents.find(...)
Parameters
urlstring
URL to scrape and extract from.
contentstring
Pre-scraped text content.
extraction_promptRequiredstring
What to extract (required unless schema is provided).
schemaobject
JSON schema for extraction.
Example Response
{
"success": true,
"data": {
"extracted": {
"main_heading": "Example Domain",
"links": [
{
"text": "Learn more",
"url": "https://iana.org/domains/example"
}
]
},
"source_url": "https://example.com",
"content_length": 167,
"truncated": false
},
"metadata": {
"provider_used": "llm_extraction",
"providers_tried": [
"llm_extraction"
],
"mode_used": null,
"response_time_ms": 1716,
"request_id": "req_bc82d469"
},
"credits_used": 3
}Get Started
Create a Suprsonic API key in your dashboard, then call the endpoint with your key in the Authorization header.
Confirm your email and 25 free credits are added, no card needed. After them, your API calls continue with a free 7-day trial of Pro: a card is needed, and nothing is charged until the trial ends. When you need more, subscribe to a plan: Pro is $29 a month for 2,000 credits, Max $99 for 8,000 and Team $249 for 24,000.