# Crawl a small site for broken links

**Use case:** 

Up to 100 links are followed from the starting page, internal and external, with polite per-host limits so the target site is not hammered. Robots rules are respected, and a link that robots forbid is reported as such rather than counted as broken.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.debian.org/"
    }
  ],
  "urls": [],
  "checkInternal": true,
  "checkExternal": true,
  "maxLinks": 100,
  "concurrency": 5,
  "perHostConcurrency": 2,
  "respectRobots": true,
  "timeoutSecs": 20,
  "maxRetries": 3
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "state": {
    "label": "State",
    "format": "string"
  },
  "httpStatus": {
    "label": "Status",
    "format": "integer"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  },
  "naiveCheckWouldSayBroken": {
    "label": "Naive check would call this broken",
    "format": "boolean"
  },
  "method": {
    "label": "Method used",
    "format": "string"
  },
  "headRejectedStatus": {
    "label": "HEAD rejected with",
    "format": "integer"
  },
  "redirectCount": {
    "label": "Redirects",
    "format": "integer"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "isInternal": {
    "label": "Same site",
    "format": "boolean"
  },
  "elapsedMs": {
    "label": "Elapsed (ms)",
    "format": "integer"
  },
  "linkedFrom": {
    "label": "Linked from",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [Broken Link Checker - Dead Links, 404 Checker, Bulk URL Status](https://apify.com/neverempty/link-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/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/neverempty/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`).
