# Check only the external links on a page

**Use case:** 

Only links pointing away from the site are checked. External links are the ones that rot, because nobody on your side is watching them, and separating them from internal ones keeps a report to what is actually actionable.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://en.wikipedia.org/wiki/Web_scraping"
    }
  ],
  "urls": [],
  "checkInternal": false,
  "checkExternal": true,
  "maxLinks": 60,
  "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`).
