# Open Graph & Meta Tags Checker API (JSON-LD, Link Preview) (`emttn/url-metadata`) Actor

Open Graph checker API: give it page URLs and get each page's title, description, Open Graph, Twitter card, meta tags, JSON-LD and hreflang as data for AI agents. Respects robots.txt, charged per page delivered; failed pages are free.

- **URL**: https://apify.com/emttn/url-metadata.md
- **Developed by:** [Frameskim Tools](https://apify.com/emttn) (community)
- **Categories:** AI, Agents, Developer tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 page metadata delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## URL Metadata for AI Agents (Open Graph, JSON-LD, SEO tags)

Give it page URLs and get each page's title, description, Open Graph, Twitter card, JSON-LD and hreflang back as data, for AI agents that need to know what a URL is about without reading the whole page. You get one dataset item per page, with its canonical URL, language, robots and favicon too: for link previews, SEO checks and structured data.

- Reads public URLs only, and respects robots.txt for every page and every redirect. It identifies itself as `FrameskimFetch`.
- Reads the page's `<head>` and its JSON-LD scripts; no JavaScript is run.
- Charged per page delivered; pages that fail, are not HTML, have no metadata or are not allowed by robots.txt are free.

More: [URL Metadata on frameskim.dev](https://frameskim.dev/url-metadata)

### What you get

```json
{
  "url": "https://example.com/",
  "status": 200,
  "title": "Example",
  "description": "An example page.",
  "canonical": "https://example.com/",
  "lang": "en",
  "robots": "index, follow",
  "favicon": "https://example.com/favicon.ico",
  "openGraph": {"title": "Example", "image": "https://example.com/og.png"},
  "twitter": {"card": "summary_large_image"},
  "jsonLd": [{"@context": "https://schema.org", "@type": "Organization", "name": "Example"}],
  "hreflang": [{"lang": "es", "url": "https://example.com/es/"}],
  "truncated": false
}
```

- `url` is the final URL after redirects; every URL in the item is absolute.
- A missing field is `null`, or empty for `openGraph`, `twitter`, `jsonLd` and `hreflang`. Without a favicon link, `favicon` is the host's `/favicon.ico`.
- `jsonLd` keeps every valid JSON-LD object (a list is flattened) up to 100,000 characters; `truncated` is `true` when some were left out or the page passed 3 MB and was cut.
- A page that could not be delivered has `url` and `error`, with the reason, and is not charged. A page with no title, description or Open Graph is one of them.
- The run's status message says how many pages were delivered and failed, and why the run stopped early, if it did.
- If nothing is delivered, the run still ends as succeeded: each page that failed is in the dataset with its `error`, the status message gives the first reason, and nothing was charged.

### Input

| Field | What it does |
|---|---|
| `urls` | From 1 to 100 URLs of HTML pages. A repeated URL is read once. |

### Limits

- 3 MB and 10 s per page, five pages at a time, no retry.
- Set a maximum charge per run to cap spending: the run stops before a page that would pass it.

### Pricing

This actor bills one event, nothing else:

- `page`: one per page whose metadata is delivered.

Pages that fail, are not HTML, have no title, description or Open Graph, or are not allowed by `robots.txt` are not charged, and pages not started when the run stops are not fetched or charged. Each page stays charged once delivered, even if the run later stops or fails. If no page is delivered, the run still ends as succeeded and nothing was charged. The run never charges more than the maximum you set: it stops before a page that would not fit. Current prices are on the Pricing tab.

### Site owners

To keep your pages out, disallow `FrameskimFetch` in your `robots.txt` (the other Frameskim actors that fetch pages, such as Web Search & Page Markdown for AI Agents, also use or honor that user agent, so the rule stops them too). Each run reads a host's `robots.txt` once, so a run already in progress may not see the change; runs that start after it read the new file. Rights holders and people whose personal data appears in a page's metadata can also write to support@frameskim.dev. Neither a `robots.txt` rule nor a request removes metadata from datasets that users already hold.

### Terms and privacy

URL Metadata for AI Agents is operated by Emttn LLC and is not affiliated with, endorsed by or sponsored by the sites it reads, or by X Corp (Twitter is a trademark of X Corp). You need a lawful basis to fetch each page you list and to use its metadata, and you are responsible for following each site's terms, copyright and privacy law; a public page or a `robots.txt` allow is not a license to its content. The metadata is what each page declares about itself and may be incomplete or inaccurate. Terms: https://frameskim.dev/terms. Privacy: https://frameskim.dev/privacy. Questions: support@frameskim.dev.

### Support

Every error says what was wrong. For anything else, see https://frameskim.dev/terms.

# Actor input Schema

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

Public http or https URLs of HTML pages, from 1 to 100. Each page delivered with its metadata is one page event.

## `failWhenEmpty` (type: `boolean`):

Internal: the run ends as failed, instead of succeeded with error items, when no page is delivered. Used by health checks.

## Actor input object example

```json
{
  "urls": [
    "https://frameskim.dev/"
  ],
  "failWhenEmpty": false
}
```

# Actor output Schema

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

Dataset items: url, status, title, description, canonical, lang, robots, favicon, openGraph, twitter, jsonLd, hreflang and truncated; pages that could not be delivered carry an error and are not charged.

# 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://frameskim.dev/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("emttn/url-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://frameskim.dev/"] }

# Run the Actor and wait for it to finish
run = client.actor("emttn/url-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://frameskim.dev/"
  ]
}' |
apify call emttn/url-metadata --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,emttn/url-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/cw31WdG9T8UQiReaa/builds/TyimpOYLywh99CNR0/openapi.json
