hreflang checker
ayrank_hreflang_checkCheck a page's hreflang tags and HTTP Link headers against Google's rules, validating language codes, self-reference, x-default, absolute URLs, and reciprocal links from alternates.
Instructions
Use to check one page's hreflang set (link tags in the head and the HTTP Link header) against Google's rules: valid codes, self-reference, x-default, absolute URLs, then whether up to 10 alternates answer, link back and self-canonicalize. Sitemap hreflang is not read. Free AY Rank API, no key. JavaScript is not run, so content added by scripts is not seen.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "ayrank_hreflang_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to check, like https://example.com/page. |