Open Graph & Link Preview Extractor
Pricing
from $3.00 / 1,000 url extracteds
Go to Apify Store
Open Graph & Link Preview Extractor
Extract Open Graph, Twitter Card, and meta tags from any URL in bulk. Build link previews, social cards, and unfurl data for your apps and automation workflows.
Pricing
from $3.00 / 1,000 url extracteds
Rating
0.0
(0)
Developer
Harsh
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
4 days ago
Last modified
Categories
Share
Extract Open Graph, Twitter Card, and other social meta tags from any URL in bulk. Use the results to build link previews, social cards, and unfurl data for your apps.
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
urls | string[] | Yes | — | URLs to extract meta tags from |
includeTwitterCards | boolean | No | true | Include Twitter Card meta tags |
timeoutMs | integer | No | 15000 | Per-request timeout in milliseconds |
Output (per URL)
| Field | Description |
|---|---|
url | Input URL |
title | Page title (og:title or <title>) |
description | Page description (og:description or meta description) |
ogImage | Open Graph image URL (resolved to absolute) |
ogType | Open Graph type (website, article, etc.) |
siteName | Open Graph site name |
twitterCard | Twitter Card type |
twitterImage | Twitter Card image URL |
twitterTitle | Twitter Card title |
twitterDescription | Twitter Card description |
canonicalUrl | Canonical link URL |
favicon | Favicon URL |
locale | Open Graph locale |
error | Error message if extraction failed (null on success) |
How it works
- Fetches each URL with axios (configurable timeout, follows redirects)
- Parses HTML with cheerio
- Extracts
meta[property^="og:"],meta[name^="twitter:"],link[rel=canonical], andlink[rel=icon] - Resolves relative image and link URLs against the page URL
- Processes all URLs in parallel with graceful per-URL error handling
Run locally
$apify run
Example input (storage/key_value_stores/default/INPUT.json):
{"urls": ["https://apify.com", "https://github.com"],"includeTwitterCards": true,"timeoutMs": 15000}
Deploy to Apify
apify loginapify push