# HTTP Status Code Checker (`onescales/simple-http-status-code-checker`) Actor

Bulk check HTTP status codes (200, 301, 302, 402, 404, 500, and more) and redirect chains for any list of URLs. A must-have lookup tool for SEO audits, site migrations, and broken link detection

- **URL**: https://apify.com/onescales/simple-http-status-code-checker.md
- **Developed by:** [One Scales](https://apify.com/onescales) (community)
- **Categories:** Developer tools, SEO tools, Other
- **Stats:** 1,695 total users, 5 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $6.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

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

## HTTP Status Checker

This Apify Actor allows you to check the HTTP status codes and detect redirects for a list of URLs. It's a useful tool for SEO audits, website maintenance, and link checking.

[![Watch the video](https://img.youtube.com/vi/UXUX0gY-t04/maxresdefault.jpg)](https://www.youtube.com/watch?v=UXUX0gY-t04)

### Features

- Checks any number of URLs for their HTTP status codes
- Detects redirect responses (3xx status codes)
- Captures the redirect destination URL from the Location header
- Supports Apify Proxy to check URLs from different geolocations and avoid blocking
- Handles request failures gracefully with detailed error reporting
- Uses HttpCrawler for reliable HTTP status checking without content validation

### Input

The Actor requires the following input:

- **Start URLs**: A list of URLs you want to check. You can enter them manually, upload a file, or point to a URL with a list of links.
- **Maximum URLs to check**: An optional number to limit how many URLs from the list will be processed. If empty, all URLs will be checked.
- **Proxy configuration**: Configure Apify Proxy or your own custom proxies to make requests from different IP addresses.

Example Input JSON:

```json
{
  "startUrls": [
    { "url": "https://apify.com/" },
    { "url": "https://apify.com/contact" },
    { "url": "http://example.com/non-existent-page" }
  ],
  "maxRequests": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### Output

The Actor stores its results in a dataset. Each item in the dataset corresponds to one of the initial URLs and contains the following fields:

- `url`: The original URL that was checked
- `statusCode`: The HTTP status code returned by the server
- `isRedirect`: A boolean indicating if the status code was in the 300-399 range
- `redirectURL`: The destination URL from the Location header (only present for redirects)
- `error`: A message indicating if the request failed (empty string if successful)

#### Example Output

```json
[
  {
    "url": "http://apify.com/",
    "statusCode": 301,
    "isRedirect": true,
    "redirectURL": "https://apify.com/",
    "error": ""
  },
  {
    "url": "https://apify.com/",
    "statusCode": 200,
    "isRedirect": false,
    "redirectURL": "",
    "error": ""
  },
  {
    "url": "https://apify.com/non-existent",
    "statusCode": 404,
    "isRedirect": false,
    "redirectURL": "",
    "error": ""
  },
  {
    "url": "https://invalid-domain.example/",
    "statusCode": "",
    "isRedirect": false,
    "redirectURL": "",
    "error": "Request failed, see log for details."
  }
]
```

### Usage

You can run this Actor from the Apify Console by providing the input in the UI, or you can call it programmatically using the Apify API.

For API usage, you will need your Apify API token. Refer to the Apify API documentation for more details.

### Use Cases

- **SEO Audits**: Check for broken links and redirect chains on your website
- **Website Migration**: Verify that old URLs properly redirect to new ones
- **Link Validation**: Ensure external links in your content are working
- **Monitoring**: Regular checks of critical URLs to detect issues early

### Additionals

- Will provide the following status codes: 200, 301, 302, 401, 402, 403, 500 and more.

### Related Keywords

http, http status, http status code, https, https status code, https status, actor, AI, API, apify, at scale, auditor, automated, automation, batch, bulk, checker, converter, crawler, cron, CSV, dataset, detector, downloader, Excel, export, exporter, extractor, fetcher, finder, free tool, generator, Google Sheets, HTML, ifttt, instant, JSON, lookup, make, make.com, maker, mass, MCP, monitor, n8n, no-code, no API key required, parser, PDF, pipeline, report, scanner, schedule, scheduled, scraper, spreadsheet, tool, validator, verifier, webhook, workflow, XML, zapier

# Actor input Schema

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

List of URLs to check. You can provide a list of URLs, or use a file.

## `maxRequests` (type: `integer`):

The maximum number of URLs to check. Leave empty for no limit.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy or your own proxies to avoid getting blocked and to check URLs from different locations.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com/"
    },
    {
      "url": "http://apify.com/"
    },
    {
      "url": "https://www.apify.com/"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Status codes, redirects, and errors for all checked URLs

# 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://apify.com/"
        },
        {
            "url": "http://apify.com/"
        },
        {
            "url": "https://www.apify.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("onescales/simple-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 = { "startUrls": [
        { "url": "https://apify.com/" },
        { "url": "http://apify.com/" },
        { "url": "https://www.apify.com/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("onescales/simple-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 '{
  "startUrls": [
    {
      "url": "https://apify.com/"
    },
    {
      "url": "http://apify.com/"
    },
    {
      "url": "https://www.apify.com/"
    }
  ]
}' |
apify call onescales/simple-http-status-code-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,onescales/simple-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/xKhlvYGLOF7cFj3i6/builds/PaD1y2UaZ5rfCvP6w/openapi.json
