# JSON-LD, Schema Markup & SEO Scraper | 2Space (`2space/jsonld-ai-seo-auditor`) Actor

Fast JSON-LD, schema.org, and SEO metadata scraper. Scrapes structured data blocks, OpenGraph/Twitter meta tags, /robots.txt AI crawler rules (GPTBot, ClaudeBot, PerplexityBot), and /llms.txt across any domain list.

- **URL**: https://apify.com/2space/jsonld-ai-seo-auditor.md
- **Developed by:** [2Space Group](https://apify.com/2space) (community)
- **Categories:** AI, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 pages ai seo audited

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/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

> **Built by 2Space Group** — Fast, lightweight AI & B2B data Actors on Apify. Zero browser bloat, predictable Pay-Per-Event pricing, and 1-step MCP support for ChatGPT, Claude Code, Cursor, Antigravity & n8n.

### What does JSON-LD & AI SEO (GEO) Auditor do?

**JSON-LD & AI SEO (GEO) Auditor** (`reminiscent_medaka/jsonld-ai-seo-auditor`) is a fast, zero-LLM-cost **JSON-LD schema scraper**, **AI SEO & GEO auditor**, **GPTBot robots.txt checker**, and **structured data validator**. Using lightweight HTTP requests (`CheerioCrawler` + `fetch`), it parses every `<script type="application/ld+json">` block and `@graph` array, validates Schema.org types, extracts OpenGraph/Twitter/on-page metadata, inspects `/robots.txt` directives for `GPTBot`, `ClaudeBot`, `PerplexityBot`, and `Google-Extended`, probes `/llms.txt`, and computes a deterministic **0–100 `aiSeoScore`** with prioritized `missingRecommendations`.

***

### Features

- **Full JSON-LD & `@graph` Extraction**: Parses multiple `<script type="application/ld+json">` blocks, detects `Organization`, `Product`, `Offer`, `FAQPage`, `Article`, and `BreadcrumbList`, and catches syntax errors (`jsonLdErrors`).
- **AI Crawler Policy & `/llms.txt` Checker**: Evaluates `/robots.txt` rules (`allowed`, `disallowed`, `unspecified`) for `GPTBot`, `ClaudeBot`, `PerplexityBot`, and `Google-Extended` and validates non-HTML `/llms.txt` files.
- **Deterministic AI Search (GEO) Readiness Score**: Produces a transparent `0–100` `aiSeoScore` alongside actionable `missingRecommendations` with zero external LLM API calls.
- **On-Page & Social Metadata Audit**: Captures `<title>`, `<meta name="description">`, canonical URL, `h1Count`, OpenGraph (`og:*`), and Twitter Card (`twitter:*`) tags.
- **No Data, No Charge Guardrail**: Failed HTTP requests are never charged, and hard `maxItems` and `maxCostUsd` limits protect every run.

***

### What data can this Actor extract?

| Field | Type | Description |
| --- | --- | --- |
| `url` / `finalUrl` / `domain` | `string` | Input URL, final URL after redirects, and normalized hostname |
| `httpStatus` | `integer` | HTTP status code |
| `aiSeoScore` | `integer` | Deterministic `0–100` AI SEO & GEO readiness score |
| `schemaTypes` | `string[]` | Unique Schema.org `@type` values across all JSON-LD blocks |
| `jsonLdErrors` | `string[]` | Syntax or missing `@type`/`@graph` errors |
| `hasOrganization`, `hasProduct`, `hasOffer`, `hasFaqPage`, `hasArticle`, `hasBreadcrumb` | `boolean` | Presence flags for key AI-citation schemas |
| `title` / `metaDescription` / `canonicalUrl` / `h1Count` | `string \| integer` | Core on-page SEO tags |
| `hasOpenGraph` / `hasTwitterCard` | `boolean` | Social preview metadata completeness |
| `gptBotPolicy`, `claudeBotPolicy`, `perplexityBotPolicy`, `googleExtendedPolicy` | `string` | Effective `/robots.txt` AI crawler rules |
| `hasLlmsTxt` / `llmsTxtStatus` / `llmsTxtUrl` | `boolean \| integer \| string` | Root `/llms.txt` availability and HTTP status |
| `missingRecommendations` | `string[]` | Prioritized remediation checklist |

***

### How much does it cost?

This Actor uses **Pay-Per-Event (PPE)** billing with strict **No Data, No Charge** enforcement:

- **`page-seo-audited`**: Charged once (`count: 1`) only after a validated audit record is pushed to the dataset.
- **`ai-crawler-policy-checked`**: Charged (`count: 1`) when `checkAiBotPolicies` is `true` and `/robots.txt` or `/llms.txt` endpoints are checked.

Failed requests and invalid URLs cost **$0.00**.

***

### Input & Output Examples

#### Input Example

```json
{
  "urlsOrDomains": ["apify.com", "plausible.io"],
  "checkAiBotPolicies": true,
  "maxConcurrency": 10,
  "maxItems": 100,
  "maxCostUsd": 2.0
}
```

#### Output Example

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel** via Apify Console or the Apify API.

```json
{
  "url": "https://apify.com/",
  "finalUrl": "https://apify.com/",
  "domain": "apify.com",
  "httpStatus": 200,
  "aiSeoScore": 84,
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "metaDescription": "Cloud platform for web scraping, browser automation, AI agents...",
  "canonicalUrl": "https://apify.com/",
  "hasCanonical": true,
  "h1Count": 1,
  "jsonLdBlockCount": 1,
  "jsonLdValidCount": 1,
  "jsonLdErrors": [],
  "schemaTypes": ["Organization", "WebSite"],
  "hasOrganization": true,
  "hasOpenGraph": true,
  "hasTwitterCard": true,
  "gptBotPolicy": "unspecified",
  "claudeBotPolicy": "unspecified",
  "perplexityBotPolicy": "unspecified",
  "googleExtendedPolicy": "unspecified",
  "hasLlmsTxt": true,
  "llmsTxtStatus": 200,
  "missingRecommendations": [
    "Add content-specific JSON-LD schema (Product, Article, FAQPage, or BreadcrumbList)"
  ]
}
```

***

### Connect Permanently to Your AI Agent (1 Step)

#### ChatGPT

Go to **ChatGPT -> Settings -> Apps & Connectors -> Create -> Apify MCP OAuth**, connect your Apify account, and enable `reminiscent_medaka/jsonld-ai-seo-auditor` (`https://mcp.apify.com?tools=reminiscent_medaka/jsonld-ai-seo-auditor`).

#### Claude Code

```bash
claude mcp add 2space "https://mcp.apify.com?tools=reminiscent_medaka/jsonld-ai-seo-auditor" -t http
```

#### Cursor / Antigravity

Add to `.cursor/mcp.json` or your Antigravity MCP config:

```json
{
  "mcpServers": {
    "2space": {
      "url": "https://mcp.apify.com?tools=reminiscent_medaka/jsonld-ai-seo-auditor",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### n8n, Make & Zapier

- **n8n**: Use the **Apify** node or HTTP Request node against `reminiscent_medaka/jsonld-ai-seo-auditor` to audit client URLs weekly and alert on dropped JSON-LD schemas or accidental `GPTBot` blocks.
- **Make**: Run **Apify -> Run an Actor** and **Get Dataset Items** to log `aiSeoScore` and `missingRecommendations` in Airtable or Google Sheets.
- **Zapier**: Trigger **Apify -> Run Actor** whenever new landing pages publish to verify structured data and `/llms.txt` readiness.

***

### Troubleshooting & Support

- **Client-side JSON-LD not detected?** This Actor fetches raw server-rendered HTML—matching what lightweight AI crawlers (like `GPTBot` and `ClaudeBot`) actually see without executing JavaScript.
- **Need help or custom schema checks?** Open an **Issue** in the **Issues** tab on Apify Store, or inspect `RUN_DIAGNOSTICS` in Key-Value Store and the **API** tab for REST/SDK snippets.
- **Ethical Data Notice**: This Actor inspects only publicly accessible HTML metadata, JSON-LD blocks, `robots.txt`, and `llms.txt` files. Always respect website terms of service and applicable privacy laws.

***

### More Tools by 2Space Group

Browse the complete suite of fast, browser-free AI & B2B Actors at **[2Space Group on Apify](https://apify.com/reminiscent_medaka)**:

- [B2B Domain Enricher](https://apify.com/reminiscent_medaka/b2b-domain-enricher) (`b2b-domain-enricher`)
- [SaaS Pricing Extractor](https://apify.com/reminiscent_medaka/saas-pricing-extractor) (`saas-pricing-extractor`)
- [ATS Career & Jobs API](https://apify.com/reminiscent_medaka/ats-career-jobs-api) (`ats-career-jobs-api`)
- [Shopify Store Intel](https://apify.com/reminiscent_medaka/shopify-store-intel) (`shopify-store-intel`)
- [SEC EDGAR Intelligence](https://apify.com/reminiscent_medaka/sec-edgar-intelligence) (`sec-edgar-intelligence`)
- [Gov Grants & Contracts Radar](https://apify.com/reminiscent_medaka/gov-grants-contracts-radar) (`gov-grants-contracts-radar`)
- [Sitemap & llms.txt Precision AI Docs Crawler](https://apify.com/reminiscent_medaka/llms-sitemap-rag-mcp) (`llms-sitemap-rag-mcp`)
- [Tech Stack, DNS, SSL & WHOIS/RDAP Auditor](https://apify.com/reminiscent_medaka/tech-stack-dns-whois-mcp) (`tech-stack-dns-whois-mcp`)
- [GitHub Repo & Maintainer B2B Signals](https://apify.com/reminiscent_medaka/github-repo-b2b-signals) (`github-repo-b2b-signals`)
- [JSON-LD & AI SEO (GEO) Auditor](https://apify.com/reminiscent_medaka/jsonld-ai-seo-auditor) (`jsonld-ai-seo-auditor`)
- [YouTube Transcript & Metadata MCP](https://apify.com/reminiscent_medaka/youtube-transcript-metadata-mcp) (`youtube-transcript-metadata-mcp`)
- [Google News Article Scraper MCP](https://apify.com/reminiscent_medaka/google-news-article-scraper-mcp) (`google-news-article-scraper-mcp`)
- [Universal Web Extractor MCP](https://apify.com/reminiscent_medaka/universal-web-extractor-mcp) (`universal-web-extractor-mcp`)

# Actor input Schema

## `urlsOrDomains` (type: `array`):

List of domains (e.g. apify.com) or full URLs (e.g. https://plausible.io) to audit for JSON-LD and AI SEO readiness.

## `checkAiBotPolicies` (type: `boolean`):

When enabled, fetches /robots.txt to evaluate GPTBot, ClaudeBot, PerplexityBot, and Google-Extended directives and probes /llms.txt for each domain.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel HTTP requests during auditing.

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

Hard cap on the number of audited pages pushed to the dataset.

## `maxCostUsd` (type: `number`):

Maximum Pay-Per-Event spend cap in USD before stopping the run.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Direct HTTP requests are used by default with zero proxy cost.

## Actor input object example

```json
{
  "urlsOrDomains": [
    "apify.com",
    "plausible.io"
  ],
  "checkAiBotPolicies": true,
  "maxConcurrency": 10,
  "maxItems": 100,
  "maxCostUsd": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing per-URL JSON-LD, metadata, AI crawler policy, and AI SEO score results.

## `diagnostics` (type: `string`):

Key-value store containing RUN_DIAGNOSTICS execution summary and PPE charge metrics.

# 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 = {
    "urlsOrDomains": [
        "apify.com",
        "plausible.io"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("2space/jsonld-ai-seo-auditor").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 = { "urlsOrDomains": [
        "apify.com",
        "plausible.io",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("2space/jsonld-ai-seo-auditor").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 '{
  "urlsOrDomains": [
    "apify.com",
    "plausible.io"
  ]
}' |
apify call 2space/jsonld-ai-seo-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,2space/jsonld-ai-seo-auditor"
        }
    }
}
```

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/sPez7x2kG9Bo526M6/builds/bjMDW1dnlpBJLX1ho/openapi.json
