# Open Graph & URL Metadata Extractor - Link Preview, Favicon (`admirala/url-metadata-opengraph-favicon`) Actor

Bulk link preview and URL metadata extractor: title, meta description, canonical, Open Graph and Twitter Card tags, favicon, JSON-LD types and share-preview issues. $0.0009 per URL.

- **URL**: https://apify.com/admirala/url-metadata-opengraph-favicon.md
- **Developed by:** [Ja doei](https://apify.com/admirala) (community)
- **Categories:** SEO tools, Developer tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 per url with 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

## Open Graph & URL Metadata Extractor - Link Preview, Favicon

> ✅ **Tested daily** with its default input (Apify's automated QA plus our own smoke test before every release).

**Open Graph and URL metadata extractor**: everything you need to render a **link preview**, or to audit how your pages look when shared, from one request per URL. Get titles, descriptions, Open Graph and Twitter Card tags, favicons and a list of preview problems. **$0.0009 per URL**.

### Use cases

- **Link previews** in chat apps, CMSs, bookmark tools and newsletters
- **Social share audit**: find pages without `og:image`, with a broken share image or a missing Twitter Card
- **Brand enrichment**: favicon, apple-touch-icon, theme color and site name for a list of company websites
- **SEO checks**: title and description length, canonical, robots meta, hreflang and structured-data types

### Output per URL

| Group | Fields |
|---|---|
| Basics | `title`, `titleLength`, `description`, `descriptionLength`, `canonical`, `language`, `robots`, `h1`, `finalUrl`, `status` |
| Open Graph | `ogTitle`, `ogDescription`, `ogImage`, `ogType`, `ogUrl`, `siteName`, plus the full `openGraph` object |
| Twitter | `twitterCard`, `twitterImage`, full `twitter` object |
| Icons | `favicon`, `appleTouchIcon`, all `icons` with sizes, `manifest`, `themeColor` |
| Extras | `jsonLdTypes` (e.g. Organization, Product, Article), `hreflang`, `rssFeeds` |
| Checks | `faviconCheck`, `ogImageCheck` (status + content type) and `previewIssues` |

`previewIssues` is a plain list such as `["missing og:image", "title longer than 60 characters"]` — easy to filter in a spreadsheet.

Relative URLs are resolved to absolute ones. If a page declares no icon, `/favicon.ico` is used and verified.

### Input

| Field | Default | Description |
|---|---|---|
| `urls` | – | Pages to read |
| `checkFavicon` | true | Verify that favicon and og:image actually load |
| `timeoutSecs` | 20 | Per-request timeout |

### Pricing (pay per event)

- **$0.0009 per URL** whose HTML was read. Unreachable pages and non-HTML responses are reported for free.

### Notes

Only the URLs you supply are requested (plus the favicon and share image when verification is on). The Actor reads public page metadata; it does not collect personal data.

### Use with AI agents (MCP)

This Actor can be used as a tool by AI agents (Claude, Cursor, VS Code, other MCP clients) through the official [Apify MCP server](https://docs.apify.com/platform/integrations/mcp):

- Add only this Actor as a tool: `https://mcp.apify.com?tools=admirala/url-metadata-opengraph-favicon` (sign in with OAuth or an Apify API token).
- Or connect `https://mcp.apify.com` and let the agent find it with `search-actors` (e.g. "open graph"), read the input schema with `fetch-actor-details` and run it with `call-actor`.

Example input an agent can pass:

```json
{
  "urls": [
    "https://www.wikipedia.org",
    "https://github.com"
  ]
}
```

Cost per call: $0.0009 per URL whose HTML was read; unreachable pages are free. Results come back as dataset items (`get-dataset-items`).

### FAQ

**How do I get the Open Graph image and title of a URL?**
Add the URL to `urls`; results include `ogTitle`, `ogDescription`, `ogImage` and the full `openGraph` object.

**Can I get a website's favicon?**
Yes: `favicon`, `appleTouchIcon` and all `icons` with sizes; with `checkFavicon` on they are verified to load.

**Can it audit social share previews?**
Yes, `previewIssues` lists problems such as a missing og:image or a too-long title.

### Related actors

- [Website to Markdown for LLM & RAG - Clean Page Text](https://apify.com/admirala/webpage-to-markdown-llm)
- [Tech Stack Detector - BuiltWith & Wappalyzer Alternative](https://apify.com/admirala/website-tech-stack-detector)
- Broken Link Checker - Find 404s & Redirects (Crawl or List) (coming soon to Apify Store)

# Actor input Schema

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

Pages to read; domains without scheme get https://. Example: \["https://github.com", "wikipedia.org"]. $0.0009 per URL.

## `checkFavicon` (type: `boolean`):

true = send a light request to the favicon and og:image to confirm they load (status and content type). No extra cost.

## `timeoutSecs` (type: `integer`):

Per-request timeout in seconds (3-60).

## Actor input object example

```json
{
  "urls": [
    "https://www.wikipedia.org",
    "https://github.com"
  ],
  "checkFavicon": true,
  "timeoutSecs": 20
}
```

# Actor output Schema

## `results` (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://www.wikipedia.org",
        "https://github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("admirala/url-metadata-opengraph-favicon").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.wikipedia.org",
        "https://github.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("admirala/url-metadata-opengraph-favicon").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://www.wikipedia.org",
    "https://github.com"
  ]
}' |
apify call admirala/url-metadata-opengraph-favicon --silent --output-dataset

```

## MCP server setup

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

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/XrmgiZ4tm4h2j7ktZ/builds/mNIFGKwa8az5ErQ9n/openapi.json
