Web Hyperlink, Anchor & Asset Extraction Filter
extract_page_hyperlinksExtract, normalize, and filter internal and external hyperlinks, anchor text, and downloadable assets from HTML for site crawlers, link audits, and citation reference collection.
Instructions
Extracts, normalizes, and filters internal and external hyperlinks, anchor texts, and downloadable asset targets from HTML. Use when building site crawlers, auditing broken links, or extracting reference citations; for isolating primary readable article narrative text, use scrape_readable_article instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'html_content' ('link_scope' defaults to 'all_links'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | No | Base URL of the target page for resolving relative link paths. | |
| link_scope | No | Link extraction scope: all links, internal domain only, external links only, or download assets. | |
| html_content | Yes | Source HTML string containing anchor tags, href attributes, and link targets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes | Array of link objects containing resolved url, anchor_text, and is_external. | |
| total_links | Yes | Total hyperlinks discovered matching the specified link scope. | |
| unique_domains | Yes | List of distinct outbound domain hostnames linked in the document. |