# Website health check: find broken links on 50 pages

**Use case:** 

Crawl up to 50 pages of your website and get a list of every broken link (404, 410, 5xx, timeouts), with the page and anchor text where each one appears. Respects robots.txt. Ideal as a monthly site-health check.

## Input

```json
{
  "startUrls": [
    "https://books.toscrape.com"
  ],
  "maxPages": 50,
  "checkExternal": true,
  "includeAssets": false,
  "onlyProblems": true,
  "concurrency": 5
}
```

## Output

```json
{
  "verdict": {
    "label": "Verdict"
  },
  "status": {
    "label": "Status"
  },
  "url": {
    "label": "Url"
  },
  "error": {
    "label": "Error"
  },
  "foundOn": {
    "label": "Found on"
  },
  "internal": {
    "label": "Internal"
  },
  "kind": {
    "label": "Kind"
  },
  "finalUrl": {
    "label": "Final url"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Broken Link Checker (polite, half price) Actor is ready to run with the inputs already set for "Website health check: find broken links on 50 pages". [Sign up or log in](https://console.apify.com/create-task-from-example/gfOLeKE8g9lv1fdvA) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Website health check: find broken links on 50 pages" task

The Broken Link Checker (polite, half price) Actor will start running based on the input automatically. You can also change all the input fields, like website(s) to check, max pages to crawl, and more, to match your specific use case.

### 3. Receive the "Website health check: find broken links on 50 pages" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as verdict, status, url, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Website health check: find broken links on 50 pages" task via API](https://apify.com/tidy-tools/broken-link-checker.md).

## FAQ

### How much does it cost?

$0.50 per 1,000 links checked (less on paid Apify plans). A typical 50-page check costs a few cents. Links skipped by robots.txt or your exclude pattern are never charged.

### What counts as a broken link?

Any link returning 4xx or 5xx, plus timeouts and DNS/connection errors. Sites that refuse automated checks (401/403/429) are listed separately as "blocked", so they don't hide real problems.

### How do I know where to fix each broken link?

Every result includes the page(s) where the link appears and its anchor text, so you can go straight to the right place.

### Is it safe to run on my site?

Yes. It respects robots.txt, sends at most 2 requests at a time to any host, and identifies itself honestly.

## About this Actor

This example demonstrates how to use [Broken Link Checker (polite, half price)](https://apify.com/tidy-tools/broken-link-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tidy-tools/broken-link-checker.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/tidy-tools/broken-link-checker.md

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`).
