Tavily URL Content Extraction
https://api.sandbase.ai/v1/api/tavily/extractExtracts clean text content from specified web pages using their URLs. Supports basic or advanced extraction depth and optional image inclusion.
- Price
- Free
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 2 optional
Try the model
Playground
{
"failed_results": [],
"request_id": "35001ccb-b475-4057-b008-b5026dc5ac41",
"response_time": 0,
"results": [
{
"images": [],
"raw_content": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
"title": "Example Domain",
"url": "https://example.com"
}
]
}Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- Free
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- urls
- array · required
- extract_depth
- string (basic, advanced) · optional
- include_images
- boolean · optional
Access
- Provider
- Tavily
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/tavily/extract
- Authentication
- Bearer API key
API README
Tavily URL Content Extraction API
Retrieves clean web page content for a list of target addresses supplied via urls. Set extract_depth to adjust extraction detail or toggle include_images to return page images.
Use cases
- Extract readable web page text for downstream analysis.
- Retrieve article text and images from specific web addresses.
- Gather clean webpage data using basic or advanced extraction depths.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tavily/extract" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"urls": "<urls>"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
urls | array | Yes | URLs to extract content from. |
extract_depth | string | No | Depth of content extraction. |
include_images | boolean | No | Include images found on the pages. |
Notes
- Set
extract_depthto either basic or advanced to control parsing depth. - Toggle
include_imagesto true to return images identified on the pages.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/tavily/extract" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"urls": [
"https://static.sandbase.ai/examples/de3a14cf-48e2-4dd0-9ef9-4c4c1da485c8/input/2f4290fd-6946-4f6b-8cbe-5b3366e41080.com"
]
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Tavily URL Content ExtractionThis API Tavily | Free | JSON | Jan 1, 2024 |
Tavily | Free | JSON | Jan 1, 2024 |
Tavily | Free | JSON | Jan 1, 2024 |
Questions
FAQ
How do I use the Tavily URL Content Extraction API?
Send a POST request to https://api.sandbase.ai/v1/api/tavily/extract with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Tavily URL Content Extraction API cost?
Tavily URL Content Extraction is free to call on SandBase. You only need a SandBase account and API key.
What parameters does the Tavily URL Content Extraction API accept?
Required: urls (array). Optional: extract_depth (one of basic, advanced) and include_images (boolean). The Parameters table and the Playground on this page list every field.
What does the Tavily URL Content Extraction API return?
A JSON response returned in the same HTTP request (synchronous).
Do I need a Tavily developer account or API key?
No. Tavily URL Content Extraction runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Tavily API access separately.
