# Page Metadata Extractor: Open Graph & JSON-LD (`hydrocore/page-metadata-extractor`) Actor

Extract page metadata from any URL: title, description, canonical, Open Graph and Twitter card tags, JSON-LD structured data types, hreflang, robots meta, language, author, dates, favicon and feed links, with SEO issues. Flat JSON for SEO audits, link previews and AI agents.

- **URL**: https://apify.com/hydrocore/page-metadata-extractor.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 page metadata extracteds

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?

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

## Page Metadata Extractor: Open Graph, JSON-LD, Canonical & SEO Tags

Extract the **metadata of any web page** as one flat row: **title, meta description, canonical URL, robots meta, language, Open Graph and Twitter card tags, first H1, word count, author, publish and modified dates, favicon, RSS/Atom feeds, hreflang alternates and JSON-LD structured data** (types plus the JSON itself), with a plain list of **SEO issues**. Use it for SEO audits, link previews, content inventories, and as a fast "what is this page" lookup for AI agents.

### ✅ What you get

- Title, meta description and their lengths
- Canonical URL and whether it matches the page, robots meta, indexable flag, language
- Open Graph and Twitter card tags (title, description, image, type, site)
- First H1, H1 count, visible word count
- Author, publish and modified dates (ISO 8601)
- Favicon, RSS/Atom feeds, hreflang count and languages
- JSON-LD block count, schema.org types and the JSON
- Issue count and plain issue list

### 🏆 Why this Actor

- **Everything a link preview or SEO check needs in one call:** no separate tools for Open Graph, canonical, hreflang and JSON-LD.
- **SEO issues spelled out:** missing or too long title and description, no canonical or a canonical pointing elsewhere, noindex, no lang, weak Open Graph, no H1 or several, no JSON-LD.
- **Structured data included:** schema.org types found and the JSON-LD text (switchable), dates and author taken from meta tags or JSON-LD.
- **Filter before you pay:** onlyWithIssues skips pages without problems and never charges for them; sort by most issues, newest or longest.
- **Flat, fixed JSON:** the same 42 keys on every row, missing values are null, plus a summaryText sentence for agents.

### 💡 Use cases

- SEO agencies: audit titles, descriptions, canonicals and Open Graph across hundreds of URLs
- Content teams: inventory pages with publish dates, authors and word counts
- Developers: build link previews (title, description, image) without running a browser
- AI agents: learn what a page is, who wrote it and when, from one cheap call
- Research: collect which schema.org types sites use

### 🚀 How to use

1. Enter one or more **page URLs**.
2. Optional: switch JSON-LD text off, keep only pages with SEO issues and pick a sort.
3. Run, then open **Overview**, **SEO tags**, **Open Graph & Twitter** or **Structured data & dates**, or call the Actor from an agent via the API or MCP.

### ⚙️ Input

| Field | What it does |
|---|---|
| `urls` | One page URL per line. Bare domains get https://. The prefilled example list is used when the input is empty. |
| `includeJsonLd` | On (default) includes the JSON-LD as a JSON string (first 20,000 characters). |
| `onlyWithIssues` | Save only pages with at least one SEO issue; others are not charged. |
| `sortBy` | input, mostIssuesFirst, newestFirst or wordCountDesc. |
| `maxResults` | Cap on saved pages after sorting (default 500, maximum 5000). |

Example input:

```json
{
  "urls": [
    "https://example.com",
    "https://www.bbc.com/news"
  ],
  "onlyWithIssues": true,
  "sortBy": "mostIssuesFirst"
}
```

### ⬆️ Output

One row per page. Invalid URLs, unreadable or non-HTML pages and blocked private hosts get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 42 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build (JSON-LD text shortened here).

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `url` | string | "https://www.bbc.com/news" | The URL you asked for (normalised). |
| `title` | string | "BBC News - Breaking news, video and the latest top stories … | Content of the <title> tag. |
| `metaDescription` | string | "Visit BBC News for the latest news, breaking news, video, a… | Content of meta name="description" (first 1,000 characters). |
| `canonicalUrl` | string | "https://www.bbc.com/news" | Absolute href of link rel="canonical". |
| `ogImage` | string | null | Open Graph image as an absolute URL. |
| `jsonLdTypes` | array | \["WebPage"] | schema.org @type values found in the JSON-LD (up to 30). Null when none. |
| `publishedDate` | string | null | Publish date as ISO 8601 UTC (article:published_time, meta date or JSON-LD datePublished). |
| `wordCount` | integer | 1652 | Words of visible body text (scripts and styles removed). |
| `issueCount` | integer | 4 | Number of SEO issues found. |
| `summaryText` | string | "https://www.bbc.com/news: "BBC News - Breaking news, video… | One plain-English sentence for an AI agent or a review. |

All 42 fields (in order): `recordType`, `url`, `status`, `httpStatus`, `finalUrl`, `title`, `titleLength`, `metaDescription`, `metaDescriptionLength`, `canonicalUrl`, `canonicalMatchesUrl`, `language`, `robotsMeta`, `isIndexable`, `ogTitle`, `ogDescription`, `ogImage`, `ogType`, `ogUrl`, `ogSiteName`, `twitterCard`, `twitterTitle`, `twitterImage`, `twitterSite`, `h1`, `h1Count`, `wordCount`, `author`, `publishedDate`, `modifiedDate`, `faviconUrl`, `feedUrls`, `hreflangCount`, `hreflangs`, `jsonLdCount`, `jsonLdTypes`, `jsonLdJson`, `issueCount`, `issues`, `summaryText`, `inputValue`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "page",
  "url": "https://www.bbc.com/news",
  "status": "ok",
  "httpStatus": 200,
  "finalUrl": "https://www.bbc.com/news",
  "title": "BBC News - Breaking news, video and the latest top stories from the U.S. and around the world",
  "titleLength": 93,
  "metaDescription": "Visit BBC News for the latest news, breaking news, video, audio and analysis. BBC News provides trusted World, U.S. and U.K. news as well as local and regional perspectives. Also entertainment, climate, business, science, technology and health news.",
  "metaDescriptionLength": 249,
  "canonicalUrl": "https://www.bbc.com/news",
  "canonicalMatchesUrl": true,
  "language": "en-GB",
  "robotsMeta": "NOODP, NOYDIR",
  "isIndexable": true,
  "ogTitle": "BBC News - Breaking news, video and the latest top stories from the U.S. and around the world",
  "ogDescription": "Visit BBC News for the latest news, breaking news, video, audio and analysis. BBC News provides trusted World, U.S. and U.K. news as well as local and regional perspectives. Also entertainment, climate, business, science, technology and health news.",
  "ogImage": null,
  "ogType": "website",
  "ogUrl": "https://www.bbc.com/news",
  "ogSiteName": null,
  "twitterCard": null,
  "twitterTitle": "BBC News - Breaking news, video and the latest top stories from the U.S. and around the world",
  "twitterImage": null,
  "twitterSite": null,
  "h1": "News",
  "h1Count": 1,
  "wordCount": 1652,
  "author": null,
  "publishedDate": null,
  "modifiedDate": null,
  "faviconUrl": "https://static.files.bbci.co.uk/bbcdotcom/web/20261110-133831-0053d0afea-web-3.28.0-4/favicon-32x32.png",
  "feedUrls": null,
  "hreflangCount": 2,
  "hreflangs": [
    "en",
    "en-gb"
  ],
  "jsonLdCount": 1,
  "jsonLdTypes": [
    "WebPage"
  ],
  "jsonLdJson": "{\"@context\":\"https://schema.org\",\"@type\":\"WebPage\",\"description\":\"Visit BBC News for the latest news, breaking news, video, audio and analysis. BBC News provides trusted World, U.S. and U.K. news as well as local and regional perspectives. Also entertainment, climate, business, science, technology a…",
  "issueCount": 4,
  "issues": [
    "Title is long (93 characters; search results show about 60).",
    "Meta description is long (249 characters; about 160 are shown).",
    "Open Graph title or image is missing, so link previews will be poor.",
    "No twitter:card tag."
  ],
  "summaryText": "https://www.bbc.com/news: \"BBC News - Breaking news, video and the latest top stories from the U.S. and around the world\"; JSON-LD WebPage; Open Graph image missing; 4 SEO issues.",
  "inputValue": "https://www.bbc.com/news",
  "scrapedAt": "2026-11-16T21:04:04.445Z"
}
```

Views: **Overview**, **SEO tags**, **Open Graph & Twitter**, **Structured data & dates**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts inputs, invalid URLs, duplicates, blocked hosts, fetch errors, non-HTML files, extracted, filtered, over the cap and saved pages, plus the settings and sort used.

### 💰 Pricing

Competitive pricing, pay per result: **$0.001 per page** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (4 pages) costs about $0.0045; extracting 1,000 pages costs about $1.00. Invalid URLs, unreadable or non-HTML pages, blocked hosts, duplicates and filtered pages are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Page metadata extracted | One page read and saved (title, description, canonical, robots, Open Graph and Twitter tags, headings, word count, author, dates, favicon, feeds, hreflang, JSON-LD, SEO issues). Invalid URLs, unreadable or non-HTML pages, blocked hosts, duplicates and filtered pages are free. | $0.001 | $0.0009 | $0.00085 | $0.0008 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Does it run JavaScript?**

No. It reads the HTML the server sends, which is what search engines and link-preview bots read first. Pages that only add tags with JavaScript will show those tags as null.

**Which tags are read?**

title, meta description, robots, googlebot, author, article:published_time and modified_time, og:\* and twitter:\* tags, link rel canonical, icon, alternate hreflang and RSS/Atom alternates, html lang, h1 tags and JSON-LD script blocks.

**How is the indexable flag set?**

false when the robots or googlebot meta tag contains noindex. It does not check robots.txt or the X-Robots-Tag HTTP header.

**How are the SEO issues decided?**

Simple, common rules: title missing, under 10 or over 60 characters; description missing, under 50 or over 160; no canonical or a canonical that differs from the final URL; noindex; no html lang; missing og:title or og:image; no twitter:card; no or several h1 tags; no JSON-LD. Treat them as hints, not a verdict.

**Where do author and dates come from?**

The author comes from meta author or article:author, else the JSON-LD author name. Dates come from article:published_time, meta date or itemprop first, else JSON-LD datePublished and dateModified. All dates are converted to ISO 8601 UTC.

**What is in jsonLdJson?**

The JSON-LD blocks of the page as a JSON string, shortened to 20,000 characters. Invalid JSON-LD blocks are ignored. Turn it off with includeJsonLd to keep rows small.

**What happens to non-HTML URLs?**

A PDF, image or text file gets a free status row marked not-html. Pages returning errors such as 404 also get a free status row.

**Is there a size limit?**

Only the first 3 MB of each page is read, and each request times out after 20 seconds.

**Can I read internal or localhost pages?**

No. Only public http(s) hosts are requested; localhost and private network addresses are skipped for free.

**Is it good for AI agents?**

Yes. One URL in, one flat row out, with a summaryText sentence, so an agent can see what a page is about, who published it and whether it is indexable.

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-16): first release.

# Actor input Schema

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

One page URL per line. Bare domains get https://. Duplicates are skipped for free. The prefilled example list is used when the input is empty.

## `includeJsonLd` (type: `boolean`):

On (default): include the page JSON-LD structured data as a JSON string (first 20,000 characters) next to the detected types. Off: keep only the types.

## `onlyWithIssues` (type: `boolean`):

Save only pages that have at least one SEO issue (missing title, description, canonical, Open Graph image, H1, JSON-LD and so on). Other pages are skipped and never charged.

## `sortBy` (type: `string`):

input keeps your order, mostIssuesFirst lists the pages with the most SEO issues first, newestFirst sorts by publish date, wordCountDesc by text length.

## `maxResults` (type: `integer`):

Cap on saved pages (sorted first, then capped). Default 500, maximum 5000.

## Actor input object example

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Web_scraping",
    "https://github.com/apify/crawlee",
    "https://example.com",
    "https://www.bbc.com/news"
  ],
  "includeJsonLd": true,
  "onlyWithIssues": false,
  "sortBy": "input",
  "maxResults": 500
}
```

# Actor output Schema

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

Title, description, canonical, Open Graph image, JSON-LD types and issue count.

## `seo` (type: `string`):

Title, description, canonical, robots, language, headings and issues.

## `social` (type: `string`):

Link preview tags.

## `structured` (type: `string`):

JSON-LD, author, dates, feeds and favicon.

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

Every field for each row.

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

Run summary: inputs, invalid URLs, duplicates, blocked hosts, fetch errors, non-HTML files, extracted, filtered, over the cap, saved and status rows.

# 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://en.wikipedia.org/wiki/Web_scraping",
        "https://github.com/apify/crawlee",
        "https://example.com",
        "https://www.bbc.com/news"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/page-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://en.wikipedia.org/wiki/Web_scraping",
        "https://github.com/apify/crawlee",
        "https://example.com",
        "https://www.bbc.com/news",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/page-metadata-extractor").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://en.wikipedia.org/wiki/Web_scraping",
    "https://github.com/apify/crawlee",
    "https://example.com",
    "https://www.bbc.com/news"
  ]
}' |
apify call hydrocore/page-metadata-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/page-metadata-extractor"
        }
    }
}
```

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/CyJ8UwDRxmJQdSc4J/builds/wo9yYadPQ7uQHMYXj/openapi.json
