You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/browser-rendering/rest-api/links-endpoint.mdx
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,8 @@ console.log(links);
123
123
</TabItem> </Tabs>
124
124
## Advanced usage
125
125
126
+
### Retrieve only visible links
127
+
126
128
In this example we can pass a `visibleLinksOnly` parameter to only return links that are visible on the page.
127
129
128
130
```bash
@@ -213,6 +215,20 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
213
215
}
214
216
```
215
217
218
+
### Retrieve only links from the same domain
219
+
220
+
In this example we can pass a `excludeExternalLinks` parameter to only return links that are from the same domain of the site. Default setting is `false`.
221
+
222
+
```bash
223
+
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/links' \
0 commit comments