# Redirect Map Target Checker (`s.b.furey/redirect-map-target-checker`) Actor

Check old-to-new URL maps against live public redirects. Get expected-target verdicts, HTTP hop traces, wrong destinations, temporary redirects, loops, 404s and HTML canonical/noindex review flags. Export CSV or JSON. Unverified checks have no mapping charge.

- **URL**: https://apify.com/s.b.furey/redirect-map-target-checker.md
- **Developed by:** [Samantha Buckley](https://apify.com/s.b.furey) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 mapping checks

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

## Redirect Map Target Checker

Verify an old-to-new URL map against live public HTTP responses. Get one row per mapping with the full server redirect trace, final URL and status, expected-target comparison, permanent or temporary redirect flags, HTML canonical declarations and observed noindex directives.

Built for SEO agencies, developers and website owners checking a migration, redesign or redirect release. Repeat the same input after launch or after a deployment and compare the dated datasets.

### Run your map

1. Paste up to 100 mappings with `oldUrl` and `expectedUrl`. Add an optional `label`.
2. Set your maximum run cost and press Start.
3. Open Redirect map checks and export CSV, Excel or JSON. The nested `trace` contains every observed hop and Location header.

```json
{
  "mappings": [
    {
      "oldUrl": "https://old.example.com/about",
      "expectedUrl": "https://new.example.com/about",
      "label": "About page"
    }
  ]
}
```

Replace the illustrative domains with your map. The Console example uses a public Apify documentation URL move. Its response may change over time.

### Interpret the results

| Status | Meaning |
| --- | --- |
| PASS | The observed server behavior meets the supplied destination with none of this version's review flags. |
| WARN | A terminal response was observed, with review flags such as temporary redirects, multiple hops, HTML canonical differences or noindex declarations. |
| FAIL | The observed chain has a wrong destination, missing redirect, terminal 404/410, HTTPS downgrade or repeated-URL loop. |
| UNVERIFIED | The audit could not complete because of a timeout, DNS/TLS problem, robots restriction, access/server response, malformed redirect or hop limit. |

The expected destination is compared directly with the terminal URL reached from `oldUrl`. The expected URL is not fetched separately, and any redirect that it would itself make is not inferred. Supply the intended terminal URL. Hostnames and default ports are normalized and fragments are ignored. Path case, trailing slashes, percent encoding and the query string remain significant.

301 and 308 are treated as permanent server redirects. 302, 303 and 307 produce a temporary-redirect review. A mapping where the two URLs are identical can pass without a redirect. More than one redirect produces a multiple-hops review. A loop requires an actually repeated URL. Reaching the ten-hop limit remains unverified.

HTML canonical values, robots/googlebot meta tags and X-Robots-Tag are observations for review. A declared noindex or different canonical can be intentional. These fields do not establish actual Google indexing or the canonical Google chooses. HTTP 200 does not prove semantic page equivalence or rule out a soft 404.

### Pricing

The launch price is **$2 per 1,000 completed mapping checks**, or **$0.002 per check**, with platform usage included. One event covers the redirect chain and its terminal metadata within this Actor's limits.

Completed PASS, WARN and FAIL rows are charged, including an observed 404/410 or a confirmed loop. These are usable audit findings. UNVERIFIED rows have no mapping-event charge. There is no extra run-start event or automatic dataset-row fee. Actor owners are exempt from customer event fees in their own tests.

Use Apify's maximum cost per run to cap spending. `billable` states whether a row qualifies for the mapping event. It does not prove a payment occurred in an owner test. The code uses the custom event `redirect-mapping-checked`.

### Limits and collection

Only public HTTP(S) URLs on standard ports are supported. Each connection pins a validated public DNS address. TLS verification remains enabled. Requests use GET, follow only HTTP Location redirects, respect robots.txt, and pause at least 400 ms between requests to the same origin. Published crawl delays up to ten seconds are honored. Longer delays require manual review.

Each request has a 12-second connection/read timeout and reads at most 512 KiB. Terminal HTML beyond that is marked partial. Missing noindex evidence in a partial body remains unknown. The Actor supports up to ten redirect hops and 100 mappings per run. Your configured run timeout or spending cap may end collection earlier.

JavaScript execution, browser cookies, login, discovered-link crawling, redirect-rule installation, DNS changes and search-ranking measurements are outside this version's scope. Meta-refresh redirects are flagged for review. Blocked and unavailable pages remain unverified.

Outputs stay in the run's dataset. A `SUMMARY` record gives outcome counts. Results are saved as each mapping completes. On a resurrected run, mappings already present in that same dataset are skipped. Separate runs create separate dated audits.

# Actor input Schema

## `mappings` (type: `array`):

Up to 100 mappings, each with oldUrl and expectedUrl. Optional label. Queries are preserved and fragments are ignored.

## Actor input object example

```json
{
  "mappings": [
    {
      "oldUrl": "https://docs.apify.com/platform/actors/development/actor-definition/actor-json",
      "expectedUrl": "https://docs.apify.com/actors/development/actor-definition/actor-json",
      "label": "Apify documentation URL move"
    }
  ]
}
```

# Actor output Schema

## `results` (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 = {
    "mappings": [
        {
            "oldUrl": "https://docs.apify.com/platform/actors/development/actor-definition/actor-json",
            "expectedUrl": "https://docs.apify.com/actors/development/actor-definition/actor-json",
            "label": "Apify documentation URL move"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s.b.furey/redirect-map-target-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 = { "mappings": [{
            "oldUrl": "https://docs.apify.com/platform/actors/development/actor-definition/actor-json",
            "expectedUrl": "https://docs.apify.com/actors/development/actor-definition/actor-json",
            "label": "Apify documentation URL move",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("s.b.furey/redirect-map-target-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 '{
  "mappings": [
    {
      "oldUrl": "https://docs.apify.com/platform/actors/development/actor-definition/actor-json",
      "expectedUrl": "https://docs.apify.com/actors/development/actor-definition/actor-json",
      "label": "Apify documentation URL move"
    }
  ]
}' |
apify call s.b.furey/redirect-map-target-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s.b.furey/redirect-map-target-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/l4E1LkiFJsYzRT9VD/builds/F0OAKmdLvlJSSQvkA/openapi.json
