Web Content
Web crawling, URL discovery and page extraction.
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.
- urlsrequired
The URL or URLs to extract content from. A single URL string and an array of URL strings are both accepted.
- Type: string
The URL or URLs to extract content from. A single URL string and an array of URL strings are both accepted.
- Type: integerchunks
_per _source min:1max:5Maximum number of relevant chunks returned per source. Available only when query is provided.
- Type: string enumextract
_depth Depth of the extraction process.
values- basic
- advanced
- Type: string enumformat
Format of the extracted web page content.
values- markdown
- text
- Type: booleaninclude
_favicon Include the favicon URL for each result.
- Type: booleaninclude
_images Include a list of images extracted from the URLs.
- Type: booleaninclude
_usage Include resource usage information in the response. This is not Felo billing information.
- Type: stringquery
User intent for reranking extracted content chunks.
- Type: number Format: floattimeoutmin:1max:60
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.
- Type: object200
Extraction results returned successfully.
- Type: array string[]failed
_results List of URLs that could not be processed.
- Type: stringrequest
_id Unique request identifier.
- Type: number Format: floatresponse
_time Time in seconds it took to complete the request.
- Type: array object[]results
- faviconType: string nullable
Favicon URL of the extracted content.
- imagesType: array string[]
Images extracted from the URL when include_images is true.
- rawType: string
_content Extracted raw content from the URL.
- titleType: string
Title of the extracted page.
- urlType: string
URL of the extracted content.
- Type: objectusage
- creditsType: integer
Resource units consumed by this request, not USD or Felo credits.
application/json - 400
The request could not be processed. Check the request parameters.
- 401
A valid Felo API key is required.
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
A request or spending limit has been reached.
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl --request POST https://openapi.felo.ai/v1/beta/tavily/extract \
--header "Authorization: Bearer ${FELO_API_KEY:?Set FELO_API_KEY}" \
--header 'Content-Type: application/json' \
--data '{"urls": ["https://example.com"], "extract_depth": "basic", "format": "text", "include_usage": true}'
{
"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"
}