# URL Metadata & Open Graph Extractor (Bulk) (`digital_influx/url-metadata`) Actor

Paste any list of URLs and get for each page: title, meta description, Open Graph, Twitter card, favicon, canonical, language, author, dates, keywords, structured data types and the link preview a chat app would show. Respects robots.txt.

- **URL**: https://apify.com/digital\_influx/url-metadata.md
- **Developed by:** [Bruno Petrelli](https://apify.com/digital_influx) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 page reads

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 & Open Graph Extractor (Bulk)

Paste a list of URLs and get **one clean row of metadata per page**:

- **Basics:** title, meta description, canonical URL, language, first H1, word count.
- **Open Graph:** `og:title`, `og:description`, `og:image`, `og:type`, `og:url`, site name.
- **Twitter / X card:** card type, title, description, image, `@site`.
- **Favicon:** the largest icon the page declares (or `/favicon.ico`, flagged as a guess).
- **Article data:** author, published and modified dates (as ISO dates), keywords.
- **Indexing:** meta robots, `noindex`, hreflang alternates, JSON-LD structured data types.
- **`preview`:** the title, description and image a chat app or social network would show when the link is shared (Open Graph first, then Twitter, then the plain tags).
- **HTTP:** status code, final URL after redirects and the redirect chain.

**Respects robots.txt** of every site. No browser, no proxies; the User-Agent says `url-metadata`. In our test, 7 URLs took 3 seconds.

### Use it for

- **Link previews** in your app, newsletter or CMS without running your own fetcher.
- **Content and SEO inventories:** titles, descriptions and canonicals of hundreds of URLs in one table.
- **Social sharing QA:** find pages with no `og:image` or a missing description before a campaign.
- **Enrich lists of URLs** (leads, bookmarks, backlinks, search results) with a title, description, image and icon.
- **AI agents and RAG pipelines:** a compact, structured summary of any page, callable through the Apify MCP server.

### Input

```json
{
  "urls": ["https://userpilot.com/", "stripe.com/blog"]
}
```

### Output

One item per URL (real result for userpilot.com on 2026-09-25, lists shortened):

```json
{
  "input": "https://userpilot.com/",
  "url": "https://userpilot.com/",
  "finalUrl": null,
  "statusCode": 200,
  "redirectChain": [],
  "contentType": "text/html; charset=utf-8",
  "title": "Product Growth Platform | Userpilot",
  "metaDescription": "Userpilot is the AI-powered, no-code product growth platform that helps teams onboard users, drive feature adoption, and boost retention across web and mobile.",
  "canonical": "https://userpilot.com/",
  "lang": "en-US",
  "h1": "You ship the feature. Userpilot AI gets it adopted.",
  "modifiedTime": "2026-08-06T14:16:54.000Z",
  "siteName": "Userpilot",
  "ogTitle": "Product Growth Platform | Userpilot",
  "ogImage": "https://userpilot-website-assets.s3.us-west-2.amazonaws.com/wp-content/uploads/2026/05/11144757/UserpilotPreview-size-2026.png",
  "ogType": "website",
  "twitterCard": "summary_large_image",
  "twitterSite": "@teamuserpilot",
  "favicon": "https://userpilot-website-assets.s3.us-west-2.amazonaws.com/wp-content/uploads/2025/08/20164814/cropped-favicon-dark-512x512-1-192x192.png",
  "faviconGuessed": false,
  "noindex": false,
  "structuredDataTypes": ["Organization", "WebSite", "SoftwareApplication"],
  "wordCount": 1413,
  "preview": {
    "title": "Product Growth Platform | Userpilot",
    "description": "Userpilot is the AI-powered, no-code product growth platform that helps teams onboard users, drive feature adoption, and boost retention across web and mobile.",
    "image": "https://userpilot-website-assets.s3.us-west-2.amazonaws.com/wp-content/uploads/2026/05/11144757/UserpilotPreview-size-2026.png"
  },
  "status": "ok",
  "checkedAt": "2026-09-25T15:33:53.574Z"
}
```

`status` is `ok`, `error` (4xx, 5xx or unreachable, with the reason in `error`), `not_html` (a PDF, an image...), `blocked_by_robots` or `invalid`.

### Pricing

Pay per event: **one event per page read** (`status: ok`). Errors, non-HTML URLs, robots-blocked URLs, invalid inputs and duplicates are saved free. Set a maximum cost for the run and the Actor stops cleanly when it is reached.

### Good to know

- The Actor reads the HTML the server sends. Tags that a page adds with JavaScript after loading are not seen (most sites put their meta tags in the HTML for exactly this reason: social networks read it the same way).
- Dates are converted to ISO format when they can be parsed, and kept as written otherwise.
- Need a whole website instead of a list of URLs? Use **SEO Audit & Broken Link Checker** by the same author.

### Support

A tag that should be read and isn't? Open an issue on the Actor's Issues tab with the URL. Issues get an answer within a few days.

# Actor input Schema

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

One per line. Any page on any website (https:// is added if missing). Repeated URLs are read once.

## `respectRobotsTxt` (type: `boolean`):

Recommended. URLs that the site's robots.txt disallows are not read (saved free with status blocked\_by\_robots).

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

How many URLs are read at the same time (1 to 20).

## Actor input object example

```json
{
  "urls": [
    "https://userpilot.com/",
    "https://stripe.com/blog"
  ],
  "respectRobotsTxt": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

No description

## `summary` (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://userpilot.com/",
        "https://stripe.com/blog"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital_influx/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://userpilot.com/",
        "https://stripe.com/blog",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("digital_influx/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://userpilot.com/",
    "https://stripe.com/blog"
  ]
}' |
apify call digital_influx/url-metadata --silent --output-dataset

```

## MCP server setup

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