Hreflang & Canonical Validator avatar

Hreflang & Canonical Validator

Pricing

$3.00 / 1,000 completed unique page audits

Go to Apify Store
Hreflang & Canonical Validator

Hreflang & Canonical Validator

Audit multilingual URL relationships with HTTP evidence and explicit coverage.

Pricing

$3.00 / 1,000 completed unique page audits

Rating

0.0

(0)

Developer

AFK Digital

AFK Digital

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Audit a multilingual release from the HTTP responses that a client can actually retrieve. Each dataset item represents one unique, successfully inspected final URL. The top-level finding is the most severe observation. Expand findings for every relationship and declarations for source, original href, resolved URL and language. Target status is the numeric HTTP response when available. Run coverage, including failed seed requests and unattempted seeds, is available in the OUTPUT key-value record.

Run an audit

Supply urls or a public pagesFile containing UTF-8 URLs on separate lines or a JSON string array (2 MB maximum). Both omitted runs a two-page Google Search Central example. For cross-domain locales, list every permitted hostname in allowedDomains. Hostnames match exactly. Defaults are the seed hosts. Enable followAlternateLinks for discovery. Additional completed pages incur exactly the same page event as seeds. Seed URLs are checked first. maxPages limits seed plus discovered URL attempts together (default 5, maximum 500). Each attempt allows five redirect hops. maxAlternatesPerPage limits discovery per page (default 20). HTTP deadline defaults to 12 seconds per page. Increase the platform run timeout for large jobs.

Billing

Pricing is USD 0.003 per completed unique page (USD 3 per 1,000). The Store event is one apify-default-dataset-item per distinct completed final page, including pages discovered by following alternates. Rows with multiple findings, retries, redirects and repeated aliases create no additional events for that final URL in the same run. Failed requests are recorded in OUTPUT and have no page event. Set the Apify run spending limit in addition to maxPages. The Actor floors the monetary limit to a whole number of pages when PPE pricing is active. A separately started run is a new audit.

Interpretation and boundaries

The parser reads HTML head link elements and HTTP Link response fields. HTML relative references resolve against the document's first base href or final URL. HTTP Link targets resolve against the final response URL. Relative alternate declarations are flagged because Google requests absolute URLs. The Google-oriented locale profile accepts assigned ISO 639-1 languages, optional ISO 15924 scripts and optional ISO 3166-1 alpha-2 regions. Numeric region subtags such as es-419 receive a profile warning. x-default is a fallback. Different country domains are valid. The audit identifies conflicting same-language targets, multiple canonical declarations, missing self-reference, observed return links, redirects, retrieval failures and targets declaring a different preferred URL. Return-link status describes observed URL linkage. A complete target inspection is required to report a missing return. Inspect the associated language evidence separately.

Only successful complete responses are audited. HTML parsing targets text/html, including error-tolerant HTML5 head parsing. Other media expose HTTP headers only. Anchored HTTP Link entries are omitted. No browser, authenticated session, cookies or proxy are used. JavaScript-injected tags may be invisible. Sitemap hreflang is outside v1 coverage and a non-empty optionalSitemapFiles input is rejected. Bodies over 2 MB, unsupported content encodings and excessive declaration sets are skipped. Private, reserved and local destinations are checked on every request, including redirects and file downloads. Connections use a validated IP with the original host for TLS verification.

A canonical is the publisher's declared preference. This audit cannot establish which canonical a search engine selected or predict SEO performance.

Integrations

See examples/n8n.md and examples/make.md for a two-page request, cost caps and mapping nested findings.

References