# Find broken links and images on a website

**Use case:** 

Crawls a website and checks every internal link, external link and image on its pages. Each broken link comes with the page it is on, the status code and the anchor text, also as a CSV file. Paste your own site to check it.

## Input

```json
{
  "startUrls": [
    "https://crawler-test.com/"
  ],
  "maxPagesPerSite": 20,
  "checkExternalLinks": true,
  "checkImages": true,
  "useSitemap": true,
  "respectRobotsTxt": true,
  "includeSubdomains": false,
  "maxConcurrencyPerSite": 4,
  "maxConcurrency": 10,
  "delayMs": 0,
  "requestTimeoutSecs": 20
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "internalLinks": {
    "label": "Internal",
    "format": "number"
  },
  "externalLinks": {
    "label": "External",
    "format": "number"
  },
  "nofollowLinks": {
    "label": "Nofollow",
    "format": "number"
  },
  "brokenLinksCount": {
    "label": "Broken",
    "format": "number"
  },
  "brokenImagesCount": {
    "label": "Broken images",
    "format": "number"
  },
  "redirectingLinks": {
    "label": "To redirects",
    "format": "number"
  },
  "restrictedLinks": {
    "label": "Restricted (401/403/429)",
    "format": "number"
  },
  "linksBlockedByRobots": {
    "label": "Blocked by robots.txt",
    "format": "number"
  },
  "images": {
    "label": "Images",
    "format": "number"
  },
  "imagesMissingAlt": {
    "label": "No alt",
    "format": "number"
  },
  "brokenLinks": {
    "label": "Broken links",
    "format": "array"
  }
}
```

## How it works

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

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

### 2. Start the "Find broken links and images on a website" task

The SEO Audit & Broken Link Checker: Site Audit with 0-100 Score Actor will start running based on the input automatically. You can also change all the input fields, like websites to audit, max pages per site, and more, to match your specific use case.

### 3. Receive the "Find broken links and images on a 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 URL, internal, external, 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 and images on a website" task via API](https://apify.com/makerio/seo-audit-broken-links.md).

## FAQ

### What does the broken link check task return?

One table row per crawled URL with its status, title, meta description, H1, canonical, indexability, broken links and issues, plus report.html, a JSON summary and broken-links.csv in the key-value store.

### How much does one run of this task cost?

$0.004 per audited URL ($4 per 1,000); link and image checks are included and URLs that fail to load are free. As set up, at most 20 URL(s), so a run costs up to $0.08.

### Can I audit my own website?

Yes. Duplicate the "Find broken links and images on a website" task, enter your site and set Max pages per site. You can also limit the crawl to a section with URL patterns.

### Can I run it on a schedule?

Yes. Add a weekly schedule in Apify Console to catch new broken links and errors, and send the results to Google Sheets, Slack, email or a webhook.

## About this Actor

This example demonstrates how to use [SEO Audit & Broken Link Checker: Site Audit with 0-100 Score](https://apify.com/makerio/seo-audit-broken-links.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/makerio/seo-audit-broken-links.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/makerio/seo-audit-broken-links.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`).
