Tavily URL Content Extraction

https://api.sandbase.ai/v1/api/tavily/extract

Extracts clean text content from specified web pages using their URLs. Supports basic or advanced extraction depth and optional image inclusion.

Price
$0.01USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 2 optional
Production route

Try the model

Playground

Open playground
Input
URLs to extract content from.
Depth of content extraction. Allowed values: basic, advanced.
Include images found on the pages.
OutputExample
Responseoutputs · 420 B · 13 lines
{
  "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
$0.01 / run
Daily free calls
First 100 calls per day free (shared per organization)

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

NameTypeRequiredDescription
urlsarrayYesURLs to extract content from.
extract_depthstringNoDepth of content extraction.
include_imagesbooleanNoInclude images found on the pages.

Notes

  • Set extract_depth to either basic or advanced to control parsing depth.
  • Toggle include_images to true to return images identified on the pages.

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/tavily/extract
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# 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

All APIs
APIPriceResponseReleased
Tavily$0.01 per callJSONJan 1, 2024
Tavily$0.01 per callJSONJan 1, 2024
Tavily$0.01 per callJSONJan 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?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

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.