# Check URLs for 404s and redirects

**Use case:** 

Bulk-check HTTP status with HEAD→GET fallback, capture final URL, timing, and error class (dns/timeout/ssl/http). Chain from Sitemap Actor output to drop dead links before RAG ingest.

## Input

```json
{
  "urls": [
    {
      "url": "https://example.com/"
    },
    {
      "url": "https://httpbin.org/status/404"
    }
  ],
  "keyValueRecordKey": "DOC_TO_MARKDOWN_INPUT",
  "maxUrls": 100,
  "outputFilter": "all",
  "httpMethod": "head_then_get",
  "followRedirects": true,
  "maxConcurrency": 8,
  "maxConcurrencyPerHost": 2,
  "minDelayMsPerHost": 0,
  "requestTimeoutSecs": 20,
  "maxRetries": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "httpStatus": {
    "label": "HTTP",
    "format": "number"
  },
  "statusClass": {
    "label": "Class",
    "format": "text"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "link"
  },
  "contentType": {
    "label": "Content-Type",
    "format": "text"
  },
  "durationMs": {
    "label": "ms",
    "format": "number"
  },
  "errorClass": {
    "label": "Error class",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk URL Status Checker — 404s & Redirects](https://apify.com/ingenious_quip_bxq/url-status-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ingenious_quip_bxq/url-status-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/ingenious_quip_bxq/url-status-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`).
