Retrievers

URL Retriever

Get the content of URLs as Documents.

Category: Retrievers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: URLContentRetriever

Inputs#

FieldTypeRequiredDefaultWhat it does
URLsList of textNo{input}List of URLs to retrieve content from. Each can be a direct URL or variable reference.
From H1 if existsYes/NoNoOnStart from the H1 tag of the document if H1 exists.
Skip Last HeaderYes/NoNoOffSkip the last header and its content in the document.
Include MetadataTextNo—Include metadata in the output if available. Options: Author, Product, BreadcrumbList, VideoObject, BlogPosting, FAQPage, WebSite, opengraph
Export ContentTextNo—Content types to include in the output. Options: H1, H2, H3, H4, H5, H6, Paragraph
Load from pointerYes/NoNoOnLoad from the pointer best matching the input query in the document.
Max TokensNumberNo3000The maximum number of tokens in the output text.
StrategyTextNoInclude equal size from each documentsThe strategy to use for transforming the knowledge document to text. Options: Concat documents, fill from first up to tokens limit, Include equal size from each documents
Cache TTLTextNo2 weeksCache the content of the URLs for defined amount of time. Options: No cache, 5 minutes, 30 minutes, 1 hour, 12 hours, 1 day, 1 week, 2 weeks, 1 month, 3 months, 6 months, 1 year
Hide ResourcesYes/NoNoOffHide resources that were retrieved by the retriever.
Apply OCRYes/NoNoOffApply OCR to the document. Useful for documents containing images.
Page OffsetNumberNo0Skip the first N pages (PDF/DOCX/PPTX) before extracting content. Use with max_tokens to paginate through large documents. Has no effect on HTML or plain-text URLs.
Raw OutputYes/NoNoOffReturn raw documents instead of text. (Advanced)
Raw HTMLYes/NoNoOffReturn the raw HTML of each URL instead of parsed text. Overrides Raw Output and other extraction options.
Allowed DomainsTextNo(empty)Newline-separated list of allowed domains. Use wildcards (*) for subdomains.
Allowed URL PathsTextNo(empty)Newline-separated list of allowed URL paths. Use wildcards (*) for patterns.
Strict Whitelist ModeYes/NoNoOnWhen enabled, only URLs matching BOTH domain AND path restrictions are allowed.

Outputs#

OutputType
DocumentsAny
Document CountAny

Use as an agent tool#

Tool name: url_retriever

Fetch and scrape webpage content from one or more URLs. Sends HTTP requests to the given URLs, extracts the main page text (or raw HTML), and returns the result as documents. Use this for web scraping, crawling sites, reading article content, or retrieving text from any webpage. Pass urls as an array of URL strings.