# Check Open Graph and Twitter card tags on a page

**Use case:** 

Extracts the Open Graph and Twitter card tags of each page so you can see how links will look when shared on social networks. Flags pages with missing or short tags.

## Input

```json
{
  "urls": [
    "https://www.mozilla.org/en-US/"
  ],
  "respectRobotsTxt": true,
  "includeSocialAndSchema": true,
  "selfCheck": false
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "grade": {
    "label": "Grade",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "titleLength": {
    "label": "Title length",
    "format": "number"
  },
  "metaDescriptionLength": {
    "label": "Description length",
    "format": "number"
  },
  "h1Count": {
    "label": "H1s",
    "format": "number"
  },
  "canonical": {
    "label": "Canonical",
    "format": "link"
  },
  "indexable": {
    "label": "Indexable",
    "format": "boolean"
  },
  "issueCount": {
    "label": "Issues",
    "format": "number"
  },
  "issues": {
    "label": "Issue list",
    "format": "array"
  }
}
```

## How it works

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

The SEO Page Audit: Meta Tags, Schema, Canonical, Robots Actor is ready to run with the inputs already set for "Check Open Graph and Twitter card tags on a page". [Sign up or log in](https://console.apify.com/create-task-from-example/Jqj0WDt1T3eHcJ7Vy) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check Open Graph and Twitter card tags on a page" task

The SEO Page Audit: Meta Tags, Schema, Canonical, Robots Actor will start running based on the input automatically. You can also change all the input fields, like page urls, respect robots.txt, and more, to match your specific use case.

### 3. Receive the "Check Open Graph and Twitter card tags on a page" 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, status, score, 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 and Twitter card tags on a page" task via API](https://apify.com/pretty_theory/seo-page-audit.md).

## FAQ

### What does the check open graph and twitter card tags on a page task return?

The "Check Open Graph and Twitter card tags on a page" task returns one row per page with status code, score, grade, title and meta lengths, headings, canonical, Open Graph and schema types.

### What input does this task need?

The "Check Open Graph and Twitter card tags on a page" task needs page URLs and the Open Graph and Twitter details switch. Change the prefilled values in Apify Console or pass new input through the API.

### How do I run this task on a schedule or from the API?

Duplicate the "Check Open Graph and Twitter card tags on a page" task, edit its input, then start it from the Apify API or add a schedule in Console. Results land in a dataset you can export as JSON, CSV or Excel.

### How is this task priced?

The "Check Open Graph and Twitter card tags on a page" task runs a pay per event Actor, so you pay per page audited as listed on the Actor pricing tab, with no monthly subscription for the Actor.

### Do I need an API key or login for the target site?

No. The "Check Open Graph and Twitter card tags on a page" task reads public data only, so you need just an Apify account. It does not collect personal data or log in anywhere.

## About this Actor

This example demonstrates how to use [SEO Page Audit: Meta Tags, Schema, Canonical, Robots](https://apify.com/pretty_theory/seo-page-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/pretty_theory/seo-page-audit.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/pretty_theory/seo-page-audit.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`).
