# Check Open Graph tags and preview images in bulk

**Use case:** 

See how your pages will look when shared in Slack, LinkedIn, X or iMessage. The task reads Open Graph and Twitter card tags for every URL, loads each preview image to confirm it works and measures its real size, and shows missing titles, descriptions or canonicals at a glance.

## Input

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

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "title": {
    "label": "OG title",
    "format": "text"
  },
  "htmlTitle": {
    "label": "<title>",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "canonical": {
    "label": "Canonical",
    "format": "link"
  },
  "language": {
    "label": "Lang",
    "format": "text"
  },
  "type": {
    "label": "og:type",
    "format": "text"
  },
  "twitterCard": {
    "label": "Twitter card",
    "format": "text"
  },
  "imageWidth": {
    "label": "Image W",
    "format": "number"
  },
  "imageHeight": {
    "label": "Image H",
    "format": "number"
  },
  "imageOk": {
    "label": "Image loads",
    "format": "boolean"
  },
  "jsonLdTypes": {
    "label": "JSON-LD types",
    "format": "array"
  },
  "robots": {
    "label": "Robots",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Link Preview & Website Metadata API - OG Tags, Favicon, Logo Actor is ready to run with the inputs already set for "Check Open Graph tags and preview images in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/1AmKyTjfiybAMykYK) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check Open Graph tags and preview images in bulk" task

The Link Preview & Website Metadata API - OG Tags, Favicon, Logo Actor will start running based on the input automatically. You can also change all the input fields, like URLs, check preview images, and more, to match your specific use case.

### 3. Receive the "Check Open Graph tags and preview images in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, OG title, <title>, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check Open Graph tags and preview images in bulk" task via API](https://apify.com/cuestadata/link-preview-metadata.md).

## FAQ

### What does the Open Graph checker test?

It reads og:title, og:description, og:image, og:type, Twitter card tags and canonical URLs, then loads each preview image to check it works and measure it.

### What image size should an Open Graph image be?

Most platforms recommend about 1200 x 630 pixels. The checker reports the real width and height so you can spot images that are too small.

### How much does checking Open Graph tags cost?

It costs $1.50 per 1,000 URLs with metadata returned. Error pages and dead links are free.

## About this Actor

This example demonstrates how to use [Link Preview & Website Metadata API - OG Tags, Favicon, Logo](https://apify.com/cuestadata/link-preview-metadata.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cuestadata/link-preview-metadata.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cuestadata/link-preview-metadata.md

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`).
