Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
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"
    }
  ]
}

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Tavily URL Content Extraction API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tavily/extract โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Tavily URL Content Extraction API ราคาเท่าไร?

เริ่มต้นที่ $0.0016 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Tavily URL Content Extraction API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: urls (array). ตัวเลือก: extract_depth (หนึ่งใน basic, advanced) และ include_images (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Tavily URL Content Extraction API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Tavily ไหม?

ไม่จำเป็น Tavily URL Content Extraction ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Tavily API แยกต่างหาก

รูปแบบอินพุตของ URL คืออะไร?

ส่ง urls เป็นอาร์เรย์ของที่อยู่หน้าเว็บสาธารณะ ไม่ใช่สตริงเดี่ยวหรือคำค้นหา extract_depth รับค่า basic หรือ advanced; include_images เป็นค่า boolean โปรดตรวจสอบ schema ปัจจุบันของ endpoint นี้ แทนการคัดลอกตัวเลือกเพิ่มเติมจาก upstream

ฉันสรุปได้ไหมว่าผลลัพธ์ที่ extract ทุกอันมี raw_content?

ไม่ได้ sample อ้างอิงปัจจุบันแสดงฟิลด์ URL, title และ image พร้อม failed_results แต่ไม่ได้แสดง raw_content ซึ่งยังไม่ยืนยันว่าข้อความในหน้าไม่พร้อมใช้งาน โปรดยืนยัน response ที่อนุมัติสำหรับเป้าหมายของคุณก่อนจะอาศัยฟิลด์ข้อความ การครอบคลุมทั้งหน้า หรือ workflow RAG ปลายทาง

คำขอที่เสร็จสมบูรณ์พิสูจน์ได้ไหมว่า URL ทุกอันถูก extract แล้ว?

ไม่ได้ envelope ที่ระบุไว้คือ outputs[0].data และเอกสารอ้างถึง results กับ failed_results การรันเสร็จหรือ HTTP success เพียงอย่างเดียวไม่ใช่หลักฐานว่า URL ทุกอันสร้างเนื้อหาที่คุณต้องการ ตรวจสอบ response และคงฟิลด์ที่หายไปเป็น unknown แทนที่จะเปลี่ยนเป็นข้อความว่าง