extract_links
List hyperlinks from a single page to build crawl seeds, audit broken links, or find related resources. Optionally filter to external links only.
Instructions
Use this to list the hyperlinks on one page - a crawl seed list, a broken-link audit, related resources. filter_external:true returns only outbound links. Not for a whole site (map_site), and not alongside a scrape of the same URL: scrape formats:["markdown","links"] returns both in one fetch. Cost: 1 credit. Example: extract_links({url: "https://example.com", filter_external: true})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to extract links from | |
| base_url | No | Base URL for resolving relative links | |
| user_agent | No | Override the outbound User-Agent. CrawlForge identifies itself honestly by default; use this only for targets you have your own agreement with. | |
| respect_robots | No | Respect the target site's robots.txt (default: true). Setting this to false is honoured, returns a warning in the response, and is recorded against your API key — it is your decision, not a silent default. | |
| filter_external | No | Only return external links |