Felo API PlatformFelo API Platform

데이터 API / Tavily / Extract

Tavily Extract

Extract readable content from one URL or an array of URLs. Select text or Markdown with format. Inspect both results and failed_results: a failed URL can be reported in an otherwise successful HTTP response. Set include_usage to receive resource usage information; usage.credits is not a Felo charge.

파라미터

경로, 쿼리, 헤더 파라미터가 없습니다.

요청 본문

  • urls필수

    The URL or URLs to extract content from. A single URL string and an array of URL strings are both accepted.

  • querystring선택

    User intent for reranking extracted content chunks.

  • chunks_per_sourceinteger선택

    Maximum number of relevant chunks returned per source. Available only when query is provided.

  • extract_depthstring선택

    허용 값: basic · advanced

    Depth of the extraction process.

  • include_imagesboolean선택

    Include a list of images extracted from the URLs.

  • include_faviconboolean선택

    Include the favicon URL for each result.

  • formatstring선택

    허용 값: markdown · text

    Format of the extracted web page content.

  • timeoutnumber선택

    Maximum time in seconds to wait for URL extraction. If omitted, default timeouts depend on extract_depth: 10 seconds for basic and 30 seconds for advanced.

  • include_usageboolean선택

    Include resource usage information in the response. This is not Felo billing information.

요청 예시

curl -X POST "https://openapi.felo.ai/v1/beta/tavily/extract" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "urls": {},
  "query": "<string>",
  "chunks_per_source": 0,
  "extract_depth": "<string>",
  "include_images": false,
  "include_favicon": false,
  "format": "<string>",
  "timeout": 0
}'

응답

응답 예시

{
  "results": [
    {
      "url": "https://example.com",
      "title": "Example Domain",
      "raw_content": "This domain is for use in documentation examples.",
      "images": []
    }
  ],
  "failed_results": [],
  "response_time": 0.5,
  "usage": {
    "credits": 1
  },
  "request_id": "example-extract-request"
}

응답 필드

  • resultsobject[]선택
  • urlstring선택

    URL of the extracted content.

  • titlestring선택

    Title of the extracted page.

  • raw_contentstring선택

    Extracted raw content from the URL.

  • imagesstring[]선택

    Images extracted from the URL when include_images is true.

  • favicon선택

    Favicon URL of the extracted content.

  • failed_resultsstring[]선택

    List of URLs that could not be processed.

  • response_timenumber선택

    Time in seconds it took to complete the request.

  • usageobject선택
  • creditsinteger선택

    Resource units consumed by this request, not USD or Felo credits.

  • request_idstring선택

    Unique request identifier.