# Indexability Checker (noindex, robots.txt) (`plainpipe/indexability-checker`) Actor

Check if URLs can be indexed: robots.txt, redirects, meta robots, X-Robots-Tag, canonical, plus a verdict and reasons. Use to find noindex pages.

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

## Pricing

$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

## Indexability Checker (noindex, robots.txt)

Check if URLs can be indexed: robots.txt rule, status and redirect chain, meta robots, X-Robots-Tag, canonical, hreflang, plus indexable yes/no and reasons.

### What it does

Give it a list of page URLs. For each one it reads the site's robots.txt, checks the URL against the `Googlebot` group (or the `*` group when there is none) and the generic `*` group, then fetches the page without auto-following redirects so the full redirect chain is recorded. It reads the `X-Robots-Tag` header, `meta name="robots"` and `meta name="googlebot"`, the canonical link (HTML or `Link` header) and counts hreflang alternates. Each row ends with `indexable: true/false` and a plain list of reasons.

### Use cases

- Find out why a page is missing from search results: robots.txt, noindex, canonical or redirect.
- Check a URL list after a site migration, before a launch, or after a CMS or plugin update.
- Catch staging leftovers such as a sitewide `noindex` or `Disallow: /` on production.
- Confirm that canonicals point to themselves on the pages you want to rank.
- Check PDFs and other files for `X-Robots-Tag: noindex` headers.

### How to use it

1. Paste the page URLs into **Page URLs**, one per line. `example.com` is read as `https://example.com`.
2. Optionally lower **Max results** to cap the number of URLs, and with it the cost.
3. Run the Actor. Results land in the dataset; export them as JSON, CSV or Excel, or read them through the Apify API.

### Input

| Field | What it is | Default | Example |
|---|---|---|---|
| `urls` (required) | Page URLs to check. Invalid entries are skipped with a log warning. | none | `["https://example.com/blog/post", "http://example.com/old"]` |
| `maxItems` | Check at most this many URLs. | `100` | `1000` |

Example input:

```json
{ "urls": ["https://docs.apify.com", "http://wikipedia.org"], "maxItems": 2 }
```

### Output

One row per URL. Real rows from a run on `https://docs.apify.com` and `http://wikipedia.org`:

```json
[
  {
    "url": "https://docs.apify.com/",
    "finalUrl": "https://docs.apify.com/",
    "statusCode": 200,
    "redirectChain": [],
    "robotsTxtAllowed": true,
    "robotsTxtRule": null,
    "robotsTxtGroup": "*",
    "metaRobots": null,
    "metaGooglebot": null,
    "xRobotsTag": null,
    "canonical": "https://docs.apify.com/",
    "canonicalIsSelf": true,
    "hreflangCount": 2,
    "indexable": true,
    "reasons": []
  },
  {
    "url": "http://wikipedia.org/",
    "finalUrl": "https://www.wikipedia.org/",
    "statusCode": 200,
    "redirectChain": [
      { "url": "http://wikipedia.org/", "statusCode": 301, "location": "https://wikipedia.org/" },
      { "url": "https://wikipedia.org/", "statusCode": 301, "location": "https://www.wikipedia.org/" }
    ],
    "robotsTxtAllowed": true,
    "robotsTxtRule": null,
    "robotsTxtGroup": "*",
    "metaRobots": null,
    "metaGooglebot": null,
    "xRobotsTag": null,
    "canonical": null,
    "canonicalIsSelf": null,
    "hreflangCount": 0,
    "indexable": false,
    "reasons": ["redirect"]
  }
]
```

| Field | Meaning |
|---|---|
| `indexable`, `reasons` | Verdict and why. An empty `reasons` list means indexable. |
| `robotsTxtAllowed`, `robotsTxtRule`, `robotsTxtGroup` | The robots.txt result, the matching rule (or `null`) and the user-agent group used. |
| `redirectChain`, `finalUrl`, `statusCode` | Every redirect hop, where it ended and the final status. |
| `metaRobots`, `metaGooglebot`, `xRobotsTag` | Robots directives from the HTML and the HTTP header. |
| `canonical`, `canonicalIsSelf` | The canonical URL and whether it equals the final URL. |
| `hreflangCount` | Number of hreflang alternates in the HTML. |

`reasons` can contain: `blocked by robots.txt`, `redirect target blocked by robots.txt`, `redirect`, `4xx client error`, `5xx server error`, `noindex meta`, `noindex X-Robots-Tag`, `canonical points elsewhere`, `too many redirects`, `redirect loop`.

### Pricing

Pay per result: **$1.00 per 1,000 results** ($0.001 per result). You only pay for results the Actor returns. Set a maximum total charge on the run to cap your spend.

### Limits

- URLs that robots.txt disallows are reported with `robotsTxtAllowed: false` and are not fetched, so their meta tags and canonical stay empty.
- A robots.txt that returns HTTP 5xx is treated as "disallow all"; a missing (4xx) or unreachable robots.txt as "allow all".
- Reads the HTML the server returns. It does not run JavaScript, so tags added in the browser are not seen.
- Follows at most 10 redirects. Only HTTP status, headers and HTML tags are checked; it does not query any search index, so it cannot tell whether a page is actually indexed.
- URLs that cannot be reached at all (DNS or network failure) produce no result and cost nothing. If no URL can be checked, the run fails with zero results.
- One request per second per host.

### FAQ

**How much does it cost?** $1.00 per 1,000 checked URLs. Unreachable URLs are free.

**Does `indexable: true` mean the page is in search results?** No. It means nothing on the page, its headers or robots.txt stops indexing. Whether a search engine has indexed it is a separate question this Actor does not answer.

**Why is a redirecting URL "not indexable"?** Search engines index the redirect target, not the old URL. The row shows the full chain and the final URL, so you can check the target instead.

**Need the URL list first, or the redirect headers in detail?** See Plain Pipe's Sitemap URL Extractor for every URL a site lists, and Plain Pipe's HTTP Headers & Redirect Checker for all response headers.

**Can I schedule it?** Yes. Use Apify Schedules for recurring checks and the Apify API, webhooks or integrations to get alerts or spreadsheets.

### Legal and data

This Actor processes only what you give it or public, non-personal technical data. It does not log in anywhere, does not collect personal data, and does not bypass paywalls, CAPTCHAs or access controls. You are responsible for having the right to process the inputs you provide.

### Support

Open an issue on the Issues tab. Issues are answered within 14 days.

**Use this when:** you need to know whether specific pages can be indexed by search engines and, if not, exactly which robots.txt rule, noindex directive, redirect or canonical blocks them.

### Why this one

- $1.00 per 1,000 results ($0.001 per checked URL); unreachable URLs cost nothing.
- Each row names the matching robots.txt rule and user-agent group, every redirect hop, meta robots and `X-Robots-Tag` directives, whether the canonical points to itself, the hreflang count and a plain `reasons` list behind the yes/no verdict.
- Pages disallowed by robots.txt are reported without being fetched. Plain HTTP requests: no browser and no proxy needed; the 2-URL prefill run finishes in a few seconds.
- The prefilled input is test-run daily.

Built and maintained by Plain Pipe.

# Actor input Schema

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

Pages to check, one per line, e.g. https://example.com/blog/post. A bare domain is read as https://. robots.txt is read first; pages it disallows are reported but not fetched. Redirects are followed and recorded.

## `maxItems` (type: `integer`):

Check at most this many URLs, e.g. 1000. You are charged per checked URL, so this also caps the cost. Default 100.

## Actor input object example

```json
{
  "urls": [
    "https://docs.apify.com",
    "https://apify.com/pricing"
  ],
  "maxItems": 2
}
```

# Actor output Schema

## `results` (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": [
        "https://docs.apify.com",
        "https://apify.com/pricing"
    ],
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainpipe/indexability-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://docs.apify.com",
        "https://apify.com/pricing",
    ],
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("plainpipe/indexability-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://docs.apify.com",
    "https://apify.com/pricing"
  ],
  "maxItems": 2
}' |
apify call plainpipe/indexability-checker --silent --output-dataset

```

## MCP server setup

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