# Check HTTP status codes of many URLs

**Use case:** 

Sends a HEAD request to every URL and records the final HTTP status, the URL after redirects, the time and the response headers. Pages that are down or missing show up at once. This example checks three Apify pages.

## Input

```json
{
  "urls": [
    "https://apify.com/klarto",
    "https://docs.apify.com/platform",
    "https://apify.com/this-page-does-not-exist-klarto"
  ],
  "method": "HEAD",
  "parseJson": true,
  "maxResponseKb": 512,
  "includeResponseHeaders": true,
  "followRedirects": true,
  "maxRequests": 1000,
  "maxConcurrency": 10,
  "maxPerSite": 4,
  "delayMs": 0,
  "timeoutSecs": 30,
  "maxRetries": 2,
  "retryNonIdempotent": false
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "method": {
    "label": "Method",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "httpStatus": {
    "label": "HTTP",
    "format": "number"
  },
  "contentType": {
    "label": "Type",
    "format": "text"
  },
  "bytes": {
    "label": "Bytes",
    "format": "number"
  },
  "ms": {
    "label": "ms",
    "format": "number"
  },
  "attempts": {
    "label": "Tries",
    "format": "number"
  },
  "charged": {
    "label": "Charged",
    "format": "boolean"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The HTTP Request Runner: Bulk API Calls from URLs & Datasets Actor is ready to run with the inputs already set for "Check HTTP status codes of many URLs". [Sign up or log in](https://console.apify.com/create-task-from-example/jiTBGuDcUrqMpr9yb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check HTTP status codes of many URLs" task

The HTTP Request Runner: Bulk API Calls from URLs & Datasets Actor will start running based on the input automatically. You can also change all the input fields, like URLs, method, and more, to match your specific use case.

### 3. Receive the "Check HTTP status codes of many URLs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as #, ID, method, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check HTTP status codes of many URLs" task via API](https://apify.com/klarto/http-request-runner.md).

## FAQ

### Why does the status check use HEAD?

A HEAD request asks only for the status and headers, so the status check task reads no page bodies. Some servers do not support HEAD; use GET with Max response size 1 KB for those.

### Are redirects followed?

Yes. The status check task follows up to 10 redirects and reports the final status and finalUrl. Turn off Follow redirects to see the 3xx answer itself.

### What does the status check cost?

The status check task charges $0.002 for each URL that answers, whatever the status code. URLs that do not resolve or time out are free.

## About this Actor

This example demonstrates how to use [HTTP Request Runner: Bulk API Calls from URLs & Datasets](https://apify.com/klarto/http-request-runner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/klarto/http-request-runner.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/klarto/http-request-runner.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`).
