OG Meta Preview avatar

OG Meta Preview

Pricing

Pay per event

Go to Apify Store
OG Meta Preview

OG Meta Preview

Fetch Open Graph and Twitter Card meta tags from any URL and preview exactly how your content appears when shared on social media. Identifies missing or misconfigured tags, returns all OG properties, and highlights issues. Ideal for SEO audits and social media optimization workflows.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

OG Meta Preview — Open Graph & Twitter Card Inspector

See exactly how your URLs will look when shared on Facebook, Twitter/X, LinkedIn, Slack, and other social platforms — all from a single actor run. No screenshots, no browser automation. Just clean, structured data extracted fast from real page metadata.

What Does It Do?

When someone shares a link on social media, platforms like Facebook, Twitter/X, and LinkedIn read the page's Open Graph (og:*) and Twitter Card (twitter:*) meta tags to generate the link preview card. Missing or misconfigured tags mean ugly, unbranded previews that get ignored.

OG Meta Preview fetches those tags from any list of URLs and returns:

  • Full OG metadata: title, description, image, type, site name, locale, URL
  • OG image dimensions (width × height)
  • Full Twitter Card metadata: card type, title, description, image, @site, @creator
  • Page charset and favicon URL
  • Automated issue detection: missing tags, oversized fields, non-200 responses
  • hasOgTags and hasTwitterTags booleans for quick filtering

Lightweight and fast — uses open-graph-scraper under the hood (no headless browser needed), so hundreds of URLs can be checked in minutes.


Who Is It For?

  • SEO and content teams auditing landing pages before a campaign launch
  • Developers debugging why a link preview looks wrong on Slack or LinkedIn
  • Marketing agencies checking client sites for social media readiness
  • Growth hackers validating that all blog posts have proper OG images
  • QA engineers adding social-meta checks to a release checklist

Why Use This Instead of Manual Tools?

Manual tools like Facebook Debugger or Twitter Card Validator check one URL at a time and require you to log in. OG Meta Preview:

  • Checks hundreds of URLs in a single run — no rate limits from social platforms
  • Returns structured data you can filter, sort, and pass to other actors
  • Flags every issue (missing fields, oversized text) in a machine-readable issues array
  • Runs in seconds per URL without any browser overhead
  • Integrates with the Apify API, Zapier, Make, and any pipeline via the dataset endpoint

Data Fields Reference

FieldTypeDescription
urlstringThe URL that was checked
ogTitlestring | nullog:title meta tag value
ogDescriptionstring | nullog:description meta tag value
ogImagestring | nullFirst og:image URL
ogImageWidthnumber | nullWidth from og:image:width
ogImageHeightnumber | nullHeight from og:image:height
ogTypestring | nullog:type (e.g. website, article)
ogUrlstring | nullog:url canonical URL declared in OG
ogSiteNamestring | nullog:site_name
ogLocalestring | nullog:locale (e.g. en_US)
twitterCardstring | nulltwitter:card type (summary, summary_large_image, etc.)
twitterTitlestring | nulltwitter:title
twitterDescriptionstring | nulltwitter:description
twitterImagestring | nulltwitter:image URL
twitterSitestring | nulltwitter:site (publisher @handle)
twitterCreatorstring | nulltwitter:creator (author @handle)
faviconstring | nullPage favicon URL
charsetstring | nullDocument charset (e.g. UTF-8)
hasOgTagsbooleanTrue if at least one OG tag was found
hasTwitterTagsbooleanTrue if at least one Twitter tag was found
issueCountnumberTotal number of issues detected
issuesstring[]List of detected issues (see below)
errorstring | nullFetch error message, if any
checkedAtstringISO 8601 timestamp of the check

Issues Detected

The actor automatically flags the following problems:

IssueCondition
Missing og:titleNo og:title tag found
Missing og:descriptionNo og:description tag found
Missing og:imageNo og:image tag found
og:title too longTitle exceeds 95 characters
og:description too longDescription exceeds 300 characters
Missing twitter:cardNo twitter:card tag found
Missing twitter:titleNo twitter:title and no og:title fallback
Missing twitter:descriptionNo twitter:description and no og:description fallback
Missing twitter:imageNo twitter:image and no og:image fallback
Non-200 HTTP responsePage returned a non-200 status code
Fetch errorPage could not be reached (DNS, timeout, SSL)

Pricing

This actor uses pay-per-event (PPE) pricing:

EventCost
Actor start$0.01 (one-time)
Per URL checked$0.002

Example: Checking 500 URLs costs $0.01 + 500 × $0.002 = $1.01 total.

Compare that to hours of manual work using single-URL social debuggers.


How to Use

Step 1 — Open the actor

Go to https://apify.com/automation-lab/og-meta-preview and click Try for free.

Step 2 — Enter your URLs

In the URLs field, paste the URLs you want to inspect — one per line. You can enter as few as 1 or as many as thousands.

Step 3 — Run the actor

Click Start. The actor fetches OG and Twitter Card meta tags for each URL concurrently (up to 5 at a time).

Step 4 — Review the results

Open the Dataset tab to see all results in a table. Use the Overview view for a quick summary, or download the full JSON for analysis.


Input

{
"urls": [
"https://github.com",
"https://www.youtube.com",
"https://apify.com"
]
}

Input fields

FieldTypeRequiredDescription
urlsarray of stringsYesURLs to fetch OG and Twitter Card tags from

URLs without a scheme (e.g. example.com) are automatically prefixed with https://. Duplicate URLs are deduplicated.


Output

Each URL produces one item in the dataset. Example output:

{
"url": "https://apify.com",
"ogTitle": "Apify: Full-Stack Web Scraping and Data Extraction Platform",
"ogDescription": "Build and run web scrapers and browser automation. Extract data from any website with ready-made actors.",
"ogImage": "https://apify.com/img/og-image.png",
"ogImageWidth": 1200,
"ogImageHeight": 630,
"ogType": "website",
"ogUrl": "https://apify.com/",
"ogSiteName": "Apify",
"ogLocale": "en_US",
"twitterCard": "summary_large_image",
"twitterTitle": "Apify: Full-Stack Web Scraping and Data Extraction Platform",
"twitterDescription": "Build and run web scrapers and browser automation.",
"twitterImage": "https://apify.com/img/og-image.png",
"twitterSite": "@apify",
"twitterCreator": null,
"favicon": "https://apify.com/favicon.ico",
"charset": "utf-8",
"hasOgTags": true,
"hasTwitterTags": true,
"issueCount": 0,
"issues": [],
"error": null,
"checkedAt": "2025-03-24T10:00:00.000Z"
}

Tips and Best Practices

Checking a full blog or sitemap

Use the Robots & Sitemap Analyzer to extract all URLs from a site, then pass the resulting URL list into OG Meta Preview.

Filtering by issue count

After the run, filter the dataset where issueCount > 0 to find pages that need attention. You can do this directly in the Apify UI or via the API with a ?fields=url,issueCount,issues query.

OG image size best practices

  • Recommended size: 1200 × 630 px (1.91:1 ratio)
  • Minimum size for Twitter large card: 600 × 314 px
  • Facebook ignores images smaller than 200 × 200 px

Twitter/X fallback behaviour

Twitter/X falls back to og:title, og:description, and og:image when the corresponding twitter:* tags are missing. The actor marks tags as missing only when there is no usable fallback either.

Checking preview after a deploy

Run OG Meta Preview immediately after deploying new landing pages to confirm all meta tags are in place before sharing links in campaigns.


Integrations

Connect to Make (formerly Integromat)

Use the Apify Make module to trigger OG Meta Preview, then route results to Google Sheets, Airtable, Notion, or any other tool.

Connect to Zapier

Trigger OG Meta Preview via the Apify Zapier integration. Filter results where issueCount > 0 and send Slack alerts or create Asana tasks automatically.

Export to Google Sheets

From the dataset view, click ExportCSV, then import to Google Sheets for team review and prioritization.


API Usage

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('automation-lab/og-meta-preview').call({
urls: [
'https://github.com',
'https://apify.com',
],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient(token='YOUR_API_TOKEN')
run = client.actor('automation-lab/og-meta-preview').call(run_input={
'urls': [
'https://github.com',
'https://apify.com',
],
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

cURL

curl -X POST \
'https://api.apify.com/v2/acts/automation-lab~og-meta-preview/runs?token=YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"urls": ["https://github.com", "https://apify.com"]
}'

Then fetch results:

$curl 'https://api.apify.com/v2/datasets/YOUR_DATASET_ID/items?token=YOUR_API_TOKEN'

Use with Claude AI (MCP)

This actor is available as a tool in Claude AI through the Model Context Protocol (MCP). Add it to Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.

Setup for Claude Code

$claude mcp add --transport http apify "https://mcp.apify.com"

Setup for Claude Desktop, Cursor, or VS Code

Add this to your MCP config file:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com"
}
}
}

Example prompts

  • "Check the OG tags for these URLs and tell me which ones are missing required fields: github.com, apify.com, example.com."
  • "Audit the Open Graph metadata for all blog posts on this list and flag any with missing og:image or og:description."
  • "Inspect the Twitter Card tags for these 10 landing pages and tell me which ones will look bad when shared on social media."

Learn more in the Apify MCP documentation.


Legality

OG Meta Preview makes standard HTTP GET requests to publicly accessible URLs — the same request any browser or social media crawler makes when generating a link preview. It reads only publicly available HTML meta tags in the <head> of the page.

  • No login credentials are used
  • No JavaScript rendering occurs
  • No personal data is extracted
  • Behaviour is identical to Googlebot, Facebook's scraper, and Twitter's card fetcher

Always ensure your use complies with the target site's Terms of Service.


FAQ

Does this render JavaScript? No. OG Meta Preview uses a lightweight HTTP request, identical to what social media platforms do. If a site renders OG tags only via JavaScript (rare), the tags may not be found. Most production sites inject OG tags server-side.

Will pages with bot protection block this actor? OG meta tags are typically returned by CDNs and load balancers before any bot-detection layer triggers, because social media crawlers must be able to read them. The actor uses a realistic User-Agent and has no signs of automation beyond that.

How many URLs can I check in one run? There is no hard limit. The actor processes URLs in batches of 5 concurrently. 500 URLs typically complete in under 2 minutes.

Can I schedule this actor to run regularly? Yes. Use the Apify Schedule feature to run OG Meta Preview daily or weekly, then receive results via webhook to Slack or email.

What if a URL redirects? The actor follows redirects automatically and reads the final page's meta tags.

What's the difference between og:title and twitter:title? og:title is the standard Open Graph title used by Facebook, LinkedIn, Slack, Discord, and most platforms. twitter:title is Twitter/X-specific. Twitter falls back to og:title when twitter:title is absent, but setting both gives you full control over each platform's preview text.