C# API Reference
C# API Reference v1.1.4
Section titled “C# API Reference v1.1.4”Functions
Section titled “Functions”GenerateCitations()
Section titled “GenerateCitations()”Convert markdown links to numbered citations.
[Example](https://example.com) becomes Example[1]
with [1]: <https://example.com> in the reference list.
Images  are preserved unchanged.
Signature:
public static CitationResult GenerateCitations(string markdown)Example:
var result = GenerateCitations("value");Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Markdown |
string |
Yes | The markdown |
Returns: CitationResult
CreateEngine()
Section titled “CreateEngine()”Create a new crawl engine with the given configuration.
If config is null, uses CrawlConfig.default().
Returns an error if the configuration is invalid.
Signature:
public static CrawlEngineHandle CreateEngine(CrawlConfig? config = null)Example:
var result = CreateEngine(new CrawlConfig());Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Config |
CrawlConfig? |
No | The configuration options |
Returns: CrawlEngineHandle
Errors: Throws CrawlError.
Scrape()
Section titled “Scrape()”Scrape a single URL, returning extracted page data.
Signature:
public static async Task<ScrapeResult> ScrapeAsync(CrawlEngineHandle engine, string url)Example:
var result = await Scrape(new CrawlEngineHandle(), "value");Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Url |
string |
Yes | The URL to fetch |
Returns: ScrapeResult
Errors: Throws CrawlError.
Crawl()
Section titled “Crawl()”Crawl a website starting from url, following links up to the configured depth.
Signature:
public static async Task<CrawlResult> CrawlAsync(CrawlEngineHandle engine, string url)Example:
var result = await Crawl(new CrawlEngineHandle(), "value");Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Url |
string |
Yes | The URL to fetch |
Returns: CrawlResult
Errors: Throws CrawlError.
MapUrls()
Section titled “MapUrls()”Discover all pages on a website by following links and sitemaps.
Signature:
public static async Task<MapResult> MapUrlsAsync(CrawlEngineHandle engine, string url)Example:
var result = await MapUrls(new CrawlEngineHandle(), "value");Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Url |
string |
Yes | The URL to fetch |
Returns: MapResult
Errors: Throws CrawlError.
Interact()
Section titled “Interact()”Execute browser actions on a single page.
Signature:
public static async Task<InteractionResult> InteractAsync(CrawlEngineHandle engine, string url, List<PageAction> actions)Example:
var result = await Interact(new CrawlEngineHandle(), "value", new List<object>());Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Url |
string |
Yes | The URL to fetch |
Actions |
List<PageAction> |
Yes | The actions |
Returns: InteractionResult
Errors: Throws CrawlError.
BatchScrape()
Section titled “BatchScrape()”Scrape multiple URLs concurrently.
Signature:
public static async Task<BatchScrapeResults> BatchScrapeAsync(CrawlEngineHandle engine, List<string> urls)Example:
var result = await BatchScrape(new CrawlEngineHandle(), new List<object>());Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Urls |
List<string> |
Yes | The urls |
Returns: BatchScrapeResults
Errors: Throws CrawlError.
BatchCrawl()
Section titled “BatchCrawl()”Crawl multiple seed URLs concurrently, each following links to configured depth.
Signature:
public static async Task<BatchCrawlResults> BatchCrawlAsync(CrawlEngineHandle engine, List<string> urls)Example:
var result = await BatchCrawl(new CrawlEngineHandle(), new List<object>());Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
Engine |
CrawlEngineHandle |
Yes | The crawl engine handle |
Urls |
List<string> |
Yes | The urls |
Returns: BatchCrawlResults
Errors: Throws CrawlError.
ActionResult
Section titled “ActionResult”Result from a single page action execution.
| Field | Type | Default | Description |
|---|---|---|---|
ActionIndex |
nuint |
— | Zero-based index of the action in the sequence. |
ActionType |
string |
— | The type of action that was executed. |
Success |
bool |
— | Whether the action completed successfully. |
Data |
object? |
null |
Action-specific return data (screenshot bytes, JS return value, scraped HTML). |
Error |
string? |
null |
Error message if the action failed. |
ArticleMetadata
Section titled “ArticleMetadata”Article metadata extracted from article:* Open Graph tags.
| Field | Type | Default | Description |
|---|---|---|---|
PublishedTime |
string? |
null |
The article publication time. |
ModifiedTime |
string? |
null |
The article modification time. |
Author |
string? |
null |
The article author. |
Section |
string? |
null |
The article section. |
Tags |
List<string> |
new List<string>() |
The article tags. |
BatchCrawlResult
Section titled “BatchCrawlResult”Result from a single URL in a batch crawl operation.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The seed URL that was crawled. |
Result |
CrawlResult? |
null |
The crawl result, if successful. |
Error |
string? |
null |
The error message, if the crawl failed. |
BatchCrawlResults
Section titled “BatchCrawlResults”Aggregate result of a batch crawl, exposing per-URL results plus precomputed counts.
The counts are derived once at construction so every binding language can read them
as plain integer fields without re-iterating the results vector.
| Field | Type | Default | Description |
|---|---|---|---|
Results |
List<BatchCrawlResult> |
new List<BatchCrawlResult>() |
Per-URL crawl results, in the order seed URLs were submitted. |
TotalCount |
nuint |
— | Total number of seed URLs in the batch (equal to results.len()). |
CompletedCount |
nuint |
— | Number of seed URLs whose crawl succeeded (error is null). |
FailedCount |
nuint |
— | Number of seed URLs whose crawl failed (error is Some). |
BatchCrawlStreamRequest
Section titled “BatchCrawlStreamRequest”Request to begin a multi-URL streaming crawl.
Wraps a set of seed URLs for delivery through the streaming-adapter binding surface. Required as a struct because alef’s streaming adapter requires a named request type — primitives are not supported.
| Field | Type | Default | Description |
|---|---|---|---|
Urls |
List<string> |
new List<string>() |
The seed URLs to crawl. Each URL is followed independently up to the engine’s configured depth. |
BatchScrapeResult
Section titled “BatchScrapeResult”Result from a single URL in a batch scrape operation.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The URL that was scraped. |
Result |
ScrapeResult? |
null |
The scrape result, if successful. |
Error |
string? |
null |
The error message, if the scrape failed. |
BatchScrapeResults
Section titled “BatchScrapeResults”Aggregate result of a batch scrape, exposing per-URL results plus precomputed counts.
The counts are derived once at construction so every binding language can read them
as plain integer fields without re-iterating the results vector.
| Field | Type | Default | Description |
|---|---|---|---|
Results |
List<BatchScrapeResult> |
new List<BatchScrapeResult>() |
Per-URL scrape results, in the order URLs were submitted. |
TotalCount |
nuint |
— | Total number of URLs in the batch (equal to results.len()). |
CompletedCount |
nuint |
— | Number of URLs whose scrape succeeded (error is null). |
FailedCount |
nuint |
— | Number of URLs whose scrape failed (error is Some). |
BrowserConfig
Section titled “BrowserConfig”Browser fallback configuration.
| Field | Type | Default | Description |
|---|---|---|---|
Mode |
BrowserMode |
BrowserMode.Auto |
When to use the headless browser fallback. |
Backend |
BrowserBackend |
BrowserBackend.Chromiumoxide |
Browser backend used to render JavaScript-heavy pages. |
Endpoint |
string? |
null |
CDP WebSocket endpoint for connecting to an external browser instance. |
Timeout |
TimeSpan |
30000ms |
Timeout for browser page load and rendering (in milliseconds when serialized). |
Wait |
BrowserWait |
BrowserWait.NetworkIdle |
Wait strategy after browser navigation. |
WaitSelector |
string? |
null |
CSS selector to wait for when wait is Selector. |
ExtraWait |
TimeSpan? |
null |
Extra time to wait after the wait condition is met. |
Proxy |
ProxyConfig? |
null |
Proxy for browser fetches. Overrides CrawlConfig.proxy when set. Native backend supports http/https only (no SOCKS5). |
BlockUrlPatterns |
List<string> |
new List<string>() |
URL patterns to block before the network request fires. Supports * wildcards. Useful for skipping ads/analytics/large images. Honored by BrowserBackend.Native; chromiumoxide ignores this field today. |
EvalScript |
string? |
null |
JavaScript snippet evaluated after navigation completes. Scraping captures the native backend result in ScrapeResult.browser.eval_result. Interactions run this script before page actions on both browser backends but do not include the script result in InteractionResult. |
RobotsUserAgent |
string? |
null |
User-agent used when fetching robots.txt. Defaults to BrowserConfig.user_agent (or crawlberg’s default) if unset. Native only. |
CaptureNetworkEvents |
bool |
false |
Capture the full network event stream into the result. Default false (only the document event is captured). Native only. |
SessionAffinity |
bool |
true |
Enable session affinity: reuse chromiumoxide Pages for same-domain requests so cookies + fingerprint + solved challenges persist. Default: true. When false, each request gets a fresh Page. |
Methods
Section titled “Methods”CreateDefault()
Section titled “CreateDefault()”Signature:
public BrowserConfig CreateDefault()Example:
var result = BrowserConfig.CreateDefault();Returns: BrowserConfig
BrowserExtras
Section titled “BrowserExtras”Browser-specific extras populated when the native browser backend was used.
Available on ScrapeResult.browser when BrowserBackend.Native handled the request.
| Field | Type | Default | Description |
|---|---|---|---|
EvalResult |
object? |
null |
Return value of BrowserConfig.eval_script, if provided. |
NetworkEvents |
List<ResponseMeta> |
new List<ResponseMeta>() |
Network events captured during page navigation (only populated when BrowserConfig.capture_network_events is true). |
Cookies |
List<CookieInfo> |
new List<CookieInfo>() |
All non-expired cookies present in the browser’s cookie jar after navigation completes (includes both prior cookies and server Set-Cookie). |
CitationReference
Section titled “CitationReference”A single numbered reference in a citation list — produced by the citation
extractor when content uses inline [N]-style markers.
| Field | Type | Default | Description |
|---|---|---|---|
Index |
nuint |
— | 1-based reference number as it appears in the source text. |
Url |
string |
— | Resolved absolute URL for this reference. |
Text |
string |
— | Human-readable anchor text or title for the reference. |
CitationResult
Section titled “CitationResult”Result of citation conversion.
| Field | Type | Default | Description |
|---|---|---|---|
Content |
string |
— | Markdown with links replaced by numbered citations. |
References |
List<CitationReference> |
new List<CitationReference>() |
Numbered reference list: (index, url, text). |
ContentConfig
Section titled “ContentConfig”Content extraction and conversion configuration.
Controls how HTML is converted to the output format. Uses html-to-markdown-rs as the conversion engine for all formats (markdown, plain text, djot).
| Field | Type | Default | Description |
|---|---|---|---|
OutputFormat |
string |
"markdown" |
Output format: "markdown" (default), "plain", "djot". |
PreprocessingPreset |
string |
"standard" |
Preprocessing aggressiveness: "minimal", "standard" (default), "aggressive". - Minimal: only scripts/styles removed. - Standard: also removes nav, nav-hinted headers/footers/asides, forms. - Aggressive: removes all footers/asides unconditionally. |
RemoveNavigation |
bool |
true |
Remove navigation elements (nav, breadcrumbs, menus). Default: true. |
RemoveForms |
bool |
true |
Remove form elements. Default: true. |
StripTags |
List<string> |
new List<string>() |
HTML tag names to strip (render children only, remove the tag wrapper). Default: \["noscript"\]. |
PreserveTags |
List<string> |
new List<string>() |
HTML tag names to preserve as raw HTML in output. |
ExcludeSelectors |
List<string> |
new List<string>() |
CSS selectors for elements to exclude entirely (element + all content). Unlike strip_tags (which removes the wrapper but keeps children), excluded elements and all descendants are dropped. Supports CSS selectors: .class, #id, \[attribute\], compound selectors. Example: \[".cookie-banner", "#ad-container", "\[role='complementary'\]"\] |
SkipImages |
bool |
false |
Skip image elements in output. Default: false. |
MaxDepth |
nuint? |
null |
Max DOM traversal depth. Prevents stack overflow on deeply nested HTML. |
Wrap |
bool |
false |
Enable line wrapping. Default: false. |
WrapWidth |
nuint |
80 |
Wrap width when wrap is enabled. Default: 80. |
IncludeDocumentStructure |
bool |
true |
Include document structure tree in output. Default: true. |
Methods
Section titled “Methods”CreateDefault()
Section titled “CreateDefault()”Signature:
public ContentConfig CreateDefault()Example:
var result = ContentConfig.CreateDefault();Returns: ContentConfig
CookieInfo
Section titled “CookieInfo”Information about an HTTP cookie received from a response.
| Field | Type | Default | Description |
|---|---|---|---|
Name |
string |
— | The cookie name. |
Value |
string |
— | The cookie value. |
Domain |
string? |
null |
The cookie domain, if specified. |
Path |
string? |
null |
The cookie path, if specified. |
CrawlConfig
Section titled “CrawlConfig”Configuration for crawl, scrape, and map operations.
| Field | Type | Default | Description |
|---|---|---|---|
MaxDepth |
nuint? |
null |
Maximum crawl depth (number of link hops from the start URL). |
MaxPages |
nuint? |
null |
Maximum number of pages to crawl. |
MaxLinksPerPage |
nuint? |
null |
Maximum links enqueued from a single page. Defaults to 10000. Bounds the work one hostile or pathological page can create; links past the cap are dropped and a warning is logged. |
MaxConcurrent |
nuint? |
null |
Maximum number of concurrent requests. |
RespectRobotsTxt |
bool |
false |
Whether to respect robots.txt directives. |
SoftHttpErrors |
bool |
false |
When true, HTTP-level error responses (404 NotFound, 403 Forbidden, WAF blocks) are surfaced as ScrapeResult records with the matching status_code rather than raised as CrawlError. Default false preserves the historical throw-on-error contract for direct fetches. Independently of this flag, 404s reached at the end of a redirect chain are always surfaced softly — the user opted into redirect-following, so receiving a 404 there is part of the normal flow rather than an unexpected error. |
UserAgent |
string? |
null |
Custom user-agent string. |
StayOnDomain |
bool |
false |
Whether to restrict crawling to the same domain. |
AllowSubdomains |
bool |
false |
Whether to allow subdomains when stay_on_domain is true. |
IncludePaths |
List<string> |
new List<string>() |
Regex patterns for paths to include during crawling. |
ExcludePaths |
List<string> |
new List<string>() |
Regex patterns for paths to exclude during crawling. |
CustomHeaders |
Dictionary<string, string> |
new Dictionary<string, string>() |
Custom HTTP headers to send with each request. |
RequestTimeout |
TimeSpan |
30000ms |
Timeout for individual HTTP requests (in milliseconds when serialized). |
RateLimitMs |
ulong? |
null |
Per-domain rate limit in milliseconds. When set, enforces a minimum delay between requests to the same domain. Defaults to 200ms when null. |
MaxRedirects |
nuint |
10 |
Maximum number of redirects to follow. |
RetryCount |
nuint |
0 |
Number of retry attempts for failed requests. |
RetryCodes |
List<ushort> |
new List<ushort>() |
HTTP status codes that should trigger a retry. |
CookiesEnabled |
bool |
false |
Whether to enable cookie handling. |
Auth |
AuthConfig? |
null |
Authentication configuration. |
MaxBodySize |
nuint? |
null |
Maximum response body size in bytes. |
RemoveTags |
List<string> |
new List<string>() |
CSS selectors for tags to remove from HTML before processing. |
Content |
ContentConfig |
— | Content extraction and conversion configuration. |
MapLimit |
nuint? |
null |
Maximum number of URLs to return from a map operation. |
MapSearch |
string? |
null |
Search filter for map results (case-insensitive substring match on URLs). |
DownloadAssets |
bool |
false |
Whether to download assets (CSS, JS, images, etc.) from the page. |
AssetTypes |
List<AssetCategory> |
new List<AssetCategory>() |
Filter for asset categories to download. |
MaxAssetSize |
nuint? |
null |
Maximum size in bytes for individual asset downloads. |
Browser |
BrowserConfig |
— | Browser configuration. |
Proxy |
ProxyConfig? |
null |
Proxy configuration for HTTP requests. |
UserAgents |
List<string> |
new List<string>() |
List of user-agent strings for rotation. If non-empty, overrides user_agent. |
CaptureScreenshot |
bool |
false |
Whether to capture a screenshot when using the browser. Only supported by scrape() with BrowserBackend.Chromiumoxide and BrowserMode.Always or Stealth. A screenshot is 100–500 KB of PNG per page, so crawl() does not carry screenshots in CrawlPageResult/CrawlResult at all — a multi-thousand-page crawl holding one per page in memory is not a safe default. Setting this with any other configuration (a different backend, BrowserMode.Auto/Never, or during crawl()) has no effect and logs a warning rather than silently doing nothing. |
FollowDocumentUrls |
bool |
false |
Re-enqueue discovered LinkType.Document URLs into the crawl frontier so the crawl follows links from document pages (PDFs, etc.) as it would from HTML pages. Default: false (documents terminate at materialisation). |
DocumentUrlDepth |
uint? |
null |
Maximum document-depth (from the seed URL through document links only) when follow_document_urls is true. null means inherit max_depth. Independent of max_depth: a document URL is enqueued only if BOTH the outer max_depth and (if set) document_url_depth permit it. |
DownloadDocuments |
bool |
true |
Whether to download non-HTML documents (PDF, DOCX, images, code, etc.) instead of skipping them. Defaults to true — unlike download_assets and capture_screenshot, which default to false. |
DocumentMaxSize |
nuint? |
52428800 |
Maximum size in bytes for document downloads. Defaults to 50 MB. |
DocumentMimeTypes |
List<string> |
new List<string>() |
Allowlist of MIME types to download. If empty, uses built-in defaults. |
DocumentOutputDir |
string? |
null |
Directory to stream downloaded document bytes into instead of holding them in memory on DownloadedDocument.content. When set, content is left empty and DownloadedDocument.content_path is populated with <dir>/<content_hash>.<ext>. null (default) preserves today’s in-memory-only behavior. Has no effect on wasm32, which has no filesystem — use document_content_encoding there instead. |
DocumentContentEncoding |
DocumentContentEncoding? |
null |
Opt-in encoding that duplicates DownloadedDocument.content into a serializable field for language bindings that need the bytes in-memory (content itself is alef(skip)ed). null (default) means no encoding is produced. Independent of document_output_dir — set both to get a file on disk and an in-memory copy. |
WarcOutput |
string? |
null |
Path to write WARC output. If null, WARC output is disabled. |
BrowserProfile |
string? |
null |
Named browser profile for persistent sessions (cookies, localStorage). Chromiumoxide backend only. The native backend runs an in-process JavaScript engine with no Chrome process and therefore no profile directory, so this is ignored there and logs a warning. It is also ignored — with a warning — when a shared browser pool is in use (the pool launches before any per-crawl config exists) or when connecting to an external CDP endpoint whose process crawlberg does not own. |
SaveBrowserProfile |
bool |
false |
Whether to save changes back to the browser profile on exit. |
Ssrf |
SsrfPolicy |
— | SSRF policy for outbound network requests. Default: deny private networks, allow http/https only, max 5 redirects. deny_private, allowlist and max_redirects are exposed to all language bindings. scheme_allowlist stays Rust-only — see SsrfPolicy. wasm32 (including Node.js): deny_private does not stop hostname-based requests. There is no DNS resolution on this target, so only a literal IP host is checked against the policy — a domain name is always permitted, regardless of deny_private. Under Node, where fetch enforces no CORS, this means a service embedding the wasm binding can be driven to internal hosts by domain name even with deny_private = true. Enforce egress restrictions at the network layer for that deployment target; do not rely on this field. See crawlberg.net.validate_url. |
SsrfDenyPrivateExplicit |
bool? |
null |
Pins SsrfPolicy.deny_private to a caller-chosen value, bypassing the CRAWLBERG_ALLOW_PRIVATE_NETWORK operator override entirely for this config. ssrf.deny_private is a plain, always-serialized bool: several alef-generated bindings construct SsrfPolicy.default() (hardcoding deny_private: true) whenever their caller never touches SSRF settings at all, so true on that field alone cannot distinguish “the caller wants private networks denied” from “the binding’s own structural default landed on true”. The environment variable exists precisely to resolve that ambiguity in the common case by treating any true as inconclusive and deferring to the operator. Set this field when that default-deferral is wrong for your call — e.g. a test that must prove deny_private: true still denies even while the operator has set CRAWLBERG_ALLOW_PRIVATE_NETWORK suite-wide for every other call. null (default) preserves today’s behavior: the environment variable may still flip ssrf.deny_private to false. Some(value) pins ssrf.deny_private to value and the environment variable is not consulted for this config. |
Methods
Section titled “Methods”CreateDefault()
Section titled “CreateDefault()”Signature:
public CrawlConfig CreateDefault()Example:
var result = CrawlConfig.CreateDefault();Returns: CrawlConfig
Validate()
Section titled “Validate()”Validate the configuration, returning an error if any values are invalid.
Signature:
public void Validate()Example:
instance.Validate();Returns: No return value.
Errors: Throws CrawlError.
CrawlEngineHandle
Section titled “CrawlEngineHandle”Opaque handle to a configured crawl engine.
Constructed via create_engine with an optional CrawlConfig.
Default implementations for all pluggable components are used internally.
CrawlPageResult
Section titled “CrawlPageResult”The result of crawling a single page during a crawl operation.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The original URL of the page. |
NormalizedUrl |
string |
— | The normalized URL of the page. |
StatusCode |
ushort |
— | The HTTP status code of the response. |
ContentType |
string |
— | The Content-Type header value. |
Html |
string |
— | The HTML body of the response. |
BodySize |
nuint |
— | The size of the response body in bytes. |
Metadata |
PageMetadata |
— | Extracted metadata from the page. |
Links |
List<LinkInfo> |
new List<LinkInfo>() |
Links found on the page. |
Images |
List<ImageInfo> |
new List<ImageInfo>() |
Images found on the page. |
Feeds |
List<FeedInfo> |
new List<FeedInfo>() |
Feed links found on the page. |
JsonLd |
List<JsonLdEntry> |
new List<JsonLdEntry>() |
JSON-LD entries found on the page. |
Depth |
nuint |
— | The depth of this page from the start URL. |
StayedOnDomain |
bool |
— | Whether this page is on the same domain as the start URL. |
WasSkipped |
bool |
— | Whether this page was skipped (binary or PDF content). |
IsPdf |
bool |
— | Whether the content is a PDF. |
DetectedCharset |
string? |
null |
The detected character set encoding. |
Markdown |
MarkdownResult? |
null |
Markdown conversion of the page content. |
ExtractedData |
object? |
null |
Structured data extracted by LLM. Populated when extraction is configured. |
ExtractionMeta |
ExtractionMeta? |
null |
Metadata about the LLM extraction pass (cost, tokens, model). |
DownloadedDocument |
DownloadedDocument? |
null |
Downloaded non-HTML document (PDF, DOCX, image, code, etc.). |
BrowserUsed |
bool |
— | Whether the browser fallback was used to fetch this page. |
CrawlResult
Section titled “CrawlResult”The result of a multi-page crawl operation.
| Field | Type | Default | Description |
|---|---|---|---|
Pages |
List<CrawlPageResult> |
new List<CrawlPageResult>() |
The list of crawled pages. |
FinalUrl |
string |
— | The final URL after following redirects. |
RedirectCount |
nuint |
— | The number of redirects followed. |
WasSkipped |
bool |
— | Whether any page was skipped during crawling. |
Error |
string? |
null |
An error message, if the crawl encountered an issue. |
Cookies |
List<CookieInfo> |
new List<CookieInfo>() |
Cookies collected during the crawl. |
StayedOnDomain |
bool |
— | Whether all crawled pages stayed on the same domain as the start URL. |
BrowserUsed |
bool |
— | Whether the browser fallback was used for any page in this crawl. |
Methods
Section titled “Methods”UniqueNormalizedUrls()
Section titled “UniqueNormalizedUrls()”Returns the count of unique normalized URLs encountered during crawling.
Computed from pages (not the deprecated normalized_urls field) so it
is correct across every binding that reconstructs CrawlResult from
pages alone. In streaming mode pages is empty, so this returns 0 on
the opaque-handle (C/Go/C#/Zig/Dart) path where it previously counted
streamed pages — a known, accepted cost of making the other ten binding
families correct.
Signature:
public nuint UniqueNormalizedUrls()Example:
var result = instance.UniqueNormalizedUrls();Returns: nuint
CrawlStreamRequest
Section titled “CrawlStreamRequest”Request to begin a single-URL streaming crawl.
Wraps a single seed URL for delivery through the streaming-adapter binding surface. Required as a struct because alef’s streaming adapter requires a named request type — primitives are not supported.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The seed URL to crawl. |
DownloadedAsset
Section titled “DownloadedAsset”A downloaded asset from a page.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The original URL of the asset. |
ContentHash |
string |
— | The SHA-256 content hash of the asset. |
MimeType |
string? |
null |
The MIME type from the Content-Type header. |
Size |
nuint |
— | The size of the asset in bytes. |
AssetCategory |
AssetCategory |
AssetCategory.Image |
The category of the asset. |
HtmlTag |
string? |
null |
The HTML tag that referenced this asset (e.g., “link”, “script”, “img”). |
DownloadedDocument
Section titled “DownloadedDocument”A downloaded non-HTML document (PDF, DOCX, image, code file, etc.).
When the crawler encounters non-HTML content and download_documents is
enabled, it downloads the raw bytes and populates this struct instead of
skipping the resource.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The URL the document was fetched from. |
MimeType |
string |
— | The MIME type from the Content-Type header. |
Size |
nuint |
— | Size of the document in bytes. |
Filename |
string? |
null |
Filename extracted from Content-Disposition or URL path. |
ContentHash |
string |
— | SHA-256 hex digest of the content. |
Headers |
Dictionary<string, string> |
new Dictionary<string, string>() |
Selected response headers. |
Truncated |
bool |
— | True when content (or the file at content_path) was truncated to document_max_size; size still reports the original, untruncated length. |
ContentPath |
string? |
null |
Filesystem path the document was streamed to when document_output_dir was set. content is empty in memory when this is populated. |
ContentBase64 |
string? |
null |
Base64-encoded copy of content, populated only when document_content_encoding was set to Base64. |
ExtractionMeta
Section titled “ExtractionMeta”Metadata about an LLM extraction pass.
| Field | Type | Default | Description |
|---|---|---|---|
Cost |
double? |
null |
Estimated cost of the LLM call in USD. |
PromptTokens |
ulong? |
null |
Number of prompt (input) tokens consumed. |
CompletionTokens |
ulong? |
null |
Number of completion (output) tokens generated. |
Model |
string? |
null |
The model identifier used for extraction. |
ChunksProcessed |
nuint |
— | Number of content chunks sent to the LLM. |
FaviconInfo
Section titled “FaviconInfo”Information about a favicon or icon link.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The icon URL. |
Rel |
string |
— | The rel attribute (e.g., “icon”, “apple-touch-icon”). |
Sizes |
string? |
null |
The sizes attribute, if present. |
MimeType |
string? |
null |
The MIME type, if present. |
FeedInfo
Section titled “FeedInfo”Information about a feed link found on a page.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The feed URL. |
Title |
string? |
null |
The feed title, if present. |
FeedType |
FeedType |
FeedType.Rss |
The type of feed. |
HeadingInfo
Section titled “HeadingInfo”A heading element extracted from the page.
| Field | Type | Default | Description |
|---|---|---|---|
Level |
byte |
— | The heading level (1-6). |
Text |
string |
— | The heading text content. |
HreflangEntry
Section titled “HreflangEntry”An hreflang alternate link entry.
| Field | Type | Default | Description |
|---|---|---|---|
Lang |
string |
— | The language code (e.g., “en”, “fr”, “x-default”). |
Url |
string |
— | The URL for this language variant. |
ImageInfo
Section titled “ImageInfo”Information about an image found on a page.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The image URL. |
Alt |
string? |
null |
The alt text, if present. |
Width |
uint? |
null |
The width attribute, if present and parseable. |
Height |
uint? |
null |
The height attribute, if present and parseable. |
Source |
ImageSource |
ImageSource.Img |
The source of the image reference. |
InteractionResult
Section titled “InteractionResult”Result of executing a sequence of page interaction actions.
| Field | Type | Default | Description |
|---|---|---|---|
ActionResults |
List<ActionResult> |
new List<ActionResult>() |
Results from each executed action. |
FinalHtml |
string |
— | Final page HTML after all actions completed. |
FinalUrl |
string |
— | Final page URL (may have changed due to navigation). |
ScreenshotBase64 |
string? |
null |
Base64-encoded PNG screenshot taken after all actions. Populated only when a PageAction.Screenshot action actually ran, so callers that never request a screenshot do not pay the encoding cost. |
JsonLdEntry
Section titled “JsonLdEntry”A JSON-LD structured data entry found on a page.
| Field | Type | Default | Description |
|---|---|---|---|
SchemaType |
string |
— | The @type value from the JSON-LD object. |
Name |
string? |
null |
The name value, if present. |
Raw |
string |
— | The raw JSON-LD string. |
LinkInfo
Section titled “LinkInfo”Information about a link found on a page.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The resolved URL of the link. |
Text |
string |
— | The visible text of the link. |
LinkType |
LinkType |
LinkType.Internal |
The classification of the link. |
Rel |
string? |
null |
The rel attribute value, if present. |
Nofollow |
bool |
— | Whether the link has rel="nofollow". |
MapResult
Section titled “MapResult”The result of a map operation, containing discovered URLs.
| Field | Type | Default | Description |
|---|---|---|---|
Urls |
List<SitemapUrl> |
new List<SitemapUrl>() |
The list of discovered URLs. |
MarkdownResult
Section titled “MarkdownResult”Rich markdown conversion result from HTML processing.
| Field | Type | Default | Description |
|---|---|---|---|
Content |
string |
— | Converted markdown text. |
DocumentStructure |
object? |
null |
Structured document tree with semantic nodes. |
Tables |
List<object> |
new List<object>() |
Extracted tables with structured cell data. |
Warnings |
List<string> |
new List<string>() |
Non-fatal processing warnings. |
Citations |
bool |
— | Whether citation conversion was applied and produced at least one reference. true when the markdown contained inline links that were converted to numbered citation references. The converted content (with \[N\] markers) is available in content; the full reference list is accessible via generate_citations if needed separately. |
FitContent |
string? |
null |
Content-filtered markdown optimized for LLM consumption. |
PageMetadata
Section titled “PageMetadata”Metadata extracted from an HTML page’s <meta> tags and <title> element.
| Field | Type | Default | Description |
|---|---|---|---|
Title |
string? |
null |
The page title from the <title> element. |
Description |
string? |
null |
The meta description. |
CanonicalUrl |
string? |
null |
The canonical URL from <link rel="canonical">. |
Keywords |
string? |
null |
Keywords from <meta name="keywords">. |
Author |
string? |
null |
Author from <meta name="author">. |
Viewport |
string? |
null |
Viewport content from <meta name="viewport">. |
ThemeColor |
string? |
null |
Theme color from <meta name="theme-color">. |
Generator |
string? |
null |
Generator from <meta name="generator">. |
Robots |
string? |
null |
Robots content from <meta name="robots">. |
HtmlLang |
string? |
null |
The lang attribute from the <html> element. |
HtmlDir |
string? |
null |
The dir attribute from the <html> element. |
OgTitle |
string? |
null |
Open Graph title. |
OgType |
string? |
null |
Open Graph type. |
OgImage |
string? |
null |
Open Graph image URL. |
OgDescription |
string? |
null |
Open Graph description. |
OgUrl |
string? |
null |
Open Graph URL. |
OgSiteName |
string? |
null |
Open Graph site name. |
OgLocale |
string? |
null |
Open Graph locale. |
OgVideo |
string? |
null |
Open Graph video URL. |
OgAudio |
string? |
null |
Open Graph audio URL. |
OgLocaleAlternates |
List<string>? |
new List<string>() |
Open Graph locale alternates. |
TwitterCard |
string? |
null |
Twitter card type. |
TwitterTitle |
string? |
null |
Twitter title. |
TwitterDescription |
string? |
null |
Twitter description. |
TwitterImage |
string? |
null |
Twitter image URL. |
TwitterSite |
string? |
null |
Twitter site handle. |
TwitterCreator |
string? |
null |
Twitter creator handle. |
DcTitle |
string? |
null |
Dublin Core title. |
DcCreator |
string? |
null |
Dublin Core creator. |
DcSubject |
string? |
null |
Dublin Core subject. |
DcDescription |
string? |
null |
Dublin Core description. |
DcPublisher |
string? |
null |
Dublin Core publisher. |
DcDate |
string? |
null |
Dublin Core date. |
DcType |
string? |
null |
Dublin Core type. |
DcFormat |
string? |
null |
Dublin Core format. |
DcIdentifier |
string? |
null |
Dublin Core identifier. |
DcLanguage |
string? |
null |
Dublin Core language. |
DcRights |
string? |
null |
Dublin Core rights. |
Article |
ArticleMetadata? |
null |
Article metadata from article:* Open Graph tags. |
Hreflangs |
List<HreflangEntry>? |
new List<HreflangEntry>() |
Hreflang alternate links. |
Favicons |
List<FaviconInfo>? |
new List<FaviconInfo>() |
Favicon and icon links. |
Headings |
List<HeadingInfo>? |
new List<HeadingInfo>() |
Heading elements (h1-h6). |
WordCount |
nuint? |
null |
Computed word count of the page body text. |
ProxyConfig
Section titled “ProxyConfig”Proxy configuration for HTTP requests.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | Proxy URL (e.g. “http://proxy:8080", “socks5://proxy:1080”). |
Username |
string? |
null |
Optional username for proxy authentication. |
Password |
string? |
null |
Optional password for proxy authentication. |
ResponseMeta
Section titled “ResponseMeta”Response metadata extracted from HTTP headers.
| Field | Type | Default | Description |
|---|---|---|---|
Etag |
string? |
null |
The ETag header value. |
LastModified |
string? |
null |
The Last-Modified header value. |
CacheControl |
string? |
null |
The Cache-Control header value. |
Server |
string? |
null |
The Server header value. |
XPoweredBy |
string? |
null |
The X-Powered-By header value. |
ContentLanguage |
string? |
null |
The Content-Language header value. |
ContentEncoding |
string? |
null |
The Content-Encoding header value. |
ScrapeResult
Section titled “ScrapeResult”The result of a single-page scrape operation.
| Field | Type | Default | Description |
|---|---|---|---|
StatusCode |
ushort |
— | The HTTP status code of the response. |
FinalUrl |
string |
— | The final URL after following all redirects. |
ContentType |
string |
— | The Content-Type header value. |
Html |
string |
— | The HTML body of the response. |
BodySize |
nuint |
— | The size of the response body in bytes. |
Metadata |
PageMetadata |
— | Extracted metadata from the page. |
Links |
List<LinkInfo> |
new List<LinkInfo>() |
Links found on the page. |
Images |
List<ImageInfo> |
new List<ImageInfo>() |
Images found on the page. |
Feeds |
List<FeedInfo> |
new List<FeedInfo>() |
Feed links found on the page. |
JsonLd |
List<JsonLdEntry> |
new List<JsonLdEntry>() |
JSON-LD entries found on the page. |
IsAllowed |
bool |
— | Whether the URL is allowed by robots.txt. |
CrawlDelay |
ulong? |
null |
The crawl delay from robots.txt, in seconds. |
NoindexDetected |
bool |
— | Whether a noindex directive was detected. |
NofollowDetected |
bool |
— | Whether a nofollow directive was detected. |
XRobotsTag |
string? |
null |
The X-Robots-Tag header value, if present. |
IsPdf |
bool |
— | Whether the content is a PDF. |
WasSkipped |
bool |
— | Whether the page was skipped (binary or PDF content). |
DetectedCharset |
string? |
null |
The detected character set encoding. |
AuthHeaderSent |
bool |
— | Whether an authentication header was sent with the request. |
ResponseMeta |
ResponseMeta? |
null |
Response metadata extracted from HTTP headers. |
Assets |
List<DownloadedAsset> |
new List<DownloadedAsset>() |
Downloaded assets from the page. |
JsRenderHint |
bool |
— | Whether the page content suggests JavaScript rendering is needed. |
BrowserUsed |
bool |
— | Whether the browser fallback was used to fetch this page. |
Markdown |
MarkdownResult? |
null |
Markdown conversion of the page content. |
ExtractedData |
object? |
null |
Structured data extracted by LLM. Populated when extraction is configured. |
ExtractionMeta |
ExtractionMeta? |
null |
Metadata about the LLM extraction pass (cost, tokens, model). |
ScreenshotBase64 |
string? |
null |
Base64-encoded PNG screenshot of the page. Populated only when CrawlConfig.capture_screenshot was enabled for this request, so callers that never requested a screenshot do not pay the encoding cost. |
DownloadedDocument |
DownloadedDocument? |
null |
Downloaded non-HTML document (PDF, DOCX, image, code, etc.). |
Browser |
BrowserExtras? |
null |
Browser-specific extras (eval result, network events, cookies). Only populated when BrowserBackend.Native was used for this request. |
SitemapUrl
Section titled “SitemapUrl”A URL entry from a sitemap.
| Field | Type | Default | Description |
|---|---|---|---|
Url |
string |
— | The URL. |
Lastmod |
string? |
null |
The last modification date, if present. |
Changefreq |
string? |
null |
The change frequency, if present. |
Priority |
string? |
null |
The priority, if present. |
SsrfPolicy
Section titled “SsrfPolicy”SSRF policy configuration.
| Field | Type | Default | Description |
|---|---|---|---|
DenyPrivate |
bool |
true |
If true, reject URLs that resolve to private/metadata IP ranges. |
Allowlist |
List<HostMatcher> |
new List<HostMatcher>() |
Hostnames and IP ranges permitted regardless of deny_private. The allowlist is an override of deny_private, not an intersection with it. Precedence, in order: 1. deny_private == false permits everything; the allowlist is not consulted. 2. A hostname matching an Exact or Suffix entry is permitted immediately, before DNS resolution — so the deny-list is never applied to it. This trusts the host string: a name that resolves into private space is still permitted. 3. A literal or resolved IP inside a Cidr entry is permitted even though it is in the default deny-list. 4. Otherwise the default deny-list decides. An empty allowlist therefore denies nothing by itself — it simply leaves deny_private and the deny-list in sole control. |
MaxRedirects |
byte |
5 |
Maximum number of HTTP redirects to follow during validation. |
Methods
Section titled “Methods”CreateDefault()
Section titled “CreateDefault()”Signature:
public SsrfPolicy CreateDefault()Example:
var result = SsrfPolicy.CreateDefault();Returns: SsrfPolicy
FromEnv()
Section titled “FromEnv()”Create a policy from environment variables.
On native platforms, reads CRAWLBERG_ALLOW_PRIVATE_NETWORK — if set to “1” or “true”
(case-insensitive), sets deny_private = false. Otherwise, defaults to deny_private = true.
On wasm32 targets (browser/Node.js), environment variables are not accessible to the
compiled module. Defaults to deny_private = false because:
- Outbound requests in a browser go through the fetch API, which enforces its own network policies.
- Rust-side SSRF checking is unenforceable and redundant in a wasm32 context.
- For testing and localhost access, the host’s network sandbox is the enforcing boundary.
Node.js caveat: deny_private (whatever its value) has no effect on hostname-based
requests under wasm32. There is no DNS resolution on this target, so validate_url
only ever checks a literal IP host; a domain name falls straight through to Ok(()). In a
browser this is covered by same-origin/CORS. Node’s fetch enforces no CORS, so a Node
service embedding this wasm module can be driven to internal hosts by domain name even
though deny_private = true. Do not rely on this policy to stop that in Node — enforce
egress restrictions (network policy, firewall, proxy allowlist) outside the process.
Signature:
public SsrfPolicy FromEnv()Example:
var result = SsrfPolicy.FromEnv();Returns: SsrfPolicy
BrowserMode
Section titled “BrowserMode”When to use the headless browser fallback.
| Value | Description |
|---|---|
Auto |
Automatically detect when JS rendering is needed and fall back to browser. |
Always |
Always use the browser for every request. |
Never |
Never use the browser fallback. |
Stealth |
Always use the browser with all stealth surfaces enabled. Behaves like Always for escalation purposes (every request is routed through the browser tier), but additionally enables: - browser JavaScript stealth patches - native-backend TLS fingerprint spoofing - stealth-aware default user-agent when no explicit UA is set - 1920×1080 viewport override Use this instead of setting the now-removed BrowserConfig.stealth boolean field. |
BrowserWait
Section titled “BrowserWait”Wait strategy for browser page rendering.
| Value | Description |
|---|---|
NetworkIdle |
Wait until network activity is idle. |
Selector |
Wait for a specific CSS selector to appear in the DOM. |
Fixed |
Wait for a fixed duration after navigation. |
BrowserBackend
Section titled “BrowserBackend”Browser backend used for JavaScript rendering.
| Value | Description |
|---|---|
Chromiumoxide |
Existing Chromium/CDP backend powered by chromiumoxide. |
Native |
Crawlberg-owned native browser backend derived from Obscura. |
DocumentContentEncoding
Section titled “DocumentContentEncoding”Opt-in encoding applied to a downloaded document’s bytes for callers who need the content available in a serializable field rather than reading it from disk.
null (the CrawlConfig.document_content_encoding default) produces neither — unlike
screenshots, base64-encoding a document by default would duplicate an already
up-to-document_max_size buffer (50 MB default) in memory per document.
| Value | Description |
|---|---|
Base64 |
Populate DownloadedDocument.content_base64 with a base64-encoded copy. |
AuthConfig
Section titled “AuthConfig”Authentication configuration.
| Value | Description |
|---|---|
Basic |
HTTP Basic authentication. — Fields: Username: string, Password: string |
Bearer |
Bearer token authentication. — Fields: Token: string |
Header |
Custom authentication header. — Fields: Name: string, Value: string |
LinkType
Section titled “LinkType”The classification of a link.
| Value | Description |
|---|---|
Internal |
A link to the same domain. |
External |
A link to a different domain. |
Anchor |
A fragment-only link (e.g., #section). |
Document |
A link to a downloadable document (PDF, DOC, etc.). |
ImageSource
Section titled “ImageSource”The source of an image reference.
| Value | Description |
|---|---|
Img |
An <img> tag. |
PictureSource |
A <source> tag inside <picture>. |
OgImage |
An og:image meta tag. |
TwitterImage |
A twitter:image meta tag. |
FeedType
Section titled “FeedType”The type of a feed (RSS, Atom, or JSON Feed).
| Value | Description |
|---|---|
Rss |
RSS feed. |
Atom |
Atom feed. |
JsonFeed |
JSON Feed. |
AssetCategory
Section titled “AssetCategory”The category of a downloaded asset.
| Value | Description |
|---|---|
Document |
A document file (PDF, DOC, etc.). |
Image |
An image file. |
Audio |
An audio file. |
Video |
A video file. |
Font |
A font file. |
Stylesheet |
A CSS stylesheet. |
Script |
A JavaScript file. |
Archive |
An archive file (ZIP, TAR, etc.). |
Data |
A data file (JSON, XML, CSV, etc.). |
Other |
An unrecognized asset type. |
CrawlEvent
Section titled “CrawlEvent”An event emitted during a streaming crawl operation.
Not available on wasm32 targets — streaming requires native concurrency
primitives (tokio channels, JoinSet) that are not supported on wasm32.
Delivered to bindings through each target’s native streaming idiom.
| Value | Description |
|---|---|
Page |
A single page has been crawled. — Fields: Result: CrawlPageResult |
Error |
An error occurred while crawling a URL. — Fields: Url: string, Error: string |
Complete |
The crawl has completed. — Fields: PagesCrawled: nuint |
PageAction
Section titled “PageAction”A single page interaction action.
Actions are serialized with a type tag using camelCase naming,
except ExecuteJs which is explicitly renamed to "executeJs".
| Value | Description |
|---|---|
Click |
Click on an element matching the given CSS selector. — Fields: Selector: string |
TypeText |
Type text into an element matching the given CSS selector. — Fields: Selector: string, Text: string |
Press |
Press a keyboard key (e.g. “Enter”, “Tab”, “Escape”). — Fields: Key: string |
Scroll |
Scroll the page or a specific element. — Fields: Direction: ScrollDirection, Selector: string, Amount: long |
Wait |
Wait for a duration or for an element to appear. — Fields: Milliseconds: long, Selector: string |
Screenshot |
Take a screenshot of the current page. — Fields: FullPage: bool |
ExecuteJs |
Execute arbitrary JavaScript in the page context. Safety: The script runs with full page privileges in the browser context. Only execute scripts from trusted sources. — Fields: Script: string |
Scrape |
Scrape the current page HTML. |
ScrollDirection
Section titled “ScrollDirection”Direction for a scroll action.
| Value | Description |
|---|---|
Up |
Scroll upward. |
Down |
Scroll downward. |
HostMatcher
Section titled “HostMatcher”Hostname/IP allowlist matcher for SSRF policy.
Serializes as an internally-tagged object so each variant is distinguishable on the wire and round-trips losslessly:
{"type": "exact", "value": "api.example.com"}{"type": "suffix", "value": ".example.com"}{"type": "cidr", "value": "10.0.0.0/8"}A bare JSON string is still accepted on deserialization and resolves to Exact,
preserving configs written against the previous untagged representation.
Exact: HostMatcher.Exact
| Value | Description |
|---|---|
Exact |
Exact hostname match (case-insensitive). — Fields: Value: string |
Suffix |
Suffix match: “.xberg.io” matches “api.xberg.io” and “xberg.io”. — Fields: Value: string |
Cidr |
CIDR match: “10.0.0.0/8” matches IP addresses in that range. — Fields: Value: string |
Errors
Section titled “Errors”CrawlError
Section titled “CrawlError”Errors that can occur during crawling, scraping, or mapping operations.
| Variant | Description |
|---|---|
NotFound |
The requested page was not found (HTTP 404). |
Unauthorized |
The request was unauthorized (HTTP 401). |
Forbidden |
The request was forbidden (HTTP 403). |
WafBlocked |
The request was blocked by a WAF or bot protection (HTTP 403 with WAF indicators). vendor is the lowercase identifier of the detected WAF (e.g. “cloudflare”, “datadome”). When the engine cannot identify the vendor, it uses “unknown”. message is the freeform description for logs and human readers. The stable error tag remains forbidden: waf/blocked: MESSAGE so existing log-grep patterns and cross-language bindings continue to work; vendor is surfaced separately for structured consumers. |
Timeout |
The request timed out. |
RateLimited |
The request was rate-limited (HTTP 429). |
ServerError |
A server error occurred (HTTP 5xx). |
BadGateway |
A bad gateway error occurred (HTTP 502). |
Gone |
The resource is permanently gone (HTTP 410). |
Connection |
A connection error occurred. |
Dns |
A DNS resolution error occurred. |
Ssl |
An SSL/TLS error occurred. |
DataLoss |
Data was lost or truncated during transfer. |
BrowserError |
The browser failed to launch, connect, or navigate. |
BrowserTimeout |
The browser page load or rendering timed out. |
InvalidConfig |
The provided configuration is invalid. |
Unsupported |
The requested capability is not supported by the active backend or build. |
SsrfPolicyViolation |
A URL was rejected by SSRF policy (private IP, metadata, disallowed scheme, etc). |
Other |
An unclassified error occurred. |
SsrfError
Section titled “SsrfError”SSRF validation error.
| Variant | Description |
|---|---|
DeniedByPolicy |
URL denied by SSRF policy: private IP, metadata IP, etc. |
NotOnAllowlist |
Host not on allowlist when an allowlist is configured. |
InvalidCidr |
Allowlist entry is not a parseable CIDR block. |
DnsResolutionFailed |
DNS resolution failed for hostname. |
InvalidUrl |
Invalid URL format. |
DisallowedScheme |
URL scheme not in allowlist (e.g., ftp:// when only http/https allowed). |
TooManyRedirects |
Too many HTTP redirects encountered during validation. |