# Check a documentation page for broken links

**Use case:** 

Crawls the Go documentation start page and up to 3 pages of that site, then checks each link found, including external ones. Each row is one link with its status code, whether it is broken and the page it was found on; the saved run found no broken links. Used by documentation and SEO teams to find dead links.

## Input

```json
{
  "startUrls": [
    "https://go.dev/doc/"
  ],
  "maxPagesPerSite": 3,
  "checkExternalLinks": true,
  "maxResults": 25
}
```

## Output

```json
{
  "linkUrl": {
    "label": "Link",
    "format": "string"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "broken": {
    "label": "Broken",
    "format": "boolean"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "redirectCount": {
    "label": "Redirects",
    "format": "number"
  },
  "linkType": {
    "label": "Type",
    "format": "string"
  },
  "tag": {
    "label": "Tag",
    "format": "string"
  },
  "linkText": {
    "label": "Link text",
    "format": "string"
  },
  "foundOnPage": {
    "label": "Found on",
    "format": "string"
  },
  "foundOnPages": {
    "label": "Pages linking",
    "format": "number"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "string"
  }
}
```

## How it works

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

The Broken Link Checker - Find Dead Links & 404s on Any Site Actor is ready to run with the inputs already set for "Check a documentation page for broken links". [Sign up or log in](https://console.apify.com/create-task-from-example/ssuSyBpYbjDjEYxO6) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check a documentation page for broken links" task

The Broken Link Checker - Find Dead Links & 404s on Any Site Actor will start running based on the input automatically. You can also change all the input fields, like start urls, pages to read per site, and more, to match your specific use case.

### 3. Receive the "Check a documentation page for broken links" 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 link, final url, status, 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 "Check a documentation page for broken links" task via API](https://apify.com/bigdavidson/broken-link-checker.md).

## About this Actor

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