# AI Visibility Site Audit — robots.txt & llms.txt checks (`43sunsets/ai-visibility-site-audit`) Actor

Audit how visible your own website is to AI crawlers and assistants: robots.txt rules for 13 AI bots, llms.txt, structured data, meta hygiene and sitemap — with a scored report and a ready-to-edit llms.txt draft.

- **URL**: https://apify.com/43sunsets/ai-visibility-site-audit.md
- **Developed by:** [Ken Yao](https://apify.com/43sunsets) (community)
- **Categories:** Developer tools, Automation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $250.00 / 1,000 report generateds

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/platform/actors/running/actors-in-store#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

## AI Visibility Site Audit

Find out — in one run — whether AI crawlers and assistants can actually see your website, and what they see.

AI assistants are becoming a real discovery channel. But their crawlers read your site differently than Google does, and most sites have never checked what those bots are allowed to access. This Actor audits **your own site** and returns a scored report (0–100) plus a ready-to-edit `llms.txt` draft.

### What it checks

1. **AI crawler access** — your `robots.txt` rules evaluated for 13 AI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-Web, anthropic-ai, Google-Extended, PerplexityBot, CCBot, Bytespider, Amazonbot, Applebot-Extended, meta-externalagent). Blocked, partial or allowed — per bot, with the exact rule that applies.
2. **llms.txt / llms-full.txt** — present or not, plus a generated draft built from your actual pages.
3. **Structured data** — JSON-LD presence and types per page (unparseable blocks are flagged too).
4. **Titles & meta descriptions** — presence and length hygiene on every crawled page.
5. **Canonical & indexability** — canonical tags and accidental `noindex`.
6. **sitemap.xml** — present or not.
7. **Thin / JS-rendered content** — pages whose raw HTML contains almost no text, which is what many bots actually see.

### What you get

- `REPORT` (Markdown, in the run's key-value store): the full scored audit with per-bot table, per-page findings, and your llms.txt draft.
- Dataset: one row per crawled page with all checks, ready to sort and filter.
- `OUTPUT`: the summary object (score, grade, category breakdown) for automation.

### Real output — even IANA fails these checks

An unedited run against `iana.org` — the organization that runs the Internet's namespace. 5 pages, 6 seconds, $0.002 of compute:

| Page | Title OK | Meta desc | JSON-LD | Canonical | Flags |
|---|---|---|---|---|---|
| `/` | ✅ | ❌ | ❌ | ✅ | no meta description; no structured data |
| `/domains/root` | ✅ | ❌ | ❌ | ❌ | no meta description; no canonical; no structured data |
| `/about` | ❌ | ❌ | ❌ | ❌ | title length 8; no meta description; no canonical; no structured data |
| `/domains` | ✅ | ❌ | ❌ | ❌ | no meta description; no canonical; no structured data |
| `/domains/root/db` | ✅ | ❌ | ❌ | ❌ | no meta description; no canonical; no structured data |

If IANA scores like this, what would your site score? Run the audit below to find out.

### Input

| Field | Description |
|---|---|
| `startUrl` | Your website. The crawl stays on this hostname only. |
| `maxPages` | Page limit (default 25, max 200). Each crawled page is one billed event. |

### Honest notes

- **llms.txt is an emerging convention.** Google has publicly stated it does not affect ranking, and adoption by AI tools is uneven. We report it as low-cost hygiene, not a magic growth switch.
- **Static analysis.** Pages are fetched as raw HTML without JavaScript rendering — which is exactly how many crawlers see them. Pages that depend on JS are flagged rather than rendered.
- **Blocking AI bots can be the right choice.** The audit makes your current state visible so it is a decision, not an accident.
- The Actor audits only the site you provide, stays on the same hostname, and **respects robots.txt** during its own crawl.

### Pricing

Pay per event: a small start fee, a per-page fee for each crawled page, and a report fee. Control cost with `maxPages` — a 25-page audit costs well under a dollar.

# Actor input Schema

## `startUrl` (type: `string`):

The site you own or manage. The audit crawls this site only, stays on the same hostname, and respects robots.txt.

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

Upper limit of pages crawled (each crawled page is billed as one page-crawled event).

## Actor input object example

```json
{
  "startUrl": "https://www.example.com",
  "maxPages": 25
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("43sunsets/ai-visibility-site-audit").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("43sunsets/ai-visibility-site-audit").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call 43sunsets/ai-visibility-site-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=43sunsets/ai-visibility-site-audit",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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