urlsarrayerforderlich
URLs to extract content from.
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.
{
"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"
}
]
}Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns the page title and images for each URL you send, with a list of URLs that could not be extracted. It needs a urls array with one or more web page addresses.
include_images to true.failed_results.curl -X POST "https://api.sandbase.ai/v1/api/tavily/extract" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://en.wikipedia.org/wiki/Artificial_intelligence"]}'
The result is returned in outputs[0].data.
| 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. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"failed_results": [],
"request_id": "f594f392-10f6-4a3f-9d7c-ac020a617625",
"response_time": 0.03,
"results": [
{
"images": [],
"title": "Artificial intelligence - Wikipedia",
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence"
}
],
"usage": {
"credits": 1
}
}
| Field | Meaning |
|---|---|
results[] | One entry per URL that was extracted successfully. |
results[].url | The page address that was extracted. Use it to match each result to the URL you sent. |
results[].title | The title of the page, for example Artificial intelligence - Wikipedia. |
results[].images | List of images found on the page. It is empty in this response, where include_images was not set. |
failed_results | List of URLs that could not be extracted. It is empty when every URL worked. |
request_id | Unique ID of the request, as a UUID. |
response_time | Time taken for the request. The value is a number such as 0.03. |
usage.credits | Number of credits recorded for the call, such as 1. |
urls array to extract them in one call. Check both results and failed_results for each one.extract_depth to basic or advanced. Set include_images to true to fill results[].images.Send urls as an array of public page addresses. extract_depth accepts basic or advanced; include_images is a boolean. Search takes a query, while this request takes URLs you already selected. The current reference sample shows URL, title and image fields with failed_results; it does not demonstrate raw_content. That absence is not proof that text extraction is impossible, and it is not a guarantee of full-page text either. Check the approved response for your target before writing a text parser or claiming a complete RAG workflow.
To discover candidate URLs first, read the Tavily Search parameters and the Python search guide. Review and select a URL yourself; the examples do not chain or retry requests.
Billed like Tavily's pay-as-you-go price of $0.008 per credit, where 5 successful extractions use 1 credit (tavily.com, checked 2026-11-22 UTC): $0.0016 per successfully extracted URL with extract_depth: "basic" (the default), $0.0032 with "advanced". 5 URLs cost $0.008. Tavily counts credits across calls, so a single URL is not rounded up to a full credit. URLs that fail to extract are not charged, and a call where every URL fails costs nothing. The estimate before a call assumes every URL succeeds. It is not part of the daily free quota, because its price varies with the request.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/tavily/extract" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"urls": [
"https://static.sandbase.ai/examples/de3a14cf-48e2-4dd0-9ef9-4c4c1da485c8/input/2f4290fd-6946-4f6b-8cbe-5b3366e41080.com"
]
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
urlsarrayerforderlichURLs to extract content from.
extract_depthstringDepth of content extraction.
Mögliche Werte: basic, advanced
include_imagesbooleanInclude images found on the pages.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
{
"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"
}
]
}Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Tavily URL Content ExtractionDiese API Tavily | Ab $0.0016 pro Aufruf | JSON |
Tavily | Ab $0.04 pro Aufruf | JSON |
Tavily | Ab $0.008 pro Aufruf | JSON |
Anleitungen:Tavily alternatives: compare Exa and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tavily/extract mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0016 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: urls (array). Optional: extract_depth (eines von basic, advanced) und include_images (boolean). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Tavily URL Content Extraction läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Tavily API beantragen.
Senden Sie urls als Array öffentlicher Seitenadressen, nicht als einzelnen String oder Suchanfrage. extract_depth akzeptiert basic oder advanced; include_images ist ein Boolean. Prüfen Sie das aktuelle Schema dieses Endpunkts, statt zusätzliche Upstream-Optionen zu übernehmen.
Nein. Das aktuelle Referenzbeispiel zeigt URL-, title- und image-Felder mit failed_results, demonstriert aber raw_content nicht. Daraus folgt nicht, dass der Seitentext nicht verfügbar ist. Prüfen Sie für Ihr Ziel eine freigegebene Antwort, bevor Sie sich auf ein Textfeld, vollständige Seitenabdeckung oder einen nachgelagerten RAG-Workflow verlassen.
Nein. Der dokumentierte Container ist outputs[0].data, und die Referenz beschreibt results und failed_results. Ein abgeschlossener Lauf oder ein HTTP-Erfolg allein ist kein Beweis dafür, dass jede URL den gewünschten Inhalt geliefert hat. Prüfen Sie die Antwort und behandeln Sie fehlende Felder als unbekannt, statt sie in leeren Text umzuwandeln.