# Public Website Metadata Audit (`splendorous_frostline/mi-actpr`) Actor

Audit public web pages for titles, descriptions, canonical URLs, robots directives, social tags, headings, and selected security headers. Returns one structured result per URL.

- **URL**: https://apify.com/splendorous\_frostline/mi-actpr.md
- **Developed by:** [Ian Barrios](https://apify.com/splendorous_frostline) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 audited pages

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

### What does Public Website Metadata Audit do?

**Public Website Metadata Audit** checks the public metadata of up to 10 web pages and returns one structured record per URL. It extracts the page title, meta description, canonical URL, robots directive, H1 headings, Open Graph and Twitter tags, HTTP status, and selected security headers. Try it with `https://example.org/` in the Input tab. Results are stored in an Apify dataset and are available through Apify's API, schedules, and integrations.

### Why use it?

Use the Actor to inspect landing pages before publication, verify social preview tags, or compare metadata after a site change. The compact JSON is convenient for another automation or agent. The Actor uses direct HTTP requests and Cheerio, with no browser, proxy, AI model, authenticated session, or paid external API.

### How to use it

1. Open the Actor's Input tab and enter one to 10 public HTTP or HTTPS URLs.
2. Start a run, then open the dataset linked from the Output tab.
3. Download the dataset as JSON, CSV, HTML, or Excel, or read it through the Apify API.

Start with one URL and set a maximum run cost in Apify Console if you want a small trial. The Actor does not follow page links. It checks `robots.txt` before each page request, including redirect destinations.

### Input

```json
{"startUrls":[{"url":"https://example.org/"}]}
```

`startUrls` is required. The Actor rejects URLs containing credentials, local or private network destinations, and custom ports. It reads at most 1 MB of HTML per page and waits at most eight seconds for each HTTP request.

### Output

One dataset item is written per input URL. A simplified successful result is:

```json
{"requestedUrl":"https://example.org/","status":"ok","finalUrl":"https://example.org/","httpStatus":200,"title":"Example Domain","h1":["Example Domain"]}
```

Other statuses include `excluded_by_robots`, `unsupported_content_type`, `http_error`, and `error`. The Actor stores metadata and diagnostics, never raw page HTML.

### Data table

| Field | Meaning |
|---|---|
| `requestedUrl`, `finalUrl` | Requested and final page URL |
| `status`, `httpStatus` | Outcome and HTTP response code |
| `title`, `description`, `canonical`, `robots` | Search metadata |
| `h1`, `openGraph`, `twitter` | Heading and social preview metadata |
| `headers`, `inspectedAt` | Header observations and UTC time |

### Pricing and cost estimation

The Actor is [published on Apify Store](https://apify.com/splendorous_frostline/mi-actpr) with **Pay per event** pricing: $0.01 for each `apify-default-dataset-item` result and the standard $0.00005 `apify-actor-start` event. `Actor.pushData()` triggers the dataset event automatically; the code adds no second charge. Memory is fixed at 256 MB and each run accepts at most 10 pages. Check the actual price and resource cost in Apify Console. Apify calculates developer profit for paying users as 80% of event revenue minus platform usage costs. No customer payment or positive margin has been demonstrated yet.

### Tips and limits

Use public pages whose terms allow automated access. The Actor honors `robots.txt`, does not sign in, and does not render JavaScript. Metadata inserted only after browser execution may be missing. Some sites may block automated HTTP requests. Pages are processed sequentially to avoid unnecessary load.

### FAQ and support

**Is this a full SEO or security audit?** No. It reports observable metadata and selected header presence.

**Can it access private URLs?** No. It rejects private addresses and checks redirect targets.

**Where can I report a problem?** Use the Actor's Issues tab after publication and include a public example URL. Do not post credentials or private URLs.

### Local development

Use Node.js 22. Run `npm ci`, `npm test`, and `npm start`. This repository is linked to Apify through GitHub and automatically builds on a push to `main`.

# Actor input Schema

## `startUrls` (type: `array`):

HTTP or HTTPS URLs of public pages. No sign-in, browser automation, or private network access.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.org/"
    }
  ]
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://example.org/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("splendorous_frostline/mi-actpr").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 = { "startUrls": [{ "url": "https://example.org/" }] }

# Run the Actor and wait for it to finish
run = client.actor("splendorous_frostline/mi-actpr").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 '{
  "startUrls": [
    {
      "url": "https://example.org/"
    }
  ]
}' |
apify call splendorous_frostline/mi-actpr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,splendorous_frostline/mi-actpr"
        }
    }
}
```

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/bWMe3GdBhhEc6fkyI/builds/or6fSBRyz4uMSEyRg/openapi.json
