# Seo Schema Validator (`naive_zing/seo-schema-validator`) Actor

Bulk validate schema markup and JSON-LD across your entire website by crawling sitemaps. Generate agency-ready SEO health reports with per-page health scores for improved rich results and technical SEO audits.

- **URL**: https://apify.com/naive\_zing/seo-schema-validator.md
- **Developed by:** [Wyald](https://apify.com/naive_zing) (community)
- **Categories:** Automation, Developer tools, SEO tools
- **Stats:** 20 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / 1,000 urls

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

## Numbeo Cost of Living Scraper

A robust Apify Actor designed to scrape cost of living data from [Numbeo](https://www.numbeo.com/cost-of-living/). It traverses the website starting from the main page, navigates through country pages, and extracts detailed cost data from city pages.

#### Targeted Keywords

- **Primary**: Cost of Living Scraper, Numbeo Scraper, Price Data Extraction, Economic Data Crawler
- **Secondary**: City Cost Comparison, Global Pricing Data, Inflation Tracking, Relocation Cost Analysis

### Features

✅ **Comprehensive Crawling**: Automatically discovers countries and cities from the main directory.
✅ **Detailed Data Extraction**: Scrapes prices for:
\*   Restaurants
\*   Markets (Groceries)
\*   Transportation
\*   Utilities
\*   Sports & Leisure
\*   Childcare
\*   Clothing & Shoes
\*   Rent
\*   Property Prices
\*   Salaries & Financing
✅ **Structured Output**: Returns clean JSON data with city, country, and itemized costs.
✅ **Resilient**: Uses `crawlee` for robust HTTP handling and browser-like headers to avoid blocking.

### Input

| Field | Type | Description | Default |
|---|---|---|---|
| `start_urls` | Array | List of URLs to start crawling. | `["https://www.numbeo.com/cost-of-living/"]` |

### Output Example

```json
{
  "url": "https://www.numbeo.com/cost-of-living/in/Paris",
  "city_name": "Paris",
  "country_name": "France",
  "costs": [
    {
      "item": "Meal, Inexpensive Restaurant",
      "price": "15.00 €"
    },
    {
      "item": "Domestic Beer (0.5 liter draught)",
      "price": "7.00 €"
    }
    // ... more items
  ]
}
```

### Usage

Simply run the actor. By default, it will start at the Numbeo Cost of Living main page and traverse the entire directory. You can also provide specific country or city URLs in `start_urls` to limit the scope.

# Actor input Schema

## `sitemap_url` (type: `string`):

The URL of the sitemap to crawl (e.g., https://apify.com/sitemap.xml).

## `smart_sampling` (type: `boolean`):

If enabled, the actor will group URLs by pattern and only check a sample of each group to save time and resources.

## `max_pages` (type: `integer`):

Maximum number of pages to check. For automated quality tests, keep this value low (e.g., 20).

## `start_urls` (type: `array`):

List of URLs to check if no sitemap is provided.

## Actor input object example

```json
{
  "sitemap_url": "https://apify.com/sitemap.xml",
  "smart_sampling": true,
  "max_pages": 20,
  "start_urls": [
    {
      "url": "https://apify.com/"
    }
  ]
}
```

# Actor output Schema

## `url` (type: `string`):

The URL of the checked page.

## `health_score` (type: `string`):

The calculated health score (0-100).

## `issues` (type: `string`):

List of issues found on the page.

## `meta` (type: `string`):

Extracted meta tags.

## `schemas_found` (type: `string`):

Number of JSON-LD schemas found.

# 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 = {
    "sitemap_url": "https://apify.com/sitemap.xml",
    "start_urls": [
        {
            "url": "https://apify.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("naive_zing/seo-schema-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 = {
    "sitemap_url": "https://apify.com/sitemap.xml",
    "start_urls": [{ "url": "https://apify.com/" }],
}

# Run the Actor and wait for it to finish
run = client.actor("naive_zing/seo-schema-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 '{
  "sitemap_url": "https://apify.com/sitemap.xml",
  "start_urls": [
    {
      "url": "https://apify.com/"
    }
  ]
}' |
apify call naive_zing/seo-schema-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,naive_zing/seo-schema-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/N92CPLLpMkYY5ntjd/builds/lKhcU6YHwdyrWc7Dr/openapi.json
