Hreflang Tag Validator - Audit rel=alternate hreflang for SEO
Pricing
$4.99/month + usage
Hreflang Tag Validator - Audit rel=alternate hreflang for SEO
Validate hreflang implementation (<link rel="alternate" hreflang=...>) to prevent international SEO issues. Detects missing/duplicate hreflangs, invalid language-region codes, missing self reference, and optional reciprocal hreflang checks.
Pricing
$4.99/month + usage
Rating
0.0
(0)
Developer

Bikram Adhikari
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
18 days ago
Last modified
Categories
Share
Audit hreflang tags on any page or across a site to prevent international SEO issues.
This Actor fetches each page and checks:
- Missing
hreflangtags (<link rel="alternate" hreflang="...">) - Duplicate hreflang values
- Invalid language / region formats (common Google-supported patterns)
- Missing
x-default - Missing self-reference hreflang (recommended)
- Optional reciprocal checks (target pages link back)
Input
- Start URLs (
startUrls) – Pages to check. - Max pages (
maxPages) – Crawl limit. - Follow internal links (
followLinks) – Turn on for site-wide audits. - Max depth (
maxDepth) – Depth when following links. - Stay on same domain (
sameDomainOnly) – Avoid leaving the site. - Request timeout (
timeoutSecs) – Per-page processing timeout. - Normalize trailing slash (
normalizeTrailingSlash) – Treat/pageand/page/as the same for comparisons. - Allow cross-domain hreflang (
allowCrossDomainHreflang) – If disabled, cross-domain hreflangs are flagged. - Warn if x-default is missing (
warnIfNoXDefault) – Adds a warning if nox-defaultlink exists. - Check reciprocal hreflang links (
checkBidirectional) – Optionally fetch target pages and verify they link back. - Max reciprocal checks per page (
maxTargetChecksPerPage) – Safety limit for reciprocal checks. - Proxy (
proxyConfiguration) – Optional Apify Proxy.
Output
Dataset (per page)
Each dataset item includes:
url,loadedUrl,statusCode,titlehreflangCount,xDefaultPresent,selfReferencePresenthreflangTags[](detailed extracted tags)warnings[],errors[]
Key-value store
SUMMARY– run totalsREPORT– compact per-page report
Example API usage
{"startUrls": [{"url": "https://example.com"}],"maxPages": 10,"followLinks": false,"checkBidirectional": false}
Quick start
Store page: https://apify.com/scrappy_garden/hreflang-tag-validator
Paste this into Input and click Run:
{"startUrls": [{"url": "https://example.com/"}],"proxyConfiguration": {"useApifyProxy": false}}
Outputs (what you get)
- Dataset: Dataset items typically include fields like:
url,loadedUrl,statusCode,title,hreflangCount,xDefaultPresent,selfReferencePresent,redirected,warnings,errors. - Key-value store:
REPORT,SUMMARY
Tips (trust + predictable results)
- Start with 1–3 URLs to validate behavior, then scale up.
- If a target blocks requests, enable Proxy and/or slow down concurrency in Input.
- Use the
SUMMARY/REPORTkeys (when present) for automation pipelines and monitoring.
Related actors
- broken-link-checker (https://apify.com/scrappy_garden/broken-link-checker)
- canonical-url-checker (https://apify.com/scrappy_garden/canonical-url-checker)
- meta-tag-analyzer (https://apify.com/scrappy_garden/meta-tag-analyzer)
- security-headers-checker (https://apify.com/scrappy_garden/security-headers-checker)
Search keywords
hreflang tag validator, hreflang tag validator - audit rel=alternate hreflang for seo, website audit, seo, hreflang