# SEO Site Checkup — Technical Website Audit (`muhammadafzal/seo-site-checkup`) Actor

Audit public website pages for on-page SEO, technical signals, structured data, social metadata, security headers, and prioritized issues.

- **URL**: https://apify.com/muhammadafzal/seo-site-checkup.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** SEO tools, AI, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 seo page auditeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SEO Site Checkup — Technical Website Audit

Run a bounded technical SEO audit on a public website URL and receive one structured record per audited page. The actor reports an explainable 0–100 heuristic score, page metadata, crawlability signals, structured data, social tags, security headers, and prioritized recommendations for SEO agencies, site owners, developers, and AI agents.

This is a static HTML audit. It does not log in, bypass access controls, execute JavaScript, or claim to reproduce Google rankings.

### What it checks

| Area | Output |
| --- | --- |
| Page metadata | HTML title, title length, meta description, canonical URL, robots meta |
| Content structure | H1/H2/H3 counts, first H1 text, approximate visible word count |
| Crawlability | HTTP status, final URL, HTTPS, robots.txt, sitemap availability, internal/external links |
| Media | Image count and images missing a non-empty alt attribute |
| Search enhancements | JSON-LD schema.org types and indexable signal |
| Social previews | Open Graph and Twitter/X card presence |
| Response hardening | HSTS, CSP, X-Content-Type-Options, and Referrer-Policy headers |
| Recommendations | Critical, warning, and informational issues with a concrete fix |

### When to use it

Use this actor when you need a quick, repeatable technical baseline for one URL or a small same-host sample. Set `crawlLinks` to true to follow internal links until `maxPages`, or false for a single-page check. For JavaScript-heavy sites, run a browser-based crawler first and pass its rendered URLs to a suitable audit workflow; this actor intentionally measures the HTML returned to a normal HTTP crawler.

Do not use it for private pages, authenticated staging environments, full enterprise-scale crawling, Core Web Vitals, backlink discovery, keyword-volume research, or a guarantee of search-engine indexation. `seoScore` is a heuristic prioritization score, not a ranking score.

### Input

Minimal input:

```json
{
  "targetUrl": "https://example.com/"
}
```

Bounded site sample:

```json
{
  "targetUrl": "https://example.com/",
  "maxPages": 25,
  "crawlLinks": true,
  "includeRobotsTxt": true,
  "requestDelayMs": 750,
  "responseFormat": "detailed"
}
```

`targetUrl` accepts a full public `http` or `https` URL. `maxPages` defaults to 5 and is capped at 100. Each stored page audit is one billable `page-audited` event. `requestDelayMs` defaults to 500 milliseconds and exists for respectful pacing, not anti-bot bypass. `responseFormat: "concise"` keeps the first eight issues per page for smaller agent responses; it does not change the checks or score.

### Output

The default dataset contains one stable-shape record per successfully fetched page. Missing values are explicit `null`s, which lets agents distinguish “not present” from a field omitted by the actor.

```json
{
  "sourceUrl": "https://example.com/",
  "statusCode": 200,
  "title": "Example Domain",
  "metaDescription": null,
  "h1Count": 1,
  "imagesMissingAlt": 0,
  "structuredDataTypes": [],
  "seoScore": 78,
  "issues": [
    {
      "key": "missing-meta-description",
      "severity": "critical",
      "message": "The page has no meta description.",
      "recommendation": "Add a unique 120–160 character description that explains the page value."
    }
  ],
  "warnings": [],
  "scrapedAt": "2026-08-02T12:00:00.000Z"
}
```

The `OUTPUT` and `SUMMARY` key-value records contain page counts, failed requests, robots/sitemap diagnostics, warnings, and estimated page-event charges. A successful empty crawl is reported with diagnostics; a target that fails all requests after retries is marked failed so temporary outages are not mistaken for a healthy site.

### Pricing

| Event | Price |
| --- | ---: |
| Actor start | $0.00005 |
| `page-audited` | $0.025 per stored page |

The actor is configured for predictable PPE with platform usage paid by the user, so compute and proxy usage can be passed through for larger runs. PPE is declared in `.actor/pay_per_event.json`. A five-page default run is capped at approximately $0.125 in page events, excluding the start event and normal Apify usage charges.

### Reliability and responsible use

The actor uses a single low-concurrency CheerioCrawler, retries failed requests, caps page discovery, and does not send credentials. Discovered same-host links are filtered through a conservative `robots.txt` check when enabled. Site owners remain responsible for permission, terms of service, applicable law, and appropriate request pacing. Results should be reviewed against the source before making material SEO or security changes.

### API and MCP

Through the Apify API, call the actor with `targetUrl`, `maxPages`, and the other input fields, then read the default dataset. Through Apify’s hosted MCP integration, use this tool for technical SEO checks on a public URL; it returns one page record at a time with `seoScore`, `issues[]`, metadata, link counts, structured-data types, and security-header booleans. Do not choose it when you need rendered browser content, private-page access, backlink data, or a full crawl beyond the configured cap.

#### JavaScript

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('YOUR_USERNAME/seo-site-checkup').call({
  targetUrl: 'https://example.com/',
  maxPages: 5,
  crawlLinks: true
});
console.log(run.defaultDatasetId);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token="YOUR_APIFY_TOKEN")
run = client.actor("YOUR_USERNAME/seo-site-checkup").call(run_input={
    "targetUrl": "https://example.com/",
    "maxPages": 5,
    "crawlLinks": True,
})
print(run["defaultDatasetId"])
```

This independent actor is not affiliated with any audited website or search engine.

# Actor input Schema

## `targetUrl` (type: `string`):

Use this when auditing a public website page for technical SEO signals. Enter a full http or https URL, for example 'https://example.com/'. Defaults to https://example.com. This is not an Apify Actor URL or sitemap-only input.

## `maxPages` (type: `integer`):

Use this to cap the number of page audits in one run. Enter 1–100; defaults to 5. Each audited page is one billable page event. This is not a crawl depth value.

## `crawlLinks` (type: `boolean`):

Use this to follow same-host links discovered on audited pages. Defaults to true and stops at maxPages. Set false for only the supplied page; this does not crawl external domains.

## `includeRobotsTxt` (type: `boolean`):

Use this to check the site's robots.txt and a referenced or root sitemap before link discovery. Defaults to true. Disable it only when you want page checks without crawler-directive diagnostics.

## `requestDelayMs` (type: `integer`):

Use this to add respectful pacing between page requests. Enter 250–5000 milliseconds; defaults to 500. This is not a browser wait or a target-site bypass setting.

## `responseFormat` (type: `string`):

Use this to choose the amount of issue detail returned per page. Select detailed for full recommendations or concise for a smaller agent response; defaults to detailed. This does not change the audit checks or score.

## Actor input object example

```json
{
  "targetUrl": "https://example.com",
  "maxPages": 5,
  "crawlLinks": true,
  "includeRobotsTxt": true,
  "requestDelayMs": 500,
  "responseFormat": "detailed"
}
```

# Actor output Schema

## `dataset` (type: `string`):

Page-level records with SEO scores, technical signals, and prioritized issues.

## `datasetCsv` (type: `string`):

The page-level SEO audit records as CSV.

## `summary` (type: `string`):

Counts, crawl settings, robots and sitemap diagnostics, warnings, and estimated page-event charges.

## `consoleRun` (type: `string`):

Live run status, logs, and dataset preview.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/seo-site-checkup").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/seo-site-checkup").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 '{}' |
apify call muhammadafzal/seo-site-checkup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/seo-site-checkup"
        }
    }
}

```

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/ZaHlbr04YZ1BDsHbX/builds/ajDaWXfug3Rd3YHiF/openapi.json
