Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Tavily URL Content Extraction

API दस्तावेज़
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.

मूल्य
से $0.0016USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 2 वैकल्पिक

प्लेग्राउंड

इनपुट
URLs to extract content from.
Depth of content extraction.
Include images found on the pages.
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 420 B · 13 पंक्तियाँ
{
  "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"
    }
  ]
}

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Tavily URL Content Extraction API

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.

Use cases

  • Pull the title of a list of known pages to check what each URL points to.
  • Collect the images found on specific pages by setting include_images to true.
  • Find which URLs in a batch could not be extracted by reading failed_results.
  • Run a batch of pages from a search or site crawl through one extraction call.

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": ["https://en.wikipedia.org/wiki/Artificial_intelligence"]}'

The result is returned in outputs[0].data.

Parameters

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

Example response

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
  }
}

Response fields

FieldMeaning
results[]One entry per URL that was extracted successfully.
results[].urlThe page address that was extracted. Use it to match each result to the URL you sent.
results[].titleThe title of the page, for example Artificial intelligence - Wikipedia.
results[].imagesList of images found on the page. It is empty in this response, where include_images was not set.
failed_resultsList of URLs that could not be extracted. It is empty when every URL worked.
request_idUnique ID of the request, as a UUID.
response_timeTime taken for the request. The value is a number such as 0.03.
usage.creditsNumber of credits recorded for the call, such as 1.

Notes

  • Pass several addresses in the urls array to extract them in one call. Check both results and failed_results for each one.
  • Set extract_depth to basic or advanced. Set include_images to true to fill results[].images.
  • To find URLs to extract, call Tavily Search or Tavily Site Map.

Submit URLs without assuming a text field

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.

Pricing

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.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Tavily$0.0016 प्रति कॉल सेJSON
Tavily$0.04 प्रति कॉल सेJSON
Tavily$0.008 प्रति कॉल सेJSON

गाइड्स:Tavily alternatives: compare Exa and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

प्रश्न

FAQ

Tavily URL Content Extraction API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tavily/extract पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Tavily URL Content Extraction API की लागत कितनी है?

$0.0016 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Tavily URL Content Extraction API कौन-से parameters स्वीकार करती है?

आवश्यक: urls (array)। वैकल्पिक: extract_depth (basic, advanced में से एक) और include_images (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Tavily URL Content Extraction API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Tavily developer account या API key चाहिए?

नहीं। Tavily URL Content Extraction SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Tavily API access के लिए आवेदन करने की आवश्यकता नहीं है।

URL input format क्या है?

urls को सार्वजनिक page addresses की एक array के रूप में भेजें, न कि एक single string या search query के रूप में। extract_depth basic या advanced स्वीकार करता है; include_images एक boolean है। अतिरिक्त upstream options कॉपी करने के बजाय इस endpoint की current schema देखें।

क्या मैं मान सकता हूँ कि हर extracted result में raw_content होता है?

नहीं। current reference sample में failed_results के साथ URL, title और image fields दिखते हैं, लेकिन raw_content नहीं दिखाया गया है। इससे यह साबित नहीं होता कि page text उपलब्ध नहीं है। text field, full-page coverage या downstream RAG workflow पर भरोसा करने से पहले अपने target के लिए approved response verify करें।

क्या पूरा हो चुका request साबित करता है कि हर URL extract हुआ था?

नहीं। documented envelope outputs[0].data है, और reference में results तथा failed_results का उल्लेख है। केवल completed run या HTTP success यह साबित नहीं करता कि हर URL ने आपकी चाही हुई content दी। response की समीक्षा करें और missing fields को empty text में बदलने के बजाय unknown ही रहने दें।