# Link Preview & Website Metadata API - OG Tags, Favicon, Logo (`cuestadata/link-preview-metadata`) Actor

Get link preview data for any URL in bulk: title, description, Open Graph and Twitter card image (with size), favicon and all icons, logo, brand and theme color, canonical URL, language, JSON-LD types, company social profiles, oEmbed and RSS feeds.

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

## Pricing

from $1.20 / 1,000 link previews

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

### What does Link Preview & Website Metadata do?

**Link Preview & Website Metadata** turns any list of URLs into rich **link preview data**, the same information Slack, iMessage and LinkedIn show when you paste a link. For each page you get:

- **Title, description and site name** (Open Graph first, then Twitter card and HTML fallbacks)
- **Preview image** (`og:image`) with its **real width and height**, plus whether it actually loads
- **Favicon, Apple touch icon, every declared icon and the logo** (from JSON-LD, `og:logo` or icons)
- **Brand color** (dominant color of the icon or logo) and declared **theme color**
- **Canonical URL, language, og:type, Twitter card type, author, published and modified dates, keywords**
- **JSON-LD types**, **organization name** and **official company profiles** (`sameAs`)
- **oEmbed** data for videos, slides and other embeddable pages, and **RSS/Atom feeds**

It works as a simple bulk **link preview API**: give it 10 URLs or 100,000.

### Why use this link preview API?

- **Accurate previews.** Follows redirects, resolves relative URLs, and uses the same fallback order as the big chat apps.
- **Brand assets in one call.** Logo, best icon, favicon, brand color and official profiles for company enrichment or UI avatars.
- **Checks images for real.** Many sites declare the wrong size or a broken `og:image`. `imageOk`, `imageWidth` and `imageHeight` tell you the truth.
- **Pay only for previews.** Errors, 4xx/5xx pages, dead domains and non-HTML files (PDFs, images) are free.
- **No browser overhead.** Fast and cheap, with polite limits of at most 3 parallel requests per site.
- **API, schedules and integrations.** Use it from the Apify API, Make, Zapier, n8n or any MCP-enabled AI agent.

### What can I use it for?

- **Link previews in your app**, chat, CMS, newsletter tool or bookmark manager, without running your own scraper.
- **Company enrichment:** logo, brand color, name and official profiles for a list of company domains.
- **Social/SEO tag audits:** find pages with missing or broken Open Graph images, missing descriptions or wrong canonicals.
- **Content curation:** build rich cards for a list of articles with title, image, author and publish date.
- **Lead and CRM cleanup:** add favicons and brand colors to account records so they are easier to scan.

### How to get link preview data in bulk

1. Paste your **URLs** (one per line, `https://` optional).
2. Keep **Check preview images**, **Detect brand color** and **Fetch oEmbed data** on, or turn them off for maximum speed.
3. Click **Start**. Switch between the **Link previews**, **Brand assets** and **SEO & social tags** views, or export everything as JSON, CSV or Excel.

### Input example

```json
{
    "urls": ["https://apify.com", "stripe.com", "https://developer.mozilla.org/en-US/docs/Web/HTML"],
    "checkImages": true,
    "brandColor": true,
    "oembed": true
}
```

### Output example

```json
{
    "url": "https://stripe.com",
    "finalUrl": "https://stripe.com/",
    "statusCode": 200,
    "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
    "description": "Stripe is a financial services platform that helps all types of businesses accept payments...",
    "type": "website",
    "image": "https://b.stripecdn.com/mkt-ssr-statics/assets/_next/static/media/stripe.37119086.jpg",
    "imageWidth": 2048,
    "imageHeight": 1024,
    "imageOk": true,
    "favicon": "https://images.stripeassets.com/.../favicon.svg",
    "appleTouchIcon": "https://images.stripeassets.com/.../favicon.png",
    "logo": "https://images.stripeassets.com/.../favicon.svg",
    "brandColor": "#533afd",
    "canonical": "https://stripe.com/",
    "language": "en-US",
    "twitterCard": "summary_large_image",
    "jsonLdTypes": ["Organization", "WebSite"],
    "organizationName": "Stripe",
    "sameAs": ["https://twitter.com/stripe", "https://youtube.com/@stripe", "https://www.linkedin.com/company/stripe"],
    "fetchedAt": "2026-11-19T02:50:02Z"
}
```

Other fields include `htmlTitle`, `siteName`, `imageAlt`, `twitterSite`, `twitterImage`, `video`, `locale`, `themeColor`, `author`, `publishedTime`, `modifiedTime`, `keywords`, `robots`, `generator`, `manifest`, `icons` (url, rel, sizes, type), `logoOrIcon` (best available image), `feeds`, `alternateLanguages`, `oembed` and `error`.

### How much does it cost?

This Actor uses **pay-per-event** pricing: **$1.50 per 1,000 link previews** (**$0.0015 per URL**), plus a tiny Apify start fee per run. You pay only for pages that returned metadata. Errors, dead links and non-HTML files are free. See the Pricing tab for discounts on higher Apify plans.

### Tips

- **Fastest mode:** turn off **Check preview images** and **Detect brand color** if you only need text fields.
- **Localized titles:** set **Preferred language** (for example `fr-FR,fr;q=0.9`) for multilingual sites.
- **Company domains:** paste bare domains like `stripe.com`. Use the **Brand assets** view for logo and color.
- **Pages that block bots** or need JavaScript to render their tags may return little or no metadata. Those are not charged.

### Use with AI agents (MCP)

Connect this tool to Claude, ChatGPT, Cursor or any other MCP client through the [Apify MCP server](https://docs.apify.com/mcp). Add this server URL to your client and sign in with your Apify account:

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com/?tools=actors,docs,cuestadata/link-preview-metadata" }
  }
}
```

Then ask in plain words, for example: *"Get the title, preview image, logo and brand color for these 30 company websites."* The agent fills in the input, runs Link Preview & Website Metadata and reads the results.

AI agents without an Apify account can pay per run with a prepaid token (x402, Skyfire or card) through [Apify agentic payments](https://docs.apify.com/agents/payments). This tool uses limited permissions, so it works with those tokens.

### More tools from Cuesta Data

| Tool | What it does |
|---|---|
| [Website Screenshot & PDF](https://apify.com/cuestadata/website-screenshot-pdf) | Full-page, mobile and element screenshots or PDFs of any list of URLs, with change detection. |
| [PDF & Image to Text (OCR)](https://apify.com/cuestadata/pdf-image-text-extractor) | Text from digital and scanned PDFs and images, page by page, with OCR in 7 languages. |
| [Company Jobs API](https://apify.com/cuestadata/company-jobs-feed) | Every open job from company career pages on Greenhouse, Lever, Ashby, Workable and more. |
| [SEO Site Audit](https://apify.com/cuestadata/seo-site-audit) | Crawl a site and check titles, meta tags, headings, broken links, duplicates and schema, with an HTML report. |
| [PageSpeed & Lighthouse Bulk Audit](https://apify.com/cuestadata/pagespeed-lighthouse-audit) | Lighthouse scores, Core Web Vitals and top fixes for many URLs or a whole sitemap, with HTML reports. |
| [Domain Availability Checker](https://apify.com/cuestadata/domain-availability-checker) | Bulk domain availability for name ideas x TLDs, confirmed by registry RDAP/WHOIS, with registrar and expiry dates. |
| [Bulk File Downloader](https://apify.com/cuestadata/bulk-file-downloader) | Download files from a URL list or every PDF/image linked on a page, with one ZIP link and SHA-256 hashes. |

### FAQ

**Is it legal to collect link preview data?**
Yes, for normal use. The Actor reads the public metadata that site owners publish specifically so other apps can preview their links (Open Graph, Twitter cards, oEmbed, icons). It does not log in or collect personal data beyond public bylines that a page declares. You remain responsible for how you use logos and images, which usually belong to their owners.

**Does it render JavaScript?**
No. It reads the HTML that the server returns, like Slack and most link unfurlers do. Almost all sites put their preview tags in that HTML.

**Why is the brand color different from the theme color?**
`themeColor` is what the site declares for browser UI (often white or black). `brandColor` is measured from the site's icon or logo, which is usually closer to the real brand color.

**I found a bug or need a feature.**
Open an issue on the **Issues** tab. We usually reply within one business day.

*Link Preview & Website Metadata is built and maintained by Cuesta Data.*

# Actor input Schema

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

Web pages to get preview data for. One per line; <code>example.com</code> without https:// also works.

## `checkImages` (type: `boolean`):

Load each page's Open Graph image to confirm it works and measure its real width and height.

## `brandColor` (type: `boolean`):

Find the dominant color of the site's icon or logo (hex), in addition to the declared theme color.

## `oembed` (type: `boolean`):

When a page advertises oEmbed (videos, posts, slides...), also return the provider's embed data: type, title, thumbnail, size and embed HTML.

## `acceptLanguage` (type: `string`):

Accept-Language header sent to sites, e.g. <code>de-DE,de;q=0.9</code> to get German titles where available.

## `maxUrls` (type: `integer`):

Safety cap on how many URLs are processed in one run.

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

How many URLs are processed in parallel (at most 3 per website).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://stripe.com",
    "https://developer.mozilla.org/en-US/docs/Web/HTML"
  ],
  "checkImages": true,
  "brandColor": true,
  "oembed": true,
  "acceptLanguage": "en-US,en;q=0.8",
  "maxUrls": 10000,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `previews` (type: `string`):

No description

## `all` (type: `string`):

No description

# 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://apify.com",
        "https://stripe.com",
        "https://developer.mozilla.org/en-US/docs/Web/HTML"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cuestadata/link-preview-metadata").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://apify.com",
        "https://stripe.com",
        "https://developer.mozilla.org/en-US/docs/Web/HTML",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cuestadata/link-preview-metadata").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://apify.com",
    "https://stripe.com",
    "https://developer.mozilla.org/en-US/docs/Web/HTML"
  ]
}' |
apify call cuestadata/link-preview-metadata --silent --output-dataset

```

## MCP server setup

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

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/2PyIma70ip4QMimUf/builds/NcMVk8wPsQ9WQHFhq/openapi.json
