# Bulk SEO Audit API: Schema, hreflang, Redirects \[USD 2/1K URLs] (`usefulapi/seo-url-audit`) Actor

Bulk SEO audit API for a list of URLs, one row each: status and redirect chain, indexability, canonical, title and description pixel widths, hreflang codes and return links, and schema markup (JSON-LD, microdata, RDFa) checked for Google rich results. USD 2 per 1,000 URLs.

- **URL**: https://apify.com/usefulapi/seo-url-audit.md
- **Developed by:** [Useful API](https://apify.com/usefulapi) (community)
- **Categories:** SEO tools, Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 url auditeds

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

## Bulk SEO Audit API: Schema Markup, hreflang, Redirect and Canonical Checker

Paste a list of URLs and get one SEO audit row per URL: **HTTP status and the full redirect chain, indexability for Googlebot, canonical, title and meta description with pixel widths, H1, hreflang with return-link checks, Open Graph and Twitter tags, and structured data validated against schema.org and Google's rich-result requirements**, plus an issue list sorted by severity. USD 2 per 1,000 URLs audited, from the Apify Console or by API.

It works as a **bulk URL checker**, a **redirect chain checker**, a **canonical checker**, a **hreflang checker** and a **schema markup validator** (structured data validator) in one run, so you do not have to join the output of five tools. No crawling: it audits exactly the URLs you give it, so you can check a sitemap export, a migration list or a client's top pages and pay only for those URLs.

### What the SEO audit checks on each URL

| Check | What you get |
|---|---|
| **Status and redirects** | The final HTTP status, every redirect hop (URL, status code, target, response time), the final URL, redirect chains, loops, temporary (302, 303, 307) redirects and HTTPS-to-HTTP hops. |
| **Indexability** | `indexable` true or false (empty when a bot wall answered instead of the page), with the reasons: the robots.txt rule that decides for Googlebot (for example `Disallow: /private/`), `noindex` in the robots or googlebot meta tag, `noindex` in the `X-Robots-Tag` header, canonical pointing elsewhere, error status, redirect. |
| **Canonical** | `self`, `other`, `missing` or `conflict` (two different canonicals, for example HTML vs HTTP header), relative canonicals, canonical links Google ignores because they sit outside the `<head>`, and the canonical target's own status when it is in your list. |
| **Title and meta description** | Text, character length and estimated **pixel width** (Arial 20 px for titles, 14 px for descriptions), with flags over 561 px and 985 px, Screaming Frog's default limits. Missing or empty tags, and pages with more than one title or meta description. |
| **Headings** | H1 count and the first H1. |
| **hreflang** | Every hreflang link (from HTML and the HTTP `Link` header), each value checked against ISO 639-1 and ISO 3166-1 (catches `en-UK`, `en_GB`, `jp`, `es-419`, `en-EU`), self link, `x-default`, duplicate values, relative URLs, links outside the `<head>`. **Return links**: when the other language versions are in your list, each pair is checked both ways (A names B, does B name A back?), with the value each side uses. |
| **Structured data** | JSON-LD, microdata and RDFa items with their types; each item checked against the **schema.org vocabulary** (unknown types and properties, wrong case, properties used on the wrong type) and against **Google rich-result rules**: required and recommended properties for 37 rich-result features (Product, Merchant listing, Article, Breadcrumb, Event, Recipe, Job posting, Local business, Organization, Video, Software app, Review snippet and more), plus a note when the markup is for a rich result Google has retired (FAQ, How-to, Sitelinks search box and others). Invalid JSON-LD blocks are reported with the parser message. |
| **Social tags** | All `og:` and `twitter:` tags, missing core Open Graph tags (title, type, image, url), relative `og:image`. |
| **Mobile** | Viewport tag (missing, fixed width, no `width=device-width`), zoom blocked (`user-scalable=no`, `maximum-scale` under 2), scripts in the `<head>` that load without `async` or `defer`. Optional: fetch every URL again with the other user agent and flag URLs that end on a different page for desktop and mobile visitors. |
| **Issues** | Each problem as `{ severity, code, message }` with severity `error`, `warning` or `notice`, plus counts per row. |

The last row of the dataset is a **run summary**: URLs by result, indexable and not, average response time, the slowest URLs, hreflang return links checked and missing, and how many URLs have each issue.

### One run instead of five tools

The Apify Store has single-purpose tools for each of these checks: status and redirect checkers, schema validators, hreflang checkers and metadata extractors. This Actor runs all of them in one pass over your list and writes one row per URL, so a migration list or a set of language versions needs one run and one export. hreflang return links and canonical targets are checked across the URLs of the same run, and rich-result checks cover microdata and RDFa as well as JSON-LD. It runs without a browser, which keeps the price low; the flip side is that content added by JavaScript after the page loads is not seen (see Limits).

### Input

| Field | What it does |
|---|---|
| `urls` | The URLs to audit, one per line (up to 100,000). Put every language version of a page in the list to get the hreflang return-link check. |
| `userAgent` | `desktop` (default) or `mobile` Chrome. |
| `compareUserAgents` | Off by default. Also fetches each URL with the other user agent (redirects and status only) to find device-specific redirects. |
| `maxUrls` | Stop after this many URLs. |

```json
{
  "urls": [
    "https://www.example.com/",
    "https://www.example.com/fr/",
    "https://www.example.com/de/",
    "http://example.com/old-page"
  ],
  "userAgent": "mobile"
}
```

### Common jobs

#### Redirect checker for a site migration

Paste the old URLs and read `redirectChain`, `finalUrl` and `statusCode`: every hop with its status code and target, redirect chains, loops, temporary redirects that should be 301 or 308, and 404s where a redirect is missing.

#### hreflang checker with return links

Paste every language version of your key pages, then filter rows where `hreflang.returnLinksMissing` is above 0. Values Google does not accept, such as `en-UK` or `en_GB`, show in the `hreflang_invalid_code` issue.

#### Schema markup validator in bulk

Paste your product or article URLs and read `structuredData.richResults` and the `rich_result_missing_required` issue. JSON-LD, microdata and RDFa are checked the same way.

#### Canonical and indexability check before launch

Paste your sitemap URLs and filter `indexable: false` to see each reason (noindex, robots.txt, canonical to another URL, error status, redirect). `canonical.status` is `self`, `other`, `missing` or `conflict`.

#### Bulk URL status checker

The Overview view gives status, final URL, redirect count and response time for every URL.

### Output

One row per URL (JSON, CSV, Excel or the API). Main fields:

```json
{
  "position": 2,
  "url": "https://www.example.com/fr/",
  "result": "ok",
  "statusCode": 200,
  "finalUrl": "https://www.example.com/fr/",
  "redirectCount": 0,
  "redirectChain": [{ "url": "https://www.example.com/fr/", "status": 200, "ms": 312 }],
  "responseTimeMs": 312,
  "indexable": true,
  "indexabilityReasons": [],
  "robots": { "googlebotAllowed": true, "googlebotRule": null, "metaRobots": null, "xRobotsTag": null },
  "canonical": { "status": "self", "url": "https://www.example.com/fr/" },
  "title": "Exemple | Accueil",
  "titleLength": 17,
  "titlePixels": 158,
  "metaDescription": "…",
  "descriptionPixels": 640,
  "h1Count": 1,
  "hreflang": {
    "count": 3, "hasSelf": true, "hasXDefault": true, "returnLinksChecked": 1, "returnLinksMissing": 1,
    "links": [{ "hreflang": "de", "url": "https://www.example.com/de/", "problem": null, "returnLink": "no", "targetStatus": 200 }]
  },
  "structuredData": {
    "count": 2, "formats": ["JSON-LD"], "types": ["Organization", "BreadcrumbList"],
    "richResults": ["Organization (incl. logo)", "Breadcrumb"],
    "items": [{ "format": "JSON-LD", "types": ["BreadcrumbList"], "richResults": [{ "feature": "Breadcrumb", "eligible": true, "missingRequired": [] }], "issues": [] }]
  },
  "openGraph": { "title": "…", "type": "website", "image": "https://…", "url": "https://…" },
  "mobile": { "widthDeviceWidth": true, "zoomBlocked": false, "renderBlockingScripts": 0 },
  "issues": [{ "severity": "error", "code": "hreflang_no_return_link", "message": "1 hreflang target does not link back to this page…" }],
  "errorCount": 1, "warningCount": 0, "noticeCount": 2
}
```

`result` is `ok` (HTML page read and audited), `http_error`, `non_html`, `redirect_loop`, `too_many_redirects`, `blocked` (a bot check or block page answered), `robots_blocked`, `timeout`, `unreachable`, `dns_not_found`, `invalid_input` or `parse_error`. A bad URL never fails the run: it becomes a row with its result and the reason. The last row has `result: "summary"`.

### Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| Run start | USD 0.005 per run |
| **URL audited** (an HTML page answering 2xx, read and audited in full) | **USD 2 per 1,000 URLs** |
| URL checked (error status, redirect loop, file, bot wall, robots.txt does not allow it, no answer) | USD 0.50 per 1,000 URLs |
| Desktop and mobile compared (optional; only URLs where the second fetch ran) | USD 0.30 per 1,000 URLs |

Example: 10,000 URLs that all answer with an HTML page cost USD 20.005 (USD 20 plus the USD 0.005 start), or USD 23.005 with the desktop and mobile comparison on.

Set a maximum cost per run in Apify and the run stops cleanly before it, keeping every row already saved.

### Polite by design

- It reads each site's **robots.txt and obeys it** for its own requests (the rules for all crawlers, the `User-agent: *` group). A URL that robots.txt does not allow is reported as `robots_blocked` and not requested. If robots.txt cannot be read because the server errors, nothing on that site is fetched, as the robots.txt standard (RFC 9309) asks.
- At most 2 requests at a time per site and at least half a second between requests (a `Crawl-delay` in robots.txt is kept, up to 10 seconds; above 1 second, requests to that site go one at a time).
- Datacenter servers only, no proxies, no attempts to get past bot walls: a site that answers with a challenge page is reported as `blocked`.
- One page request per URL (plus each redirect hop, robots.txt once per site, and one retry when a connection is reset or times out). Page HTML over 3 MB is read up to 3 MB and flagged.

### Limits

- **No JavaScript rendering.** The audit reads the HTML the server sends, before any JavaScript runs. Titles, canonicals or structured data added later by JavaScript are not seen. Font sizes and tap-target spacing need a rendered page and are not judged.
- **hreflang return links** are checked only between URLs in your list (and their redirect targets). A target outside the list is marked `not in input`, never guessed. A row waits for its targets while fewer than 2,000 rows are waiting; past that, the oldest row is saved with `not checked`.
- Up to 300 hreflang links and 50 structured data items are kept per row.
- **Pixel widths** are estimates: the width of each character in Arial was measured in Chrome and the widths are added up. They are not compared with Google's results page, and characters outside Latin, Greek and Cyrillic use an average width. Google publishes no cut-off; 561 px and 985 px are Screaming Frog's defaults.
- **Rich-result rules** come from Google Search Central guides as read on 24 Oct 2026. Google's Rich Results Test remains the reference for eligibility.
- Response times are measured from Apify's servers, not from your visitors' locations.

### Data sources and credits

- schema.org vocabulary (CC BY-SA 3.0), from schemaorg-current-https.jsonld.
- ISO 3166-1 country codes and ISO 639-1 language codes from the open datasets at github.com/datasets.
- Rich-result requirements summarised from Google Search Central documentation.

### FAQ

**Does it crawl my whole site?** No. It audits the URLs you give it. Export your sitemap or a crawl list and paste it.

**Can I check pages blocked by robots.txt?** The Actor obeys robots.txt for its own requests, so those URLs are reported as `robots_blocked` with the rule, and the Googlebot verdict is still given.

**Is my data stored?** Results go to your own Apify storage: the dataset (one row per URL plus the summary row) and the run's key-value store (the summary as OUTPUT). The Actor keeps no copy and reads nothing from earlier runs.

**Can I use it as an SEO audit API?** Yes. POST the input JSON to `https://api.apify.com/v2/acts/usefulapi~seo-url-audit/run-sync-get-dataset-items?token=YOUR_TOKEN` and the rows come back in the response. That endpoint waits up to 300 seconds, so start a normal run for long lists. The last item is the summary row.

**Is it the same as Google's Rich Results Test?** No. It checks the markup in the HTML against the required and recommended properties in Google's Search Central guides (as read on 24 Oct 2026), for many URLs at once. It does not run JavaScript, and Google's Rich Results Test remains the reference for eligibility.

**How do I find redirect chains in bulk?** Paste the URLs. Rows with the `redirect_chain` issue have more than one hop, and `redirectChain` lists each hop with its status code and target.

**Does it read hreflang from XML sitemaps?** No. It reads hreflang from the HTML `<head>` and the HTTP `Link` header.

**Why is a URL `blocked`?** The site answered with a bot check (for example a Cloudflare challenge) instead of the page. The Actor does not try to get past it, and the row is billed as checked (USD 0.50 per 1,000).

# Actor input Schema

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

One URL per line (up to 100,000). Each URL is fetched once and audited: status, redirect chain, indexability, canonical, title and description, H1, hreflang, Open Graph, Twitter tags and structured data. Put every language version of a page in the list to get the hreflang return-link check. This tool does not crawl: it audits the URLs you give it.

## `userAgent` (type: `string`):

Fetch pages as a desktop or a mobile Chrome browser. Google indexes the mobile version of most sites.

## `maxUrls` (type: `integer`):

Stop after this many URLs (the first ones in the list). Leave empty for all.

## `compareUserAgents` (type: `boolean`):

Also fetch each URL with the other user agent (redirects and status only, no page read) and flag URLs that end on a different page for desktop and mobile visitors. Billed as one extra small event per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.apple.com/fr/",
    "https://www.apple.com/de/",
    "http://apple.com/"
  ],
  "userAgent": "desktop",
  "compareUserAgents": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `issues` (type: `string`):

No description

## `indexability` (type: `string`):

No description

## `hreflang` (type: `string`):

No description

## `structured` (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://www.apple.com/fr/",
        "https://www.apple.com/de/",
        "http://apple.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("usefulapi/seo-url-audit").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://www.apple.com/fr/",
        "https://www.apple.com/de/",
        "http://apple.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("usefulapi/seo-url-audit").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://www.apple.com/fr/",
    "https://www.apple.com/de/",
    "http://apple.com/"
  ]
}' |
apify call usefulapi/seo-url-audit --silent --output-dataset

```

## MCP server setup

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

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/eDV6OkdokqLAakOJE/builds/2TBwe3eOHxb8YqYG4/openapi.json
