Check for broken links
check_linksFind broken links and images in WordPress content: 4xx/5xx errors, redirect chains, mixed content, and internal links to draft or missing posts. Scan by ID, content type, or page URL.
Instructions
Find broken links and images in rendered content: 4xx/5xx and network failures, redirect chains, http:// links on an https site (mixed content), and internal links to draft, trashed or missing content. Scans given ids, a content type, or one front-end URL. Internal links only by default; external checks are opt-in and never reach private or loopback addresses. Checks run with bounded concurrency and are capped per call — follow next_cursor for the rest (each checked link costs 1–2 outbound requests, which matters on Cloudflare Workers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Content IDs to scan (of `type`). Takes precedence over the type-wide scan. | |
| url | No | Scan a single front-end page on the site instead (whole rendered page, including menus and footer). | |
| type | No | Content type to scan when no ids or url are given, and the type of `ids`. | post |
| limit | No | How many content items to extract links from in a type-wide scan (most recent first). | |
| cursor | No | next_cursor from a previous call with the same arguments, to continue where it stopped. | |
| status | No | Which content status to scan in a type-wide scan. | publish |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| max_links | No | Maximum distinct URLs to check in this call; the rest are reachable via next_cursor. | |
| timeout_ms | No | Per-request timeout. | |
| concurrency | No | How many URLs to check at once. | |
| include_images | No | Also check <img src> URLs. | |
| include_external | No | Also check links to other hosts. Private, loopback and link-local hosts are always skipped. |