# URL Status Checker: Redirect Maps, Sitemaps & Broken Links (`pikoulas/url-status-checker`) Actor

Check URLs in bulk: status, every redirect hop, final URL, title, canonical, noindex. Verify a migration's redirect map, audit every URL in a site's sitemaps, crawl for broken links, and get each URL's issues named and summed up. $1 per 1,000 URLs.

- **URL**: https://apify.com/pikoulas/url-status-checker.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 url checkeds

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?

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

## URL Status Checker: Redirect Maps, Sitemaps & Broken Links

Give it URLs, and get back what each one answers and what is wrong with it, as JSON, CSV or Excel.
The URLs can come five ways, in one run or apart:

- **A list:** any number of URLs.
- **A redirect map:** after a site migration, paste the old URLs each with the URL it should now
  redirect to. Each old URL is followed to its end and says whether it landed there
  (`matchesExpected`), or names `wrong-target` or `not-redirected`.
- **Sitemaps:** give a site, and every URL its sitemaps list is checked (from `robots.txt`, or the
  usual paths; indexes and `.gz` followed), each row saying which sitemap lists it. A sitemap
  should list only final, indexable pages: on healthline.com, 146 of the first 200 URLs listed
  redirected and 52 were gone (HTTP 404 or 410).
- **Broken links:** give pages under **Check the links on these pages** and every link on them is
  checked too, each row saying which page it was found on and its link text.
- **A whole site:** give its home page under **Crawl these sites** and every page reached through
  the site's own links is checked, up to **Max pages to crawl**, with every link on those pages.

For each URL: the HTTP status, every redirect hop with its status and `Location`, the final URL and
what the redirects changed (`https`, `www`, `domain`, `path`, `query`), response time, content
type and size, title, canonical, and robots directives from the `X-Robots-Tag` header and the
robots meta tag; or why there's no answer (DNS, TLS, timeout, a refused connection, a redirect loop).
Each row names its **issues**, and the run's **summary** counts statuses and issues with example
URLs. With **Only changed URLs**, a scheduled run gives only the URLs whose answer changed.

It costs **$1 per 1,000 URLs** on Apify's paid plans and $1.50 on the free plan. Reading sitemaps is
free, and so is a URL it doesn't check because its site's `robots.txt` refuses it or the site
refused an earlier request.

### The issues it names

| Issue | What it means |
|---|---|
| `broken` | A 4xx or 5xx answer, or none: DNS, TLS, timeout or a refused connection. |
| `redirect-loop`, `too-many-redirects` | The redirects never end, or take more than 10 hops. |
| `redirect-chain` | Two or more hops where one would do. |
| `temporary-redirect` | A 302, 303 or 307 on the way, where a move is usually meant to be a 301 or 308. |
| `https-downgrade` | A hop from `https` to `http`. |
| `soft-404` | A 200 whose title says the page isn't found. |
| `noindex` | The page asks search engines not to index it, by header or meta tag. |
| `canonical-elsewhere` | The page's canonical is another URL. |
| `slow` | Over 3 seconds to the final answer, all hops together. |
| `listed-redirect` | A sitemap lists a URL that redirects, where it should list the final URL. |
| `wrong-target`, `not-redirected` | A redirect map's old URL lands somewhere else, or doesn't redirect. |

### What people use it for

- **Site migrations:** the redirect map checked before and after launch, every old URL landing on
  its new one with a single 301.
- **Technical SEO:** sitemaps that list redirects, 404s or `noindex` pages, redirect chains, `http`
  to `https` and `www` moves, canonicals, and broken links on a site.
- **Link checking:** dead links in your pages, your docs or a list of backlinks.
- **Monitoring:** a daily check of the pages that matter, told only when one stops answering 200.
- **Data cleaning:** which URLs in a list still work, and where the moved ones went.

### How to check URLs

1. Click **Try for free**; Apify's free plan covers a first run.
2. Paste the **URLs** or a **Redirect map**, a site under **Check every URL in these sitemaps**,
   pages under **Check the links on these pages**, or a home page under **Crawl these sites**.
3. Click **Start**, then open the results from the **Output** tab: the overview, the redirect
   map, and the summary. Download them as JSON, CSV or Excel.
4. To monitor them, turn on **Only changed URLs** and add a **Schedule** to the task.

An input with every option:

```json
{
  "urls": ["http://github.com", "https://www.python.org/", "https://httpbin.org/status/404"],
  "redirectMap": ["http://python.org/doc/ https://docs.python.org/", "https://site.com/old-page -> /new-page"],
  "sitemaps": ["https://www.healthline.com/"],
  "maxSitemapUrls": 10000,
  "linksOn": ["https://www.python.org/"],
  "crawl": ["https://example.com/"],
  "maxPages": 500,
  "linkScope": "all",
  "maxLinksPerPage": 1000,
  "followRedirects": true,
  "onlyChanged": false,
  "memory": "default"
}
```

A redirect map takes one pair a line, the old URL then the new one, apart by a space, a comma, a tab
or `->`; the new one may be a path on the old URL's site. A redirect map's URLs are always followed
to their end. For a site under sitemaps, a section such as `/news/` is read from its own
`sitemap.xml` when it has one, else the site's.

### Output

A URL from a sitemap that redirects (healthline.com, November 2026):

```json
{
  "url": "https://www.healthline.com/health-news/half-of-women-are-given-wrong-antibiotic-for-utis-heres-why",
  "status": 200,
  "ok": true,
  "finalUrl": "https://www.healthline.com/health/medicine-for-urinary-tract-infection",
  "redirects": 1,
  "redirectChain": [
    {"url": "https://www.healthline.com/health-news/half-of-women-are-given-wrong-antibiotic-for-utis-heres-why", "status": 301, "location": "https://www.healthline.com/health/medicine-for-urinary-tract-infection"},
    {"url": "https://www.healthline.com/health/medicine-for-urinary-tract-infection", "status": 200}
  ],
  "moves": ["path"],
  "responseTimeMs": 708,
  "contentType": "text/html; charset=utf-8",
  "contentLength": null,
  "title": "Medicine for Urinary Tract Infection: Antibiotics and Pain Relief",
  "canonical": "https://www.healthline.com/health/medicine-for-urinary-tract-infection",
  "robots": "NOODP",
  "errorType": null,
  "error": null,
  "sitemap": "https://www.healthline.com/hlcms-articles-99.xml",
  "issues": ["listed-redirect"],
  "checkedAt": "2026-11-21T16:07:56Z"
}
```

A redirect map's row adds `expectedUrl` and `matchesExpected`:

```json
{
  "url": "http://python.org/doc/",
  "status": 200,
  "ok": true,
  "finalUrl": "https://www.python.org/doc/",
  "redirects": 1,
  "expectedUrl": "https://docs.python.org/",
  "matchesExpected": false,
  "issues": ["wrong-target"]
}
```

The summary, in the run's `SUMMARY` record (600 sitemap URLs from three sites; examples cut to one):

```json
{
  "checked": 599,
  "ok": 545,
  "notOk": 54,
  "redirected": 258,
  "statuses": {"200": 545, "410": 49, "404": 5},
  "issues": [
    {"issue": "listed-redirect", "urls": 258, "examples": ["https://www.healthline.com/health-news/how-not-talking-about-sex-could-kill-you-121114"]},
    {"issue": "broken", "urls": 54, "examples": ["https://www.bbcgoodfood.com/app-screen/home-australia"]},
    {"issue": "noindex", "urls": 2, "examples": ["https://www.healthline.com/health-news/keto-ranked-low-dash-ranked-high-on-new-diet-list"]},
    {"issue": "redirect-chain", "urls": 1, "examples": ["https://www.healthline.com/health/breast-cancer/breast-cancer-survivor-and-covid-vaccine"]}
  ],
  "sitemaps": [
    {"site": "https://wordpress.org/news/", "sitemapsRead": 19, "urls": 200},
    {"site": "https://www.healthline.com/", "sitemapsRead": 2, "urls": 200},
    {"site": "https://www.bbcgoodfood.com/", "sitemapsRead": 5, "urls": 200}
  ]
}
```

`ok` is true for a final 2xx answer (and for a redirect, with **Follow redirects** off). Otherwise
`errorType` is `status` (a 4xx or 5xx, with the status), `dns`, `tls`, `timeout`, `connection`,
`redirect-loop` or `too-many-redirects`; for a URL left unchecked and free it is `robots`,
`refused`, `check-page`, `not-public` or `invalid`, and it has no issues. Links add `foundOn` and
`linkText`; sitemap URLs add `sitemap`; **Only changed URLs** adds `change` (`new` or `changed`)
and `previousStatus`. `responseTimeMs` adds up every hop, and the title, canonical and robots meta
come from the first 512 KB of an HTML page.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~url-status-checker/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"redirectMap": ["http://python.org/doc/ https://docs.python.org/"], "sitemaps": ["https://example.com/"]}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/url-status-checker`.

### How much does it cost?

A URL checked is $0.001, so 1,000 URLs cost $1 ($1.50 on Apify's free plan), whatever it finds:
an answer, a redirect chain, or no answer at all. With **Only changed URLs**, every URL checked is
charged, also those that didn't change and so aren't given. A URL left unchecked is free. A crawl
counts each page it reads and each link it checks: a 200-page site whose pages link to 300
other URLs costs $0.50. Set a spending limit on a run and it stops there.

### Good to know

- **Each site is checked politely:** two requests a second at most, or the crawl delay its
  `robots.txt` asks for (up to 10 seconds), while many sites are checked at once, so a site with a
  long crawl delay sets how long a run on it takes: healthline.com asks for 5 seconds, so 200 of its
  URLs took about 20 minutes. A URL its `robots.txt` refuses
  isn't fetched, and that holds for every site a redirect or link leads to.
- **A site that refuses is left alone:** a 401, 402 (pay per crawl), 403, 429 or 451 answer, or a
  verification page, is given as that URL's result, and that site's other URLs aren't checked in
  the run (free, with `errorType: "refused"`). It doesn't try to get past a refusal, names itself in its User-Agent
  and uses no proxy, so sites that turn away automated visitors answer it so.
- **Only public addresses are reached,** redirects included: not private networks, and only web
  ports among those below 1024.
- **Each URL is fetched with GET** and only its first bytes are read when it isn't HTML, so a link
  to a large file costs no more than any other.
- A run that has a timeout stops shortly before it and finishes as succeeded with what it has
  checked; the log says how many URLs were left.
- **Contact.** The Actor keeps nothing itself: results and its memory sit in the storage of
  whoever ran it. Questions or requests go to spyridwn.pd@gmail.com.

### FAQ

#### How do I check my redirects after a site migration?

Paste the old URLs under **Redirect map**, each with the URL it should go to, one pair a line, as
exported from your redirect plan. Open the **Redirect map** view: `matchesExpected` is false for
every old URL that lands elsewhere (`wrong-target`), doesn't redirect (`not-redirected`) or ends
broken, and `issues` adds the chains and temporary redirects worth flattening into one 301.

#### How do I audit my sitemap?

Put your site under **Check every URL in these sitemaps**. Each URL listed is checked, and the
summary counts those that redirect (`listed-redirect`), are broken, `noindex` or canonicalized
elsewhere: each one a URL search engines are told to index that they shouldn't.

#### How do I find broken links on my website?

Put your home page under **Crawl these sites**, or only some pages under **Check the links on
these pages**, and **Which links** on "Only links to the same site" for internal ones or "All
links" for every one. Sort the results by `ok`: each broken link comes with `foundOn`, the pages
to fix (up to 20), and its `linkText`. A crawl reads the pages nearest the home page first and
reaches only pages that some page links to.

#### How do I get told when a page goes down or starts redirecting?

Turn on **Only changed URLs**, save the input as a task and add a schedule, such as every hour.
Each run gives only the URLs whose status, final URL, redirects or error changed, with
`previousStatus`; connect the task to email, Slack or a webhook through Apify's integrations.

#### Is it legal to check URLs?

It requests each URL once, as any browser or link checker would, keeps to each site's
`robots.txt`, and reads only the status, headers, title and links. What you do with the results is
your own responsibility; if you're unsure, ask a lawyer. Apify's
[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

The URLs to check, any number. A bare domain such as example.com is read as https://example.com/.

## `redirectMap` (type: `array`):

One pair a line, the old URL then the URL it should redirect to, apart by a space, a comma, a tab or ->. The new one may be a path on the old URL's site. Each old URL is followed to its end and says whether it landed there (matchesExpected), or names wrong-target or not-redirected in its issues: a site migration's redirects checked in one run.

## `sitemaps` (type: `array`):

Sites or sitemap URLs. For a site, the sitemaps its robots.txt names are read, or else the first at a usual path (/sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml, /sitemap.txt); indexes and .gz files are followed. Each URL listed is checked, and says which sitemap lists it. A sitemap should list only final, indexable pages, so a listed URL that redirects, is noindex, broken or canonicalized elsewhere is named in its issues.

## `maxSitemapUrls` (type: `integer`):

The most URLs taken from each site or sitemap above, in the sitemaps' order.

## `linksOn` (type: `array`):

Pages whose links are checked too, to find the broken ones. Each row says which of these pages a link was found on.

## `crawl` (type: `array`):

Start pages, usually a home page: every page of the same site reached through links from it is checked, and so is every link on those pages, to find all broken links on a site. Each page checked counts as a URL.

## `maxPages` (type: `integer`):

The most pages of the sites above whose links are read, nearest the start first. Links found on them are checked whatever this is.

## `linkScope` (type: `string`):

Which links on the pages above and the crawled pages are checked. The same site counts with or without www. A crawl follows the site's own links whatever this is.

## `maxLinksPerPage` (type: `integer`):

The first links of each page, in page order, checked.

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

Follow each redirect to the final URL, giving every hop. Off, the first answer is the result, and a redirect counts as OK; with a redirect map, redirects are followed whatever this is.

## `onlyChanged` (type: `boolean`):

Give only the URLs whose status, final URL, redirect count or error differs from the last run with the same memory name, or that are new to it. Run it on a schedule to be told when a page breaks or starts redirecting. Every URL checked is still charged.

## `memory` (type: `string`):

Runs with the same memory name compare against each other. Use another name for each list you monitor. The memory is a key-value store named url-status-checker-memory in your account.

## Actor input object example

```json
{
  "urls": [
    "http://github.com",
    "https://www.python.org/",
    "https://httpbin.org/status/404"
  ],
  "redirectMap": [
    "http://python.org/doc/ https://docs.python.org/"
  ],
  "maxSitemapUrls": 20,
  "maxPages": 20,
  "linkScope": "all",
  "maxLinksPerPage": 20,
  "followRedirects": true,
  "onlyChanged": false,
  "memory": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `redirectMap` (type: `string`):

No description

## `summary` (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 = {
    "urls": [
        "http://github.com",
        "https://www.python.org/",
        "https://httpbin.org/status/404"
    ],
    "redirectMap": [
        "http://python.org/doc/ https://docs.python.org/"
    ],
    "maxSitemapUrls": 20,
    "maxPages": 20,
    "maxLinksPerPage": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/url-status-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": [
        "http://github.com",
        "https://www.python.org/",
        "https://httpbin.org/status/404",
    ],
    "redirectMap": ["http://python.org/doc/ https://docs.python.org/"],
    "maxSitemapUrls": 20,
    "maxPages": 20,
    "maxLinksPerPage": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/url-status-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": [
    "http://github.com",
    "https://www.python.org/",
    "https://httpbin.org/status/404"
  ],
  "redirectMap": [
    "http://python.org/doc/ https://docs.python.org/"
  ],
  "maxSitemapUrls": 20,
  "maxPages": 20,
  "maxLinksPerPage": 20
}' |
apify call pikoulas/url-status-checker --silent --output-dataset

```

## MCP server setup

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