Push the boundaries of what DataForSEO can do
Learn about the latest updates

Subscribe To Our Newsletter

Back

Hreflang in On-Page API Links Endpoint

November,5 2025 16:09:29

Improvement
On-Page API
Hreflang in On-Page API Links Endpoint

We’ve enriched the Links endpoint in our On-Page API with deeper insights into multilingual and international SEO setups.

What’s new

This update introduces two new fields — is_valid_hreflang and hreflang — designed to help you audit and validate hreflang configurations directly from your link data.

How it works

When you use the Links endpoint, each link object with "type": "alternate" in the response now automatically includes:

is_valid_hreflang indicates whether the hreflang attribute is correctly implemented.
hreflang displays the actual value found in the link tag (language and optional country code). For example: "en-US", "fr", "de-DE".

Why it matters

This features allows you to:

Automatically audit hreflang attributes across your site.
Identify invalid or misconfigured tags that may impact international SEO.
Ensure that search engines correctly understand your multilingual content targeting.

Get started

Check out the updated On-Page API Links docs to explore this new feature and start validating your hreflang configurations.

Embed DataForSeo widget on your website


Embed code:
Preview: