# Link Integrity & Redirect Auditor (`silicon1235/link-integrity-redirect-auditor`) Actor

Crawl public websites for broken links, redirect warnings, insecure HTTP links, invalid fragments, and recovered issues with bounded HTTP-only checks.

- **URL**: https://apify.com/silicon1235/link-integrity-redirect-auditor.md
- **Developed by:** [X L](https://apify.com/silicon1235) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Link Integrity & Redirect Auditor

Audit public websites for broken links, redirects, insecure HTTP links, invalid fragments, and recovered issues. The Actor is HTTP-only and uses the mature `linkinator` engine instead of browser automation.

### Why this product

The live Apify Store scan on 2026-07-10 found about 467 direct monthly users across broken-link products. Nearly all visible competitors use pay-per-event pricing, while the leading dedicated checker had a low public rating. This Actor differentiates with scheduled snapshots, recovery detection, bounded scans, redirect policy, HTTPS policy, fragment checks, and source-page evidence.

### Output

Each checked URL becomes one dataset row with:

- HTTP status and `OK`, `BROKEN`, or `SKIPPED` state
- issue type and severity
- redirect target
- source pages linking to the URL
- internal/external classification
- `NEW`, `PERSISTING`, `MODIFIED`, `RECOVERED`, or `UNCHANGED` change state
- stable fingerprint for scheduled comparisons

The key-value store contains `SUMMARY`, `ISSUES`, `SNAPSHOTS`, and `REPORT`.

### Cost controls

- `maxLinks` defaults to 250 and is capped at 5,000.
- HTTP concurrency defaults to 20 and is capped at 50.
- Per-request timeout defaults to 15 seconds.
- 403 bot-protected URLs are skipped instead of reported as broken.
- No login, residential proxy, browser, AI API, or external paid API is required.

### Local verification

```powershell
npm test
npm run smoke
```

### Monetization path

The code is ready for a future `url-checked` pay-per-event unit. Leave `PPE_EVENT_NAME` unset while the Actor is free or usage-cost-only. After pricing is configured in Apify Console, set `PPE_EVENT_NAME=url-checked`; one visible dataset item maps to one event and the SDK enforces user spending limits.

Do not charge the synthetic Actor start event manually. Keep the first remote test private and bounded before any public or pricing change.

# Actor input Schema

## `startUrls` (type: `array`):

Public HTTP or HTTPS pages to scan. The Actor recursively follows pages on the same root site and validates linked resources.

## `recurse` (type: `boolean`):

Follow links to additional pages under the start site's root URL instead of checking only the supplied pages.

## `maxLinks` (type: `integer`):

Hard cost and runtime cap across all start URLs.

## `concurrency` (type: `integer`):

Maximum number of link checks running in parallel. Lower values reduce load on small sites.

## `timeoutMs` (type: `integer`):

Maximum time to wait for each HTTP request before reporting a network failure.

## `redirects` (type: `string`):

Choose whether redirects are accepted, reported as warnings, or treated as broken links.

## `requireHttps` (type: `string`):

Choose whether insecure HTTP links are accepted, reported, or treated as errors.

## `checkFragments` (type: `boolean`):

Check server-rendered anchors such as #pricing and #contact.

## `checkCss` (type: `boolean`):

Extract and validate resource URLs referenced from CSS in addition to links found in HTML.

## `skipPatterns` (type: `array`):

Optional regular expressions for URLs that should not be checked.

## `headers` (type: `object`):

Headers applied to requests. Do not include secrets when auditing public sites.

## `snapshotKey` (type: `string`):

Key-value store record used to classify new, persisting, modified, and recovered issues.

## `saveSnapshot` (type: `boolean`):

Persist the current audit fingerprint so later scheduled runs can identify changes and recoveries.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "recurse": true,
  "maxLinks": 250,
  "concurrency": 20,
  "timeoutMs": 15000,
  "redirects": "warn",
  "requireHttps": "warn",
  "checkFragments": true,
  "checkCss": false,
  "skipPatterns": [],
  "headers": {},
  "snapshotKey": "LINK_INTEGRITY_SNAPSHOT",
  "saveSnapshot": true
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `issues` (type: `string`):

No description

## `snapshots` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://example.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("silicon1235/link-integrity-redirect-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://example.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("silicon1235/link-integrity-redirect-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ]
}' |
apify call silicon1235/link-integrity-redirect-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=silicon1235/link-integrity-redirect-auditor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/h5O0ih3UvHy6gI8av/builds/JbEOAK9pmmVHzG6Be/openapi.json
