# SEO/GEO - Schema Markup Scraper (`wisteria_banjo/schema-markup-scraper`) Actor

This actor to fetches JSON-LD/Schema Markup from Multiple URLs & checks whether the page contains markups for the following types: AggregateRating, Article, Event, FAQPage, LocalBusiness, Organization, Person, Product, & Review. Schema Markup helps search and generative engines find & read webpages.

- **URL**: https://apify.com/wisteria_banjo/schema-markup-scraper.md
- **Developed by:** [Chris Xavier](https://apify.com/wisteria_banjo) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Full permissions
- **Stats:** 64 total users, 2 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

🚀 SEO/GEO - Get JSON-LD / Schema Markup from Multiple URLs
This Apify actor scrapes JSON-LD/Schema Markup from one or more URLs and checks for the presence of key markup types like AggregateRating, Article, Event, FAQPage, LocalBusiness, Organization, Person, Product, and Review. This tool is a must-have for anyone who wants to ensure that their pages are optimized for both SEO and AI-driven search engines. 🌐

📊 Why This Tool is Important for SEO & GEO:
With AI becoming an integral part of search algorithms, schema markup is more critical than ever for helping search engines understand and rank your content effectively. Schema markup adds context to your page, allowing search engines to better index and present your content in relevant search results. It’s especially important for local businesses and competitor analysis as it ensures your business is well-represented in searches involving specific regions or industries.

💡 Use Cases:
SEO Agencies: Quickly analyze whether clients’ websites are optimized with the right schema markup for better search engine visibility.

Competitor Analysis: Monitor competitors’ websites and assess how well they’re implementing schema markup for key SEO and GEO opportunities.

Website Optimization: Check whether your own site’s pages are using optimal schema types to boost visibility and search performance.

📝 How It Works:
Enter One or More URLs: You can input any number of URLs you want to check.

Fetch Schema Markup: The tool will scrape the JSON-LD/schema data from each page.

Review Results: It will provide you with a summary of the types of schema found on each page, alongside a snippet of the page's content.

🔑 Key Features:
Scrapes JSON-LD Schema Markup from multiple URLs.

Checks for specific schema types:

AggregateRating ⭐

Article 📰

Event 📅

FAQPage ❓

LocalBusiness 🏠

Organization 🏢

Person 👤

Product 🛍️

Review ✍️

Provides an overview of the content on the page with a text snippet for context.

⚙️ How to Use:
Enter one or more URLs in the provided input field.

Click "Run" to start scraping.

Review the JSON-LD Schema results to understand the SEO/GEO setup of the page.

Use the output to make necessary improvements or track competitors’ implementations.

🎯 Why It's Useful for SEO Agencies, Users, and Competitor Analysis:
In today's competitive digital marketing landscape, schema markup is a powerful tool for gaining an edge in search results. For SEO agencies, this tool provides an efficient way to monitor multiple clients’ websites and ensure they are fully optimized for both search engines and AI-powered algorithms. By identifying the markup types used by competitors, you can pinpoint gaps and opportunities for your own website.

# Actor input Schema

## `startUrls` (type: `array`):

One or more URLs of the pages where the crawler will start. Note that the Actor will additionally only crawl sub-pages of these URLs. For example, for the start URL `https://www.example.com/blog`, it will crawl pages like `https://example.com/blog/article-1`, but will skip `https://example.com/docs/something-else`.

## `crawlerType` (type: `string`):

Select the crawling engine:

- **Headless web browser** (default) - Useful for modern websites with anti-scraping protections and JavaScript rendering. It recognizes common blocking patterns like CAPTCHAs and automatically retries blocked requests through new sessions. However, running web browsers is more expensive as it requires more computing resources and is slower. It is recommended to use at least 8 GB of RAM.
- **Raw HTTP client** - High-performance crawling mode that uses raw HTTP requests to fetch the pages. It is faster and cheaper, but it might not work on all websites.

## `maxCrawlDepth` (type: `integer`):

The maximum number of links starting from the start URL that the crawler will recursively descend. The start URLs have a depth of 0, the pages linked directly from the start URLs have a depth of 1, and so on.

This setting is useful to prevent accidental crawler runaway. By setting it to 0, the Actor will only crawl start URLs.

## `maxCrawlPages` (type: `integer`):

The maximum number pages to crawl. It includes the start URLs, pagination pages, pages with no content, etc. The crawler will automatically finish after reaching this number. This setting is useful to prevent accidental crawler runaway.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com/"
    }
  ],
  "crawlerType": "playwright:chrome",
  "maxCrawlDepth": 20,
  "maxCrawlPages": 9999999
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://docs.apify.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wisteria_banjo/schema-markup-scraper").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 = { "startUrls": [{ "url": "https://docs.apify.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("wisteria_banjo/schema-markup-scraper").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 '{
  "startUrls": [
    {
      "url": "https://docs.apify.com/"
    }
  ]
}' |
apify call wisteria_banjo/schema-markup-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wisteria_banjo/schema-markup-scraper"
        }
    }
}
```

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/D3K8cmXTwvaAMkZPn/builds/qQg5htAWaihIR9qDs/openapi.json
