# URL Status, Redirect Chain & Broken Link Checker (`dojito/url-status-broken-link-checker`) Actor

Check URLs in bulk: HTTP status, full redirect chain, final URL, response time, DNS / timeout / TLS errors, parked / for-sale / default-page detection. Or crawl a website and list every broken link with its page and anchor text. $0.80 per 1,000 URLs; robots.txt skips free.

- **URL**: https://apify.com/dojito/url-status-broken-link-checker.md
- **Developed by:** [Dongjin Kim](https://apify.com/dojito) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 url checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**URL Status, Redirect Chain & Broken Link Checker** does three jobs:

- **Check a list of URLs** — for every URL you get the **HTTP status**, the **whole redirect chain** (each hop's status and `Location`), the **final URL** and its status, the **number of redirects**, the **response time**, the **content type and size**, or the **network error by name** (`dns`, `timeout`, `tls`, `connection`). Typical uses: checking a site migration's 301 map, cleaning a link list, monitoring a few hundred important pages on a schedule.
- **Tell parked, for-sale and placeholder domains from live sites** (v1.1, switch on **Detect parked / for-sale / default pages**) — each URL also gets `siteState`: `live`, `parked`, `for-sale`, `default-page` (nginx / Apache / IIS / cPanel / Plesk placeholder), `coming-soon`, `suspended`, `unreachable`, `http-error` or `unknown`, plus the parking or marketplace service and the evidence. Same request, same price. Typical uses: cleaning a lead or backlink list of dead and parked domains, finding for-sale domains in a list, checking which of your own domains still show a default page.
- **Find broken links on a website** — give a start URL; the actor crawls the site (and its sitemap) up to the page limit, checks **every link and image** on those pages, including links to other websites, and gives you **one row per broken link and page it is on**, with the **anchor text**.

It is a plain HTTP checker: it does not run JavaScript, log in, use cookies or proxies, or get around bot protection. It obeys robots.txt and asks each website for one URL at a time.

### How to use

1. Click **Start** — the input is prefilled with three URLs (a 200, a 301 → 200 and a 404), so you see three rows in a few seconds.
2. Replace them with your URLs (paste a list with **Bulk edit**, one URL per line).
   Or set **Mode** to **Find broken links on a website** and enter a **Start URL** such as `https://example.com/`.
3. Click **Start**. Export the table as JSON, CSV or Excel, or read it through the Apify API. You can schedule the actor to re-check the same list every day or week.

### What you get — urls mode

One row per URL. Rows from a real run on Apify (2026-11-15, build 1.0.3, `store/sample-output.json`), shortened:

```json
[
{"url": "https://example.com/", "result": "ok", "status": 200, "finalUrl": "https://example.com/", "finalStatus": 200, "hops": 0, "responseMs": 17, "contentType": "text/html", "error": null},
{"url": "http://www.w3.org/", "result": "ok", "status": 301, "finalUrl": "https://www.w3.org/", "finalStatus": 200, "hops": 1, "responseMs": 34, "contentType": "text/html", "error": null,
 "redirectChain": [{"url": "http://www.w3.org/", "status": 301, "location": "https://www.w3.org/"}, {"url": "https://www.w3.org/", "status": 200, "location": null}]},
{"url": "https://httpbingo.org/redirect/3", "result": "ok", "status": 302, "finalUrl": "https://httpbingo.org/get", "finalStatus": 200, "hops": 3, "responseMs": 183},
{"url": "https://www.rfc-editor.org/rfc/rfc99999.html", "result": "broken", "status": 404, "finalStatus": 404, "hops": 0, "responseMs": 84},
{"url": "https://no-such-host-dojito-790.com/", "result": "error", "status": null, "error": "dns", "errorDetail": "host name not found (Name or service not known) (while fetching …/robots.txt; the URL itself was not requested)"},
{"url": "http://example.com:81/", "result": "error", "error": "timeout", "errorDetail": "no answer within the time limit (while fetching …/robots.txt; …)"},
{"url": "https://expired.badssl.com/", "result": "error", "error": "tls", "errorDetail": "certificate problem: certificate has expired (…)"},
{"url": "https://amzn.to/3abc", "result": "unverified", "status": 302, "finalUrl": "http://www.amazon.com", "hops": 1, "error": "redirect_blocked", "errorDetail": "redirect to http://www.amazon.com — terms_of_use: …"},
{"url": "http://169.254.169.254/latest/meta-data/", "result": "skipped", "error": "invalid_url", "errorDetail": "not a public host"}
]
```

| Field | Meaning |
|---|---|
| `url` | The URL you gave. |
| `result` | `ok` (final answer below 400), `broken` (final answer 4xx / 5xx), `error` (no usable answer: see `error`), `unverified` (the URL answered, but its redirect leads somewhere this actor does not request — see below), `robots_disallowed` or `skipped` (not requested, free). |
| `status` | The first HTTP status the URL answered with (e.g. `301`). |
| `redirectChain` | Every hop: `{url, status, location}`. The last hop has `location: null`. |
| `finalUrl` / `finalStatus` | Where the chain ended and its status. |
| `hops` | Number of redirects followed (0 = no redirect, or **Follow redirects** off — the chain still shows the first `location`). |
| `responseMs` | Time to the response headers, summed over all hops (pauses between requests not counted). |
| `contentType` / `bytes` | The final response's `Content-Type` and `Content-Length` (`null` when the server does not send a length). |
| `error` / `errorDetail` | Network errors: `dns`, `timeout`, `tls` (certificate / handshake), `connection` (refused / reset). Redirect problems: `too_many_redirects`, `redirect_loop`, `bad_location` (a Location that cannot be a URL), `no_location`. Not followed (`unverified`): `redirect_blocked` (redirect to a site or page we never request, or to a private address), `robots_disallowed` (redirect target disallowed by robots.txt), `rate_limited`, `private_address`. Not requested (free): `robots_disallowed`, `invalid_url`, `terms_of_use`, `blocked_site`, `private_page`, `rate_limited`, `private_address`. `internal_error` (not charged) if something unexpected happened with one URL. |
| `note` | Only for 401 / 403 / 429 / 999: the server refused an automated check — open the URL in a browser to be sure. |
| `siteState` / `parkingProvider` / `siteStateReason` | What the final page is (see the next section). `null` unless **Detect parked / for-sale / default pages** is on. |

### Parked, for-sale and default-page detection (urls mode, v1.1)

Switch on **Detect parked / for-sale / default pages** (`"detectSiteState": true`). The actor then sends **GET instead of HEAD** and reads the **first 64 KB** of the final page (HTML, plain text or untyped; also for 4xx / 5xx answers, because a suspended site often answers 403 or 503). It is still **one request per hop — no extra request** and the **same price** per URL. Off (the default), the actor behaves exactly like v1.0 and the three columns are `null`.

| `siteState` | Meaning | Main markers |
|---|---|---|
| `live` | Answered 2xx with a page (or a non-HTML file such as a PDF), none of the markers below | — |
| `parked` | A parking page (ads or a registrar's lander) | GoDaddy lander (`/lander` redirect script, `wsimg.com/parking-lander`), Spaceship (`sds-spaceship`), redirect to NamePros `/parked/`, NameBright "Coming Soon" lander, Above.com, Bodis, ParkingCrew, Sedo Parking, Google AdSense for Domains (`caf.js`), "parked free", "this domain is parked" |
| `for-sale` | A marketplace or "this domain is for sale" lander | Redirect to a Sedo / Dan.com / Afternic sale page, HugeDomains, BuyDomains, Atom / Squadhelp, BrandBucket, GoDaddy `/forsale`; "this domain is for sale", "buy this domain", "serious offers only", "open to qualified inquiries", or a title that names the domain directly followed by "for sale" / "may be available" |
| `default-page` | A web server's or hosting panel's placeholder | title "Welcome to nginx!", "Apache2 Ubuntu / Debian Default Page", title "It works!", Apache / CentOS test page, IIS title, cPanel ("Future home of something quite cool", `defaultwebpage.cgi`), Plesk "Domain Default page", OpenResty |
| `coming-soon` | "Coming soon" / "under construction" placeholder | a title that is only the placeholder phrase (optionally with the site name: "Web Page Under Construction", "Site en construction"), or short-page text such as "website coming soon" / "site under construction" (titles also in French, Spanish, Portuguese, Italian, German, Dutch) |
| `suspended` | Hosting account suspended | redirect to cPanel `suspendedpage.cgi`, a title that is only "Account Suspended", or "account suspended" on a very short page (or an error page) |
| `unreachable` | No HTTP answer | `error` is `dns`, `timeout`, `tls` or `connection` |
| `http-error` | 4xx / 5xx with none of the markers | — |
| `unknown` | The site refused the automated check (401 / 403 / 429 / 999, Cloudflare "Just a moment…"), the redirect chain was stopped before the final page (robots.txt, never-request list, loop), **Follow redirects** is off so a 3xx is the final answer, or an HTML / untyped answer had no readable content | — |

`parkingProvider` names the service when it can be told (`GoDaddy`, `Sedo`, `HugeDomains`, `Atom`, `Above.com`, `Spaceship`, `cPanel`, `nginx` …), else `null`. `siteStateReason` says what decided it, e.g. `redirects to www.hugedomains.com` or `page text: "Welcome to nginx! …"` (a quote of at most 90 characters around the match, e-mail addresses and phone numbers masked).

How it decides, in this order: a marketplace or parking service anywhere in the redirect chain (found even when that host itself is not requested, e.g. disallowed by its robots.txt; for hosts that also have other pages, only their sale / parking paths count) → network error (`unreachable`) → a redirect that was not followed or a page whose content could not be read (`unknown`) → bot challenge page (`unknown`) → **only for short pages** (up to 6,000 visible characters in what was read): a title / meta description naming the domain directly followed by "for sale", then the marker table above (generic wording also needs the whole page to fit in the 64 KB read). A longer page is always `live` (or `http-error` / `unknown` by its status), whatever words it uses — parked, for-sale and placeholder pages are short.

Results on real domains (local run 2026-11-16, same code; the domains are public examples found through search engines and by trying common two-word names):

| Domain | Expected (checked by hand) | `siteState` | `parkingProvider` | `siteStateReason` (shortened) |
|---|---|---|---|---|
| megawatch.com | parked | `parked` | GoDaddy | page HTML: “d=function(){window.location.href="/lander"}\</script>\</head>\</h” — GoDaddy lander |
| solarpanelquotes.net | parked | `parked` | GoDaddy | page HTML: “d=function(){window.location.href="/lander"}\</script>\</head>\</h” — GoDaddy lander |
| besttravel.org | parked | `parked` | Spaceship | page HTML: “-mode="dark" class="sds-spaceship">\<head>\<meta charse” |
| bestjobs.co | parked | `parked` | NamePros | redirects to namepros.com/parked/bestjobs.co |
| bestcars.org | parked | `parked` | NameBright | title: “NameBright - Coming Soon” |
| pixelbooks.com | parked | `parked` | — | title / meta description: “pixelbooks.com — Find the best information and most relevant links o |
| greenteaonline.com | for-sale | `for-sale` | HugeDomains | redirects to hugedomains.com |
| pixelpets.com | for-sale | `for-sale` | Atom | redirects to atom.com/name/PixelPets |
| urbanmarket.com | for-sale | `for-sale` | — | page text: “generic domain name UrbanMarket.com is for sale. Serious inquiries” |
| smartdeals.co | for-sale | `for-sale` | Above.com | title / meta description: “for smartdeals.co. This domain may be for sale.” |
| fastjobs.net | for-sale | `for-sale` | Spaceship | title / meta description names the domain: “FastJobs.net for sale / Spaceship.com — F” |
| happygarden.com | for-sale | `for-sale` | — | title / meta description: “happygarden.com :: this domain is for sale” |
| a university host (\*.mit.edu) | default-page | `default-page` | Apache | page text: “Apache2 Ubuntu Default Page It works! This is t” |
| a university host (\*.stanford.edu) | default-page | `default-page` | Apache | page text: “Apache2 Ubuntu Default Page It works! This is t” |
| a university host (\*.ucl.ac.uk) | default-page | `default-page` | nginx | title: “Welcome to nginx!” |
| a university host (\*.harvard.edu) | default-page | `default-page` | nginx | title: “Welcome to nginx!” |
| a standards-body host (\*.ietf.org) | default-page | `default-page` | Apache | page text: “Apache2 Debian Default Page It works! This is t” |
| bestdogfood.com | default-page | `default-page` | cPanel | page HTML: “an>\</div> \<h1>Future home of something quite cool.\</h1> \<p clas” |
| example.com | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| www.python.org | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| goldenbooks.com | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| en.wikipedia.org/wiki/Domain_parking | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| smartloans.us | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| redhomes.com | live | `live` | — | HTTP 200, no parking / sale / placeholder markers |
| a small shop's domain (.com) | suspended | `suspended` | cPanel | redirects to /cgi-sys/suspendedpage.cgi |
| greenteastore.net | coming-soon | `coming-soon` | — | title: “Web Page Under Construction” |
| no-such-host-dojito-790.com | unreachable | `unreachable` | — | no HTTP answer (dns) |

27 of 27 as expected (local run, urls mode, 27 rows, 27 `url-checked`). These are the examples the markers were built and checked on, so this is not an accuracy rate; `siteState` is a best-effort reading of one page at one moment — check before acting on it. A domain's state can change at any time — these are the answers on that day. The same 27 URLs on Apify (build 1.1.2, 256 MB, 2026-11-16, run `b8RNzAC9CGglUm0Nx`): 25 of 27 as expected — from Apify's cloud servers solarpanelquotes.net answered 403 (`unknown`) and pixelbooks.com refused the connection (`unreachable`), so some parking services treat cloud requests differently from a home connection.

Limits of the detection:

- **GoDaddy's lander** is the same tiny page (a script that opens `/lander`) for parked domains and for domains listed for sale on GoDaddy / Afternic; telling them apart would take a second request, so these are `parked` with provider `GoDaddy` and the reason says so.
- Pages that only show their content after JavaScript runs are judged by what is in the first 64 KB of HTML; a JavaScript-only redirect page ("Redirecting…") is `live`. A short page whose title is only a placeholder phrase ("Coming Soon", "Default Page", "Welcome to nginx!") is judged by that title even if it is a real site's page.
- A site behind a bot challenge, or a parking service that refuses requests from cloud servers (seen in our cloud test), is `unknown` / `unreachable`, not guessed. Markers are English-first; a placeholder in another language may stay `live`.
- Markers come from the pages seen in our tests and the services' public pages; new lander designs may need new markers.

### What you get — site mode

One row per **broken link × page it is on** (a broken URL linked from 3 pages gives 3 rows, up to 100 pages per URL). Pages that work are not listed; their count is in the run report.

| Field | Meaning |
|---|---|
| `brokenUrl` | The link or image that is broken. |
| `issue` | `broken` (4xx / 5xx), `error` (DNS / timeout / TLS / connection / redirect loop or a broken Location), or `redirect` (only with **reportRedirects**: an internal link that redirects). Links whose redirect leads to a site or page we never request (for example a short link to a large retailer, or a link to a login page) are **not** listed as broken; they are counted as `unverified` in the run report. |
| `status` / `error` / `errorDetail` | The final HTTP status, or the network error by name. |
| `foundOn` | The page the link is on (`(start URL or sitemap)` for a start or sitemap page that is itself broken). |
| `anchorText` | The link text (first 100 characters); for images, the `alt` text. |
| `tag` | `a` (link) or `img` (image). |
| `linkType` | `internal` (same host, `www.` ignored) or `external`. |
| `finalUrl` / `hops` | Where a redirecting link ended. |

How the crawl works: the start URL and the pages in the site's sitemap (robots.txt `Sitemap:` lines, else `/sitemap.xml`; or the **Sitemap URL** you give) are read first, then pages found through links, until **Max pages** pages have been read (default 100, up to 2,000). Only HTML pages on the same host are read for links; links to files (PDF, images, archives …) are checked with HEAD and never downloaded. Every link found on the pages read is checked once — internal and external, also those beyond the page limit. `mailto:`, `tel:`, `javascript:` and `#fragment` links are not checked.

The **run report** (key-value store record `RUN_REPORT`) has: counts by result, pages crawled, URLs checked, the 100 broken URLs found on most pages, the sitemaps read, and the URLs that were not requested with the reason (up to 1,000 listed one by one, all counted).

### How it checks (and why results can differ from a browser)

- **HEAD first.** When HEAD gets an error status (4xx / 5xx except 429), the same URL is asked again with **GET** and the GET answer is reported — some servers answer HEAD with 404 or 405 while the page works. That GET's body is not downloaded (the connection is closed after the headers); only pages crawled in site mode are read, and only if they are HTML. Exception: with **Detect parked / for-sale / default pages** on, each hop is a single GET (no HEAD) and at most 64 KB of the final page is read.
- **URLs are sent like a browser sends them**: spaces and non-ASCII characters percent-encoded (`/café` → `/caf%C3%A9`), international domain names in IDNA form. A URL that still cannot be sent (`http://[::1`, a space in the host name) is `skipped` / `invalid_url`, free.
- **Redirects** are followed one by one (up to **Max redirects**, default 10). Every hop is checked again against the rules below.
- **Retries**: one retry after 429 / 502 / 503 / 504 (honoring a `Retry-After` of up to 10 s) and after a dropped connection. A timeout is not retried.
- **Politeness**: one request at a time per host and at least 1 second between requests to the same host (longer if its robots.txt asks with `Crawl-delay`, up to 10 s; a longer Crawl-delay closes the site), at most 10 hosts at once. After two 429 answers in a row from a host, its other URLs are reported `rate_limited` without a request (free).
- **robots.txt** is read once per host and obeyed for our user agent (`DojitoLinkBot`). Disallowed URLs are not requested; their row says `robots_disallowed` and they are free. A robots.txt that answers 5xx closes the site (RFC 9309). If robots.txt cannot be fetched because the host does not answer (DNS / timeout / TLS), the URL is not requested either, and its row reports that network error — that is the answer to "does this URL work".
- **Never requested**: localhost, private, link-local and cloud-metadata addresses (checked again when connecting, also after redirects; only http and https are ever followed), URLs with credentials, login / account / cart / checkout pages, and a fixed list of large retailers, marketplaces and social / video / stock-photo platforms that we never request — by their terms of use or by our own policy (Amazon, eBay, Walmart, Google, YouTube, Facebook, Instagram, X, TikTok, LinkedIn, Reddit and others). Their rows say why (`terms_of_use`, `blocked_site`, `private_page`, `invalid_url`) and are free. When a URL **redirects** to one of them, the row shows the real first answer (e.g. 301 and its `location`) with result `unverified`; that URL is charged, because it did answer. In site mode such links are not listed as broken.
- **Bot protection**: sites behind Cloudflare-style challenges often answer 403 or 503 to any automated request. The actor does not try to get around that; those rows get a `note`.
- **No JavaScript**: links that only appear after JavaScript runs are not found in site mode.

### Pricing

Pay per event, no subscription:

| Event | When | Price |
|---|---|---|
| `url-checked` | Once per URL that got an answer — an HTTP status, or a network error (`dns`, `timeout`, `tls`, …) | **$0.80 per 1,000 URLs** (free plan) · $0.70 (Bronze) · $0.60 (Silver and up) |
| `apify-actor-start` | Apify's standard start event, once per run (per GB of memory; the default 256 MB counts as one) | $0.00005 |

- **Free**: URLs not requested (`robots_disallowed`, `skipped`: invalid, private address, never-request list), duplicates in your list (checked once), robots.txt and sitemap files.
- **Site mode**: every page crawled and every unique link checked is one `url-checked` — a site with 100 pages and 400 unique links costs about $0.40 (plus the start event). Rows are not charged by themselves.
- A redirect chain is one URL, however many hops it has.
- **Detect parked / for-sale / default pages** on or off: the same price per URL.
- **Limits**: **Max URLs to check** (default 10,000) and your **maximum cost per run** stop the run before any check that could not be paid for; the run report says how many URLs were not started.
- Cost to run is included (the developer pays the platform usage). The actor runs with 256 MB of memory by default.

### Limits

- Up to 100,000 URLs per run in urls mode; up to 2,000 crawled pages in site mode. A crawled page is read up to 2 MB.
- Timeout per request 3–60 s (default 15 s). A URL that hangs costs up to that long per hop.
- One request per host per second: 1,000 URLs on one website take at least 17 minutes (redirect hops and GET re-checks are extra requests on the same host); URLs spread over many websites go up to 10 at a time.
- The status is what our server in the cloud sees: some sites answer differently by country, user agent or with a CAPTCHA.
- Not a full SEO audit: no meta tags, no page speed, no JavaScript rendering.
- Site-state detection reads at most 64 KB of each final page (urls mode only; site mode does not fill `siteState`).

### FAQ

**Why does a URL show `robots_disallowed`?** The website's robots.txt asks automated agents not to fetch it. We respect that and do not charge for it. If it is your own site, you can allow `DojitoLinkBot` in robots.txt.

**Why `403` with a note?** The server (often a bot-protection service) refused the automated request. Open the URL in a browser to be sure.

**Why `dns` / `timeout` / `tls` with "the URL itself was not requested"?** The host already failed when we fetched its robots.txt, so the URL would fail the same way.

**Can I check URLs behind a login?** No. The actor sends no cookies or credentials.

**Does site mode follow links to other websites?** It checks them (one HEAD request each) but does not crawl them.

**Can I feed it a sitemap in urls mode?** Use site mode with **Sitemap URL** to crawl the pages listed in it, or extract the URLs first with a sitemap extractor and paste them.

### Legal

The actor requests only public URLs you provide (or links on the public website you name), at a polite rate, obeying robots.txt, and stores only HTTP metadata (status codes, headers such as Location, Content-Type and Content-Length), in site mode link text, and with site-state detection on a quote of at most 90 characters of the parking / placeholder text that decided `siteState` (e-mail addresses and phone numbers in the quote are masked as `[email]` / `[number]`). It stores no page content and has no personal-data fields; link text and image alt text are copied as written on the public page (first 100 characters) and can occasionally contain a name. `mailto:` links are not checked or listed. You are responsible for having the right to check the URLs and sites you submit. General information, not legal advice.

User agent: `DojitoLinkBot/1.0 (+https://apify.com/dojito/url-status-broken-link-checker; contact djkim@dojito.com)`. If you run a website and want it skipped, disallow `DojitoLinkBot` in robots.txt or write to the contact address.

Not affiliated with any company, service or website named in this README. Product and service names (GoDaddy, Sedo, HugeDomains, Atom, Spaceship, NamePros, NameBright, Above.com, nginx, Apache, cPanel …) belong to their owners and are used only to describe what the actor detects or does not request. Example domains are public pages; their states are as seen on 2026-11-16 and say nothing about their owners. To have an example removed, write to the contact address.

# Actor input Schema

## `mode` (type: `string`):

urls = check the URLs you list (one row per URL). site = crawl one website from the start URL and list its broken links (one row per broken link and page it is on).

## `urls` (type: `array`):

Up to 100,000 URLs per run. Paste a list with Bulk edit (one URL per line); linked or uploaded URL lists are not supported. Duplicates are checked once.

## `detectSiteState` (type: `boolean`):

Also tell what each URL's final page is: live site, parked domain, domain for sale (Sedo, Dan.com, Afternic, HugeDomains ...), web server default page (nginx, Apache, IIS, cPanel, Plesk), coming soon, account suspended, or unreachable — columns siteState, parkingProvider, siteStateReason. Sends GET instead of HEAD and reads the first 64 KB of the final page; no extra request, same price. Off = siteState is empty.

## `startUrl` (type: `string`):

The website to check, e.g. https://example.com/. Pages on the same host (www. or not) are crawled; links to other sites are checked but not crawled.

## `maxPages` (type: `integer`):

How many pages of the website are opened and read for links (1-2,000). Links found on those pages are all checked, also the ones beyond this limit.

## `useSitemap` (type: `boolean`):

Add the pages listed in the website's sitemap (from robots.txt, or /sitemap.xml) to the crawl, so pages that no other page links to are checked too. Sitemap files are not charged.

## `sitemapUrl` (type: `string`):

Use this sitemap instead of looking for one, e.g. https://example.com/sitemap_index.xml.

## `checkExternal` (type: `boolean`):

Check links that point to other websites too (one HEAD request per unique URL, a GET only to confirm an error). Off = only links within the site.

## `checkImages` (type: `boolean`):

Also check <img> sources, so missing images are listed as broken links (tag img, alt text as anchor text).

## `reportRedirects` (type: `boolean`):

Add a row (issue redirect) for every link within the site that answers with a redirect, so you can point it straight at the final URL.

## `followRedirects` (type: `boolean`):

Follow each redirect and report the whole chain and the final status. Off = report only the first answer (e.g. 301 and its Location).

## `maxRedirects` (type: `integer`):

A chain longer than this ends with error too_many_redirects (0-20).

## `timeoutSecs` (type: `integer`):

A server that does not answer within this time gets error timeout (3-60).

## `maxItems` (type: `integer`):

The run stops after this many charged checks (each URL that got an answer counts once; robots.txt-skipped and invalid URLs do not count). Your maximum cost per run also stops it.

## `maxConcurrency` (type: `integer`):

How many different hosts are checked at the same time (1-10). URLs on the same host are always checked one at a time with 1 second in between.

## Actor input object example

```json
{
  "mode": "urls",
  "urls": [
    {
      "url": "https://example.com/"
    },
    {
      "url": "http://www.w3.org/"
    },
    {
      "url": "https://www.rfc-editor.org/rfc/rfc99999.html"
    }
  ],
  "detectSiteState": false,
  "maxPages": 100,
  "useSitemap": true,
  "checkExternal": true,
  "checkImages": true,
  "reportRedirects": false,
  "followRedirects": true,
  "maxRedirects": 10,
  "timeoutSecs": 15,
  "maxItems": 10000,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

urls mode: status, redirect chain, final URL, response time and error for every URL.

## `siteState` (type: `string`):

urls mode with detectSiteState on: live / parked / for-sale / default-page / coming-soon / suspended / unreachable for every URL, with the parking or marketplace service and the evidence.

## `brokenLinks` (type: `string`):

site mode: every broken link (4xx / 5xx / network error) with the page it is on and its anchor text.

## `runReport` (type: `string`):

JSON: counts by result, URLs not requested and why (free), pages crawled, top broken URLs, sitemaps read.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://example.com/"
        },
        {
            "url": "http://www.w3.org/"
        },
        {
            "url": "https://www.rfc-editor.org/rfc/rfc99999.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dojito/url-status-broken-link-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        { "url": "https://example.com/" },
        { "url": "http://www.w3.org/" },
        { "url": "https://www.rfc-editor.org/rfc/rfc99999.html" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dojito/url-status-broken-link-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://example.com/"
    },
    {
      "url": "http://www.w3.org/"
    },
    {
      "url": "https://www.rfc-editor.org/rfc/rfc99999.html"
    }
  ]
}' |
apify call dojito/url-status-broken-link-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dojito/url-status-broken-link-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LKWlqXdMDtyisp4ro/builds/RMXMS5Y30WeA5Uoon/openapi.json
