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개

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

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

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.

더 살펴보기

관련 API

모든 API
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를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/tavily/extract에 POST 요청을 보내세요. 이 페이지의 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는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Tavily 개발자 계정이나 API 키가 필요한가요?

아니요. Tavily URL Content Extraction은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Tavily API 액세스를 별도로 신청할 필요는 없습니다.

URL 입력 형식은 무엇인가요?

urls는 단일 문자열이나 검색 쿼리가 아니라 공개 페이지 주소의 배열로 보내세요. extract_depth는 basic 또는 advanced를 허용하고, include_images는 boolean입니다. 추가 상위 옵션을 복사하지 말고 이 엔드포인트의 현재 스키마를 확인하세요.

추출된 모든 결과에 raw_content가 있다고 가정해도 되나요?

아니요. 현재 참고 샘플은 failed_results와 함께 URL, title, image 필드를 보여 주지만 raw_content는 시연하지 않습니다. 이는 페이지 텍스트를 사용할 수 없다는 뜻이 아닙니다. 텍스트 필드, 전체 페이지 범위 또는 downstream RAG 워크플로에 의존하기 전에 대상에 대한 승인된 응답을 확인하세요.

완료된 요청이면 모든 URL이 추출되었다는 뜻인가요?

아니요. 문서화된 응답 구조는 outputs[0].data이며, 참고 자료에는 results와 failed_results가 설명되어 있습니다. 완료된 실행이나 HTTP 성공만으로는 모든 URL이 원하는 콘텐츠를 생성했다는 증거가 되지 않습니다. 응답을 검토하고 누락된 필드는 빈 텍스트로 바꾸지 말고 알 수 없음으로 유지하세요.