# SEO Metadata Extractor - Full SEO Audit in One Call (`santamaria-automations/seo-metadata-extractor`) Actor

Extract SEO metadata from any website: title, meta description, Open Graph, Twitter Cards, Schema.org JSON-LD, canonical URLs, hreflang, and H1 structure. Export data, run via API, schedule and monitor runs, or integrate with other tools.

- **URL**: https://apify.com/santamaria-automations/seo-metadata-extractor.md
- **Developed by:** [Alessandro Santamaria](https://apify.com/santamaria-automations) (community)
- **Categories:** SEO tools, Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 url analyzeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## SEO Metadata Extractor - Full SEO Audit in One Call

Extract every SEO signal from any website in one call — perfect for SEO audits, competitive intelligence, and content planning. Point the actor at a list of URLs and get back the full SEO fingerprint of every page: title, meta description, Open Graph, Twitter Cards, Schema.org JSON-LD, canonical, hreflang, H1/H2 structure, favicon, and an automated SEO score.

### What you get

- **Basic SEO** — `<title>`, meta description, keywords, canonical, robots, viewport, lang, charset
- **Open Graph** — `og:title`, `og:description`, `og:image`, `og:url`, `og:type`, `og:site_name`, `og:locale`
- **Twitter Cards** — `twitter:card`, `twitter:title`, `twitter:description`, `twitter:image`, `twitter:site`, `twitter:creator`
- **Schema.org JSON-LD** — all detected types with boolean flags for Article, Product, Organization, Breadcrumb, FAQ, LocalBusiness, Review
- **International** — `hreflang` alternates list (lang + URL)
- **Branding** — favicon, apple-touch-icon, theme-color
- **Content structure** — H1/H2 counts & texts, image count, images missing `alt`, internal/external link counts, word count
- **SEO audit** — automated `seo_score` 0-100 plus `seo_issues` array flagging every problem detected
- **No browser** — pure HTTP + HTML parsing, fast and cheap

### Example output

```json
{
  "url": "https://www.apple.com",
  "final_url": "https://www.apple.com/",
  "status_code": 200,
  "title": "Apple",
  "title_length": 5,
  "meta_description": "Discover the innovative world of Apple and shop everything iPhone, iPad, Apple Watch, Mac, and Apple TV...",
  "meta_description_length": 158,
  "canonical_url": "https://www.apple.com/",
  "lang": "en-US",
  "viewport": "width=device-width, initial-scale=1, viewport-fit=cover",
  "og_title": "Apple",
  "og_description": "Discover the innovative world of Apple...",
  "og_image": "https://www.apple.com/ac/structured-data/images/open_graph_logo.png",
  "og_site_name": "Apple",
  "twitter_card": "summary_large_image",
  "twitter_site": "@Apple",
  "schemas": [
    { "type": "Organization", "name": "Apple" }
  ],
  "has_organization_schema": true,
  "favicon_url": "https://www.apple.com/favicon.ico",
  "apple_touch_icon": "https://www.apple.com/apple-touch-icon.png",
  "h1_count": 1,
  "h1_texts": ["Apple"],
  "hreflang_alternates": [
    { "lang": "en-US", "url": "https://www.apple.com/" },
    { "lang": "de-DE", "url": "https://www.apple.com/de/" }
  ],
  "seo_score": 75,
  "seo_issues": ["title_too_short", "no_twitter_card"]
}
````

### How to use

Drop a list of URLs into `urls` and run. Each URL returns a single dataset record with the full SEO fingerprint. Sort by `seo_score` to prioritize audit fixes, filter by `seo_issues` to find sites missing Open Graph images, or group by `has_article_schema` to find content-rich competitors.

#### Input

| Parameter | Description | Default |
|-----------|-------------|---------|
| `urls` | List of websites to analyze | *(required)* |
| `fetchTimeoutSeconds` | Per-site fetch timeout | `15` |
| `userAgent` | Override the User-Agent header | *(modern Chrome)* |
| `maxConcurrency` | Parallel URL analysis (max 20) | `5` |
| `proxyConfiguration` | Optional Apify Proxy configuration | *(none)* |

### Use cases

- **SEO audits** — bulk-check client sites, flag every missing meta description, Open Graph image, and broken heading structure in one run
- **Competitive intelligence** — analyze your competitors' metadata strategy, Schema.org usage and social-preview design
- **Social media planning** — preview how a URL will appear on Twitter, Facebook and LinkedIn before publishing
- **Content migration** — snapshot every metadata field before a site move so nothing gets lost
- **Schema.org validation** — bulk-check structured data across a whole site or portfolio
- **Brand monitoring** — track metadata changes over time and alert when title/description/OG image change
- **Agency reporting** — automated monthly SEO reports with a per-page score and issue list

### SEO Score

Every result includes a `seo_score` from 0-100 calculated from 12 standard SEO signals:

| Signal | Points |
|--------|--------|
| Title length 30-60 chars | 10 |
| Meta description 120-160 chars | 10 |
| Has canonical URL | 10 |
| Full Open Graph (title + desc + image) | 10 |
| Has Twitter Card | 5 |
| Has Schema.org JSON-LD | 10 |
| Exactly one H1 | 10 |
| All images have alt text | 10 |
| Has favicon | 5 |
| Has viewport meta | 10 |
| Has lang attribute | 5 |
| Has robots meta | 5 |

Plus a `seo_issues` array that flags exactly what's wrong: `missing_title`, `title_too_long`, `missing_meta_description`, `no_h1`, `multiple_h1`, `no_canonical`, `images_without_alt`, `no_og_image`, `no_schema`, `no_viewport`, `no_lang`, and more.

### Pricing

Pay per URL — no subscription.

- **$0.001** per run start
- **$0.003** per URL analyzed

**1000 URLs = ~$3**. Cheaper than any SaaS SEO tool on the market for bulk audits.

### Related Actors

- [Website Tech Stack Detector](https://apify.com/santamaria-automations/website-tech-detector) — detect the CMS, framework, analytics and CDN of any site
- [Sitemap URL Discovery](https://apify.com/santamaria-automations/sitemap-url-discovery) — pair with this actor to audit an entire site's SEO in one run
- [Domain WHOIS & DNS](https://apify.com/santamaria-automations/domain-whois-dns) — domain registration, DNS records and expiry
- [HTML to Markdown](https://apify.com/santamaria-automations/html-to-markdown) — convert any webpage to clean Markdown for LLM pipelines

# Actor input Schema

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

List of websites to analyze. Include the scheme (https://) for best results. One URL per line.

## `fetchTimeoutSeconds` (type: `integer`):

How long to wait for a website to respond before giving up.

## `userAgent` (type: `string`):

Optional. Override the User-Agent header sent when fetching pages. Leave empty to use a modern Chrome User-Agent.

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

How many URLs to analyze in parallel.

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

Select a proxy to use when fetching pages. Use Apify Proxy to avoid rate limits on large runs.

## Actor input object example

```json
{
  "urls": [
    "https://www.apple.com",
    "https://stripe.com",
    "https://en.wikipedia.org/wiki/Germany"
  ],
  "fetchTimeoutSeconds": 15,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Per-URL SEO metadata extraction results.

# 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://www.apple.com",
        "https://stripe.com",
        "https://en.wikipedia.org/wiki/Germany"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/seo-metadata-extractor").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://www.apple.com",
        "https://stripe.com",
        "https://en.wikipedia.org/wiki/Germany",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/seo-metadata-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://www.apple.com",
    "https://stripe.com",
    "https://en.wikipedia.org/wiki/Germany"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call santamaria-automations/seo-metadata-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=santamaria-automations/seo-metadata-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEO Metadata Extractor - Full SEO Audit in One Call",
        "description": "Extract SEO metadata from any website: title, meta description, Open Graph, Twitter Cards, Schema.org JSON-LD, canonical URLs, hreflang, and H1 structure. Export data, run via API, schedule and monitor runs, or integrate with other tools.",
        "version": "1.0",
        "x-build-id": "TvHwYkmSaS6PeYEP8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/santamaria-automations~seo-metadata-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-santamaria-automations-seo-metadata-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/santamaria-automations~seo-metadata-extractor/runs": {
            "post": {
                "operationId": "runs-sync-santamaria-automations-seo-metadata-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/santamaria-automations~seo-metadata-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-santamaria-automations-seo-metadata-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Website URLs",
                        "type": "array",
                        "description": "List of websites to analyze. Include the scheme (https://) for best results. One URL per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "fetchTimeoutSeconds": {
                        "title": "Fetch timeout (seconds)",
                        "minimum": 3,
                        "maximum": 60,
                        "type": "integer",
                        "description": "How long to wait for a website to respond before giving up.",
                        "default": 15
                    },
                    "userAgent": {
                        "title": "Custom User-Agent",
                        "type": "string",
                        "description": "Optional. Override the User-Agent header sent when fetching pages. Leave empty to use a modern Chrome User-Agent."
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "How many URLs to analyze in parallel.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select a proxy to use when fetching pages. Use Apify Proxy to avoid rate limits on large runs.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
