# Find broken links and 404s on a website

**Use case:** 

Crawl the first pages of a website and list every broken link with its status code and the page where it was found. Example uses crawler-test.com, a site built for testing.

## Input

```json
{
  "startUrls": [
    "https://crawler-test.com/"
  ],
  "maxPages": 10,
  "checkExternalLinks": false,
  "onlyBroken": true,
  "maxConcurrency": 5
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "sourcePage": {
    "label": "Found on",
    "format": "string"
  },
  "linkType": {
    "label": "Type",
    "format": "string"
  },
  "isExternal": {
    "label": "External",
    "format": "boolean"
  },
  "statusCode": {
    "label": "Status",
    "format": "integer"
  },
  "isBroken": {
    "label": "Broken",
    "format": "boolean"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## About this Actor

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