# Find broken links across a whole website

**Use case:** 

Crawl a site from its home page, follow every link on the same site and keep only the links that are broken or never answered, each with the page it was found on.

## Input

```json
{
  "queries": [
    "crawler-test.com"
  ],
  "mode": "crawl",
  "maxPages": 200,
  "onlyBroken": true,
  "checkExternal": true,
  "checkAssets": false,
  "maxItems": 1000
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "final_url": {
    "label": "Final URL",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "number"
  },
  "status_text": {
    "label": "Status Text",
    "format": "string"
  },
  "classification": {
    "label": "Classification",
    "format": "string"
  },
  "is_broken": {
    "label": "Broken",
    "format": "boolean"
  },
  "source_url": {
    "label": "Source URL",
    "format": "string"
  },
  "anchor_text": {
    "label": "Anchor Text",
    "format": "string"
  },
  "element": {
    "label": "Element",
    "format": "string"
  },
  "all_sources": {
    "label": "All Source Pages",
    "format": "array"
  },
  "method": {
    "label": "Method",
    "format": "string"
  },
  "redirect_count": {
    "label": "Redirect Count",
    "format": "integer"
  }
}
```

## About this Actor

This example demonstrates how to use [Broken Link Checker: Find Dead Links Site-Wide](https://apify.com/pradio/broken-link.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/pradio/broken-link.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/pradio/broken-link.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`).
