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.0016 からUSD / 回
メソッド
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価格レスポンス
Tavily1回あたり $0.0016 からJSON
Tavily1回あたり $0.04 からJSON
Tavily1回あたり $0.008 からJSON

ガイド:Tavily alternatives: compare Exa and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

質問

FAQ

Tavily URL Content Extraction API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tavily/extract に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Tavily URL Content Extraction API の料金はいくらですか?

1回あたり $0.0016 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Tavily URL Content Extraction API はどのパラメータを受け付けますか?

必須: urls (array)。 任意: extract_depth(basic, advanced のいずれか) と include_images (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Tavily URL Content Extraction API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Tavily の開発者アカウントまたは API key は必要ですか?

いいえ。Tavily URL Content Extraction は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Tavily の API アクセスを別途申請する必要はありません。

URLの入力形式は何ですか?

urls は、単一の文字列や検索クエリではなく、公開ページのアドレスを配列で送信してください。extract_depth は basic または advanced を受け付け、include_images は boolean です。上流の追加オプションをそのままコピーせず、このエンドポイントの現在のスキーマを確認してください。

抽出された結果には必ず raw_content が含まれると考えてよいですか?

いいえ。現在の参考サンプルには failed_results とともに URL、title、image フィールドが示されていますが、raw_content は示されていません。これはページ本文が利用できないことを意味しません。テキストフィールド、ページ全体の網羅性、または下流の RAG ワークフローに頼る前に、対象に対する承認済みのレスポンスを確認してください。

完了したリクエストで、すべての URL が抽出されたと証明できますか?

いいえ。文書化されたエンベロープは outputs[0].data で、参考資料では results と failed_results が説明されています。完了した実行や HTTP 成功だけでは、すべての URL から欲しいコンテンツが得られた証明にはなりません。レスポンスを確認し、欠落したフィールドは空テキストに変換せず不明のままにしてください。