# Find broken links on your website

**Use case:** 

Crawls a website and lists every broken link and redirect chain with the page it appears on. The example uses a test site built for SEO tools.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://crawler-test.com/"
    }
  ],
  "includeSubdomains": false,
  "checkExternalLinks": true,
  "checkImages": false,
  "maxPages": 20,
  "maxDepth": 20,
  "maxLinkChecks": 200,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "Page",
    "format": "string"
  },
  "status": {
    "label": "HTTP",
    "format": "integer"
  },
  "redirectCount": {
    "label": "Redirects",
    "format": "integer"
  },
  "redirectChain": {
    "label": "Redirect chain",
    "format": "array"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "depth": {
    "label": "Depth",
    "format": "integer"
  },
  "internalLinks": {
    "label": "Internal links",
    "format": "integer"
  },
  "externalLinks": {
    "label": "External links",
    "format": "integer"
  },
  "brokenLinkCount": {
    "label": "Broken links",
    "format": "integer"
  },
  "brokenLinks": {
    "label": "Broken link list",
    "format": "array"
  },
  "responseTimeMs": {
    "label": "Response (ms)",
    "format": "integer"
  }
}
```

## How it works

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

The SEO Audit Crawler - Page Score 0-100, Broken Links & Fixes Actor is ready to run with the inputs already set for "Find broken links on your website". [Sign up or log in](https://console.apify.com/create-task-from-example/XvIsdf19cAYl16pD3) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find broken links on your website" task

The SEO Audit Crawler - Page Score 0-100, Broken Links & Fixes Actor will start running based on the input automatically. You can also change all the input fields, like start urls (your website), include subdomains, and more, to match your specific use case.

### 3. Receive the "Find broken links on your website" 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 page, HTTP, redirects, 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 "Find broken links on your website" task via API](https://apify.com/kadi_bence/seo-site-audit.md).

## FAQ

### What does this task return?

The "Find broken links on your website" task returns each page with its broken links, redirects, status code and fix hints.

### How much does it cost?

The "Find broken links on your website" task costs $9.50 per 1,000 pages on the base plan, plus a tiny start fee. Higher Apify plans pay less.

### Can I run it on a schedule?

The "Find broken links on your website" task can run on any Apify schedule, and the results can go to Google Sheets, Slack, a webhook or the API.

## About this Actor

This example demonstrates how to use [SEO Audit Crawler - Page Score 0-100, Broken Links & Fixes](https://apify.com/kadi_bence/seo-site-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kadi_bence/seo-site-audit.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/kadi_bence/seo-site-audit.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`).
