← Back to the Browser Automation category

Browser Links

Extracts all links from a web page. Either url or html is required (not both). See [Cloudflare Browser Rendering Links Endpoint](https://developers.cloudflare.com/browser-rendering/rest-api/links-endpoint/) for details.

BrowserWebCloudflareLinks
Try this node

Inputs

NameTypeRequiredDescription
urlstringNoThe URL to render (either url or html required, not both)
htmlstringNoHTML content to render (either url or html required, not both)
visibleLinksOnlybooleanNoOnly return visible links
excludeExternalLinksbooleanNoExclude links to external domains
gotoOptionsjsonNoPage navigation options
waitForSelectorjsonNoSelector to wait for before extraction

Outputs

NameTypeDescription
linksjsonArray of links as returned by Cloudflare
statusnumberHTTP status code from Cloudflare API
errorstringError message if the request fails

Related Nodes in Browser Automation