# Bulk Schema Markup Validator – JSON-LD Checker (`rationalistic_tail/json-ld-structured-data-validator`) Actor

Validate JSON-LD schema markup on many pages at once: JSON syntax, @context/@type, and required and recommended schema.org fields for Product, Article, FAQPage, BreadcrumbList, Organization, Event and more. Exact issue paths, CI pass/fail, robots.txt-aware. $0.006 per page.

- **URL**: https://apify.com/rationalistic_tail/json-ld-structured-data-validator.md
- **Developed by:** [Jerry Lin](https://apify.com/rationalistic_tail) (community)
- **Categories:** SEO tools, Developer tools, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 url validateds

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

## Bulk Schema Markup Validator: JSON-LD structured data checker

Check the **JSON-LD schema markup** on many pages at once. It tells you:

- whether the JSON is valid
- whether `@context` and `@type` are set
- whether the schema.org properties that matter for each type are present and well-formed

You get one row per URL, with the exact path of every problem and a pass/fail summary for CI.

### What can you use it for?

- 🛒 **E-commerce SEO.** Validate `Product` / `Offer` / `AggregateRating` markup across hundreds of product pages after a theme or plugin update.
- 📰 **Publishers and blogs.** Check `Article` / `BlogPosting` dates, authors and images on every template.
- 🏢 **Local and brand pages.** Confirm `Organization` / `LocalBusiness` details and `BreadcrumbList` order.
- 🚦 **CI and post-deploy checks.** Turn on `failRunOnErrors` so a broken template fails the pipeline.
- 🔎 **Competitive research.** Extract the structured data types other public sites use (use `includeRawJsonLd` for the full JSON).
- 🤖 **AI agents.** *"Does this product page have valid Product structured data?"* through the Apify MCP server.

### Example output (real run)

Default input. Row for `https://apify.com/`, with the `entities` list trimmed:

```json
{
  "url": "https://apify.com/",
  "status": "warn",
  "httpStatus": 200,
  "jsonLdBlocks": 3,
  "invalidBlocks": 0,
  "types": ["ContactPoint", "CreativeWork", "ImageObject", "Offer", "Organization", "PostalAddress", "SoftwareApplication", "WebSite"],
  "errorCount": 0,
  "warningCount": 1,
  "topIssues": ["SoftwareApplication: missing recommended aggregateRating."],
  "issues": [{ "severity": "warning", "code": "missing_recommended", "type": "SoftwareApplication", "path": "block[2]", "message": "SoftwareApplication: missing recommended aggregateRating." }],
  "entities": [
    { "type": "Organization", "id": "https://apify.com/#organization", "name": "Apify", "path": "block[0]", "errors": 0, "warnings": 0 },
    { "type": "SoftwareApplication", "id": "https://apify.com/#platform", "name": "Apify", "path": "block[2]", "errors": 0, "warnings": 1 }
  ],
  "canonicalUrl": "https://apify.com",
  "microdataItems": 0,
  "rdfaItems": 0
}
```

Results from the 3-URL run:

| URL | Status | Types found | Charged? |
|---|---|---|---|
| https://blog.apify.com/ | pass | ImageObject, Organization, WebSite | yes |
| https://developer.mozilla.org/en-US/ | no_structured_data (3 RDFa items counted) | – | yes |
| https://httpbin.org/status/404 | fetch_error (`http_404`) | – | **no** |

`OUTPUT_SUMMARY.llmSummary` from that run:

> Validated 3 URL(s): 1 pass, 0 warn, 0 fail, 1 without JSON-LD, 0 blocked by robots.txt, 1 not fetched/not HTML. Types found: ImageObject, Organization, WebSite. No errors.

Row `status` is one of:

- `pass`
- `warn`: recommendations only
- `fail`: at least one error
- `no_structured_data`
- `blocked_by_robots`
- `fetch_error`
- `not_html`

### What it checks

- 🧩 **Extraction**: every `<script type="application/ld+json">` block, including `@graph`, nested entities and `@id` references.
- ✅ **Syntax**: invalid JSON (with the parser message), empty blocks, missing `@context` / `@type`.
- 📋 **Required and recommended properties** for:
  - Article / NewsArticle / BlogPosting
  - Product, Offer, AggregateRating, Review
  - Organization, LocalBusiness (and subtypes), Person
  - WebSite, WebPage
  - FAQPage, Question, BreadcrumbList
  - Event, Recipe, VideoObject, JobPosting, HowTo, SoftwareApplication
  - and more
- 🔍 **Quiet mistakes**:
  - non-ISO dates
  - `http://` URLs on an https page
  - ratings outside their scale
  - prices with currency symbols
  - breadcrumbs without URLs or in the wrong order
  - FAQ pages without questions
  - a top-level `url` / `mainEntityOfPage` that disagrees with `rel=canonical`
  - dangling `@id` references
- 📊 **Counts microdata and RDFa**, so you know when a page uses another format.

This is an **independent checker** based on schema.org definitions and publicly documented search-engine guidance. It is not affiliated with, and does not call, any search engine's testing tool, and passing it does not guarantee rich results.

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | `["https://apify.com/", "https://crawlee.dev/blog"]` | Pages to check |
| `maxUrls` | `100` | 1–5,000 |
| `includeRawJsonLd` | `false` | Also store the parsed JSON-LD |
| `maxIssuesPerUrl` | `50` | 1–500 |
| `failRunOnErrors` | `false` | For CI |
| `requestDelayMs` / `maxConcurrency` / `requestTimeoutSecs` | `1000` / `3` / `20` | |

### How much does it cost?

| Event | Price |
|---|---|
| `url-validated`: one HTML page (HTTP 2xx) analysed, **including pages without JSON-LD** | **$0.006** |
| Actor start (one event per GB; default 512 MB = 1 event) | **$0.002** |

Examples:

- The 3-URL run above cost **$0.014**.
- 100 pages ≈ **$0.60**.
- 1,000 pages ≈ **$6.00**.
- Robots-blocked URLs, fetch errors and non-HTML responses are free.

### Polite and compliant

- Public HTML only: no login, no forms, no JavaScript execution.
- robots.txt is honoured for every URL and every redirect hop.
- About 1 request per second per host by default; a longer `Crawl-delay` wins. At most 5 requests in parallel.

### FAQ

**Does it render JavaScript?** No. JSON-LD that is injected only by client-side JavaScript shows as `no_structured_data`.

**Is "pass" the same as getting rich results?** No. Rich results depend on more than the markup.

**Microdata or RDFa?** They are counted, but only JSON-LD is validated.

### Use it from AI agents (MCP)

```
https://mcp.apify.com?tools=rationalistic_tail/json-ld-structured-data-validator
```

The Actor runs with limited permissions.

### More tools from this developer

- [XML Sitemap Validator, Extractor & Generator](https://apify.com/rationalistic_tail/sitemap-validator-generator): get every URL of a site, then validate them here.
- [Broken Link Checker: Find 404s & Broken #Anchors](https://apify.com/rationalistic_tail/broken-link-anchor-checker)
- [Bulk Lighthouse Audit API – Core Web Vitals & CI](https://apify.com/rationalistic_tail/lighthouse-budget-auditor)

# Actor input Schema

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

Public page URLs to check, e.g. \["https://example.com/product/1"]. Each page is fetched once (robots.txt honoured) and its application/ld+json blocks are extracted and validated.

## `maxUrls` (type: `integer`):

Maximum number of URLs checked in this run (1-5000). Each checked HTML page is one billable 'url-validated' event.

## `includeRawJsonLd` (type: `boolean`):

Also store the parsed JSON-LD blocks in each dataset row (rawJsonLd). Useful for extraction; makes rows larger.

## `maxIssuesPerUrl` (type: `integer`):

Cap on issue objects stored per URL (1-500). Counts are always complete.

## `failRunOnErrors` (type: `boolean`):

End the run as FAILED if any URL has structured-data errors (invalid JSON, missing required properties, bad dates). Results are still saved.

## `requestDelayMs` (type: `integer`):

Minimum gap between two requests to the same host (250-60000 ms). A larger robots.txt Crawl-delay always wins.

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

Parallel requests across all hosts (1-5). Requests to the same host are always spaced by the delay above.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds (5-60).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com/",
    "https://crawlee.dev/blog"
  ],
  "maxUrls": 100,
  "includeRawJsonLd": false,
  "maxIssuesPerUrl": 50,
  "failRunOnErrors": false,
  "requestDelayMs": 1000,
  "maxConcurrency": 3,
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One row per URL with schema.org types, errors, warnings and issue details.

## `summary` (type: `string`):

Pass/warn/fail counts, types found, top issue codes and an llmSummary paragraph.

# 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://apify.com/",
        "https://crawlee.dev/blog"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rationalistic_tail/json-ld-structured-data-validator").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://apify.com/",
        "https://crawlee.dev/blog",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rationalistic_tail/json-ld-structured-data-validator").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://apify.com/",
    "https://crawlee.dev/blog"
  ]
}' |
apify call rationalistic_tail/json-ld-structured-data-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rationalistic_tail/json-ld-structured-data-validator"
        }
    }
}
```

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/sHhkYjLzoQdZmeVT6/builds/abxGOxp1LVFLRAfgw/openapi.json
