# HTTP Status Code Checker & Bulk URL Checker API (`pink_comic/http-status-code-checker`) Actor

Bulk URL checker and HTTP status scraper for SEO audits. Check status codes, 301/302 redirect chains, response times, content types, and broken URLs. Use the API for website status checks, migrations, monitoring workflows, and link QA.

- **URL**: https://apify.com/pink_comic/http-status-code-checker.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 40 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## HTTP Status Code Checker & Bulk URL Checker API

Check current HTTP status evidence for up to 10,000 URLs per run. The actor sends an HTTP GET request to each URL and returns the final status code, redirect chain, response time, content type, final URL, and an explicit broken/error flag. The three-URL first run costs at most **$0.0031** including the minimum start event.

### Use cases

- **SEO audits** — find 4xx/5xx pages and redirect chains before migrations or content releases
- **Bulk URL validation** — check URL lists from sitemaps, spreadsheets, CRMs, or link exports
- **Redirect mapping** — capture 301, 302, 307, and 308 hops during site migrations
- **Monitoring workflows** — schedule repeated point-in-time checks for critical URLs
- **Link QA** — identify connection errors, timeouts, moved pages, and changed content types

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | array of strings | Three deterministic test URLs | URLs to check, one per line |
| `followRedirects` | boolean | `true` | Follow redirects and record the chain |
| `maxRedirects` | integer | `10` | Maximum redirects per URL |
| `timeout` | integer | `30` | Request timeout in seconds |
| `concurrency` | integer | `10` | Parallel requests |
| `maxResults` | integer | `3` | Total paid URL-record cap; increase up to 10,000 for bulk checks |

### Output

Each non-empty input URL produces one record:

| Field | Type | Description |
|---|---|---|
| `url` | string | Original URL submitted |
| `statusCode` | integer | Final HTTP status code; `0` when no HTTP response was received |
| `statusText` | string | Standard status text such as `OK` or `Not Found` |
| `finalUrl` | string | Final URL after followed redirects; empty when the request failed before a response |
| `redirectChain` | array | Ordered redirect hops with URL and status code |
| `responseTimeMs` | integer | Total elapsed time for the request and followed redirects |
| `contentType` | string | Final response `Content-Type` header |
| `isBroken` | boolean | `true` for HTTP 4xx/5xx responses or request/connection errors |
| `error` | string | Request, DNS, TLS, timeout, or redirect-limit error when present |

### Example output

```json
{
  "url": "http://github.com",
  "statusCode": 200,
  "statusText": "OK",
  "finalUrl": "https://github.com/",
  "redirectChain": [
    { "url": "http://github.com", "statusCode": 301 }
  ],
  "responseTimeMs": 142,
  "contentType": "text/html; charset=utf-8",
  "isBroken": false
}
```

### Interpretation limits

Results are point-in-time network evidence from the actor's execution environment, not a continuous uptime guarantee. A `2xx` response does not prove that page content, JavaScript, authentication, or application behavior is correct. WAFs, robots policies, rate limits, geolocation, and transient network conditions can produce different results for another user or region. Re-run important checks and inspect the target directly before acting on a status change.

### Bulk reliability and cost control

The actor checks and saves large URL lists in bounded 500-record batches rather than sending one oversized dataset request. `maxResults` is a total response cap, and an Apify maximum-total-charge limit can reduce it further before requests begin.

### Pricing

Pay per event: **$0.0001 minimum actor-start event plus $0.001 per output record** (about $1 per 1,000 checked URLs, plus the start event). The three-record default costs at most **$0.0031**. Apify displays an estimated maximum before each run.

# Actor input Schema

## `urls` (type: `array`):

List of URLs to check. Enter one URL per line. The three-URL default returns 200, redirect, and 404 evidence for at most $0.0031 including the minimum start event.

## `followRedirects` (type: `boolean`):

Follow HTTP redirects and record the full redirect chain. When disabled, returns the status of the first response only.

## `maxRedirects` (type: `integer`):

Maximum number of redirects to follow per URL before giving up.

## `timeout` (type: `integer`):

Request timeout in seconds. Requests that exceed this limit are marked as errors.

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

Number of URLs to check simultaneously. Higher values are faster but use more memory.

## `maxResults` (type: `integer`):

Total maximum URL records to return at $0.001 per item. The default is three records (up to $0.0031 including the minimum start event). Larger runs are processed and saved in bounded batches.

## Actor input object example

```json
{
  "urls": [
    "https://httpbin.org/status/200",
    "https://httpbin.org/redirect/2",
    "https://httpbin.org/status/404"
  ],
  "followRedirects": true,
  "maxRedirects": 10,
  "timeout": 30,
  "concurrency": 10,
  "maxResults": 3
}
```

# 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 = {
    "urls": [
        "https://httpbin.org/status/200",
        "https://httpbin.org/redirect/2",
        "https://httpbin.org/status/404"
    ],
    "maxResults": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/http-status-code-checker").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 = {
    "urls": [
        "https://httpbin.org/status/200",
        "https://httpbin.org/redirect/2",
        "https://httpbin.org/status/404",
    ],
    "maxResults": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/http-status-code-checker").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://httpbin.org/status/200",
    "https://httpbin.org/redirect/2",
    "https://httpbin.org/status/404"
  ],
  "maxResults": 3
}' |
apify call pink_comic/http-status-code-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pink_comic/http-status-code-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uNgTh1hy8hxUhzvsB/builds/HWfkOvsFwirVvP3cf/openapi.json
