# Website SEO, AI-Search (llms.txt) & Security Audit API (`whthpnd/seo-geo-security-audit-api`) Actor

Fast, proxy-free SEO, AI-Search Readiness (GEO / llms.txt & AI bot permissions), and SSL/Security Headers Audit Actor & Standby REST API. Inspect on-page SEO tags, Schema.org JSON-LD, GPTBot/ClaudeBot/PerplexityBot access, TLS expiry, HSTS/CSP, and actionable audit scores.

- **URL**: https://apify.com/whthpnd/seo-geo-security-audit-api.md
- **Developed by:** [DirectAPI Labs](https://apify.com/whthpnd) (community)
- **Categories:** MCP servers, SEO tools, Marketing
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.55 / 1,000 audited website reports

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Website SEO, AI-Search (llms.txt) & Security Audit API

Fast, proxy-free **On-Page SEO, AI Search Readiness (`llms.txt` & AI Crawler Permissions), and SSL/Security Audit** Actor & real-time **Standby REST API** — purpose-built for SEO agencies, outbound personalization pipelines (`Clay`, `n8n`, `Make`), SaaS growth teams, and automated site monitoring.

Runs cleanly inside **256 MB RAM** in both **Batch Dataset Mode** and **Synchronous HTTP Standby Mode**.

***

### What Does It Audit in One Request?

#### 1. On-Page & Technical SEO (`seoScore: 0–100`)

- Live HTTP status, final canonical redirect URL, and TTFB response time (`responseTimeMs`).
- Title & meta description text plus character length validation (`suboptimal_title_length`, `missing_meta_description`).
- Canonical URL, `H1` / `H2` structure (`missing_h1`, `multiple_h1`), internal vs. external link counts, and images missing `alt` text.
- Social previews (`OpenGraph`, `Twitter Card`) and structured **`Schema.org` JSON-LD** types (`Organization`, `WebSite`, `Product`, `FAQPage`, etc.).

#### 2. AI Search & GEO Readiness (`aiGeoScore: 0–100`)

- **`/llms.txt` Detection**: Verifies whether the site publishes a valid machine-readable `/llms.txt` guide (`hasLlmsTxt`, `llmsTxtLength`) for LLM discovery.
- **AI Crawler Permissions (`/robots.txt`)**: Evaluates wildcard `*` and bot-specific rules for **`GPTBot`**, **`ChatGPT-User`**, **`OAI-SearchBot`**, **`ClaudeBot`**, **`PerplexityBot`**, and **`Google-Extended`**, listing `allowedAiBots` and `blockedAiBots`.
- **Sitemap Discovery**: Detects `Sitemap:` directives and verifies `/sitemap.xml` availability.

#### 3. Live TLS & HTTP Security Headers (`securityScore: 0–100`)

- Direct TLS handshake inspecting live certificate validity, issuer (`sslIssuer`), and exact **`sslDaysRemaining`** before expiration.
- Checks `Strict-Transport-Security` (`HSTS`), `Content-Security-Policy` (`CSP`), `X-Frame-Options` (or CSP `frame-ancestors`), `X-Content-Type-Options: nosniff`, and `Referrer-Policy`.
- Outputs deterministic `overallScore` and a machine-readable `issues` array ready for outbound CRM outreach or automated alerting.

***

### Real-Time Standby REST API Endpoints

Query synchronous HTTP endpoints using your Apify API token (`Authorization: Bearer <APIFY_TOKEN>`):

| Endpoint | Example Request | Description |
|---|---|---|
| `GET /v1/audit` | `/v1/audit?domain=stripe.com` | Complete SEO + AI/GEO + SSL/Security audit |
| `GET /v1/geo` | `/v1/geo?domain=anthropic.com` | Focused On-Page + `llms.txt` + AI bots (`robots.txt`) check |
| `GET /v1/security` | `/v1/security?domain=linear.app` | Focused On-Page + TLS certificate expiry & HTTP security headers |

***

### Batch Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `domains` | Array of strings | `["stripe.com", "anthropic.com", "linear.app"]` | Website domains or full URLs to audit (up to 500 per batch run). |
| `checkAiReadiness` | Boolean | `true` | Fetch `/robots.txt`, `/llms.txt`, and `/sitemap.xml` to evaluate AI search crawler readiness. |
| `checkSecurity` | Boolean | `true` | Perform TLS certificate inspection and check security response headers. |

***

### Example Output

```json
{
  "input": "anthropic.com",
  "domain": "anthropic.com",
  "reachable": true,
  "statusCode": 200,
  "responseTimeMs": 142,
  "finalUrl": "https://www.anthropic.com/",
  "overallScore": 89,
  "seoScore": 92,
  "aiGeoScore": 100,
  "securityScore": 76,
  "title": "Anthropic",
  "h1Count": 1,
  "imagesMissingAlt": 0,
  "hasOpenGraph": true,
  "jsonLdTypes": ["Organization"],
  "hasLlmsTxt": true,
  "llmsTxtLength": 4120,
  "allowedAiBots": ["GPTBot", "ChatGPT-User", "OAI-SearchBot", "ClaudeBot", "PerplexityBot", "Google-Extended"],
  "blockedAiBots": [],
  "sslValid": true,
  "sslDaysRemaining": 78,
  "hasHsts": true,
  "hasCsp": true,
  "issues": ["missing_referrer_policy"]
}
```

***

### Pricing & Store Tier Discounts

Transparent **Pay-Per-Event** pricing with automatic Store discounts:

| Plan Tier | Actor Start | Per Audited Website |
|---|---|---|
| **Free** | $0.00005 | $0.0030 |
| **Bronze** | $0.00005 | $0.00285 |
| **Silver** | $0.00005 | $0.0027 |
| **Gold / Platinum / Diamond** | $0.00005 | $0.00255 |

***

### Connect as an MCP Server (Claude, Cursor, Windsurf, n8n)

This Actor natively exposes a **Streamable HTTP Model Context Protocol (MCP)** endpoint at `/mcp` with 3 tools (`audit_website_full`, `check_ai_geo_readiness`, `audit_ssl_and_security_headers`).

Add it directly to **Cursor**, **Windsurf**, or any MCP-compatible AI agent:

```json
{
  "mcpServers": {
    "seo-geo-security-audit": {
      "url": "https://whthpnd--seo-geo-security-audit-api.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

# Actor input Schema

## `domains` (type: `array`):

List of domains or full URLs to audit (e.g., stripe.com, anthropic.com, linear.app).

## `checkAiReadiness` (type: `boolean`):

Inspect /llms.txt, /sitemap.xml, and /robots.txt access rules for GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, PerplexityBot, and Google-Extended.

## `checkSecurity` (type: `boolean`):

Verify live TLS certificate validity/days remaining and check HSTS, CSP, X-Frame-Options, X-Content-Type-Options, and Referrer-Policy.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "anthropic.com",
    "linear.app"
  ],
  "checkAiReadiness": true,
  "checkSecurity": true
}
```

# 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 = {
    "domains": [
        "stripe.com",
        "anthropic.com",
        "linear.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("whthpnd/seo-geo-security-audit-api").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 = { "domains": [
        "stripe.com",
        "anthropic.com",
        "linear.app",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("whthpnd/seo-geo-security-audit-api").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 '{
  "domains": [
    "stripe.com",
    "anthropic.com",
    "linear.app"
  ]
}' |
apify call whthpnd/seo-geo-security-audit-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whthpnd/seo-geo-security-audit-api"
        }
    }
}
```

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/JbdJeyYDNc6J675bT/builds/SGK18keJD3m3Nx3Zh/openapi.json
