Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Tavily Extract

Server:https://openapi.felo.ai
Client Libraries

Web Content

​

Web crawling, URL discovery and page extraction.

Web Content Operations

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.

Body
required
application/json
  • urls
    required

    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.

  • chunks_per_source
    Type: integer
    min:  
    1
    max:  
    5

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

  • extract_depth
    Type: string enum

    Depth of the extraction process.

    values
    • basic
    • advanced
  • format
    Type: string enum

    Format of the extracted web page content.

    values
    • markdown
    • text
  • include_favicon
    Type: boolean

    Include the favicon URL for each result.

  • include_images
    Type: boolean

    Include a list of images extracted from the URLs.

  • include_usage
    Type: boolean

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

  • query
    Type: string

    User intent for reranking extracted content chunks.

  • timeout
    Type: number Format: float
    min:  
    1
    max:  
    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.

Responses
  • 200
    Type: object

    Extraction results returned successfully.

    • failed_results
      Type: array string[]

      List of URLs that could not be processed.

    • request_id
      Type: string

      Unique request identifier.

    • response_time
      Type: number Format: float

      Time in seconds it took to complete the request.

    • results
      Type: array object[]
      • favicon
        Type: string nullable

        Favicon URL of the extracted content.

      • images
        Type: array string[]

        Images extracted from the URL when include_images is true.

      • raw_content
        Type: string

        Extracted raw content from the URL.

      • title
        Type: string

        Title of the extracted page.

      • url
        Type: string

        URL of the extracted content.

    • usage
      Type: object
      • credits
        Type: 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.

Request Example for post/v1/beta/tavily/extract
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"
}
Tavily Extract