International Hreflang Audit Crawler avatar

International Hreflang Audit Crawler

Pricing

$1.20 / 1,000 audited pages

Go to Apify Store
International Hreflang Audit Crawler

International Hreflang Audit Crawler

Audit international hreflang across all three sources: HTML link tags, HTTP Link headers and XML sitemaps. Checks return links, self-references, locale codes, canonicals, noindex conflicts, redirects and broken targets. Findings are errors, warnings, recommendations or explicitly unverified.

Pricing

$1.20 / 1,000 audited pages

Rating

0.0

(0)

Developer

Khoa Nguyen

Khoa Nguyen

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

International Hreflang Audit Crawler (Actor #198)

Ultimate international hreflang and SEO audit for Apify. Validates hreflang across all three supported sources — HTML <link> tags, HTTP Link headers and XML sitemaps — and verifies reciprocal return links, self-references, locale codes, canonical and noindex conflicts, redirects and broken targets.

Why this Actor

Google documents HTML, HTTP-header and sitemap hreflang as equivalent alternatives. Most hreflang checkers read HTML only, so a site that declares hreflang correctly in its sitemap is reported as broken. Others treat a missing x-default as a critical error, though Google documents it as recommended. This Actor is built to avoid both classes of false positive.

Every finding is classified as one of:

ClassMeaning
CONFIRMED_ERRORFactually wrong per documented Google guidance, observed on real fetched bytes
WARNINGDocumented failure mode, but not unambiguously an error
RECOMMENDATIONGoogle calls it recommended or a convention
UNVERIFIEDThe check could not be completed — no conclusion is claimed
SKIPPED_BUDGETNot attempted because a declared budget was exhausted

A missing return link is only reported when the target page was actually fetched and verified in the same run.

Modes

ModeUse
QUICK_CHECKValidate the URLs you supply
CLUSTER_AUDITCross-page language/region relationships and cluster consistency
SITEWIDE_AUDITSitemap discovery (incl. sitemap indexes and .gz) plus bounded crawling
MIGRATION_QAValidate hreflang across migrations, redirects and domain changes
DIFF_MONITORCompare against a previous snapshot: new / resolved / persistent / unverified

Output

  • Dataset — one row per audited page: declared annotations with source and locator, source coverage, verification coverage, findings with rule id + evidence + fix, and a grade.
  • OUTPUT — counts, findings by rule and class, budget usage, coverage diagnostics, cluster totals and explicit assumptions.
  • CLUSTER_GRAPH — the hreflang graph, nodes and edges with provenance.
  • REMEDIATION_REPORT — findings grouped by rule as CSV, so one change can fix many pages.

Output is usable as-is: no second Actor is required for sitemap reading or CSV.

Safety and cost control

Every fetch is reserved against the budget before it is dispatched, so a run can never over-fetch. Limits cover pages, unique fetches (global and per host), alternates per page, sitemaps, sitemap URLs, redirects, response bytes, wall clock, concurrency and retries. Budget exhaustion is reported as SKIPPED_BUDGET — never as a silent page loss.

Security controls applied to every request, including redirect hops, alternates and sitemaps: http/https only, no URL credentials, DNS resolution of all A/AAAA records with private/loopback/link-local/reserved/metadata ranges rejected for IPv4 and IPv6, the validated IP pinned to the connection to prevent DNS rebinding, per-hop redirect revalidation, TLS verification never disabled, a response-size cap enforced on the decompressed stream, and XML parsed with DTD/entity processing disabled.

Notes

hreflang is a hint to Google, not a directive. Findings describe the state of your annotations; they do not guarantee ranking, indexing or regional search selection.

Local development and tests

The audit engine has zero runtime dependencies (Node built-ins only) and is fully testable offline:

node --test # 194 tests: unit, integration, adversarial, security, stress, RED/GREEN
CRAWLEE_STORAGE_DIR=./storage node src/main.js

apify is a dependency of the Actor entry point only.

Repair verification: the R3 frozen candidate records 194 tests, 194 pass, 0 fail (evidence/r3/); the earlier R2 tape evidence/r2/final-suite.tap records the historic 176-test round-two point. The adjudicated H1a acceptance and true-script controls run in the full suite and standalone via node tools/_acceptance_security_h1a.mjs; see ASTRA_TO_KAY_REVIEW_HANDOFF.md. No cloud or real SDK release gate is claimed.