Extract page links
extract_linksExtract all links from a web page as absolute URLs, classified as internal or external, with anchor text and attributes. Supports scope filtering, deduplication, and result limits for crawling or link audits.
Instructions
List the links on a web page as absolute URLs, each flagged as internal (same site) or external, with anchor text, title, rel and nofollow status. Supports scope filtering, de-duplication and a result limit — useful for crawling a documentation tree, auditing outbound links or finding next pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to fetch. | |
| limit | No | Maximum number of links to return. | |
| scope | No | Restrict results to same-site links, off-site links, or return both. | all |
| timeoutMs | No | Request timeout in milliseconds (1000-120000). | |
| deduplicate | No | Collapse repeated URLs to a single entry. | |
| includeAnchors | No | Include in-page fragment links such as "#section". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| links | Yes | ||
| status | Yes | ||
| returned | Yes | ||
| fromCache | Yes | ||
| truncated | Yes | ||
| totalFound | Yes | Links matching the scope before the limit was applied. | |
| requestedUrl | Yes | ||
| externalCount | Yes | ||
| internalCount | Yes |