Skip to main content

Internationalization Check API

developer
GET/v1/domain/i18n

Checks internationalization setup including hreflang tags, language attributes, charset declaration, and RTL (right-to-left) support for multi-language websites.

What It Does

Analyzes the page for i18n configuration: hreflang tag presence, count, and proper x-default usage; HTML lang attribute validity against BCP 47; Content-Language header consistency; charset declaration (UTF-8 verification); and RTL support via dir attributes and CSS rules. Detects language switcher UI elements (informational, not scored). Returns a score with specific recommendations and a confidence indicator reflecting result reliability.

Why It's Useful

Incorrect hreflang tags cause search engines to show the wrong language version to users, losing international traffic. Missing or invalid lang attributes affect screen readers and translation tools. Proper i18n is essential for global reach.

Use Cases

International SEO

International SEO Audit

Verify hreflang tags correctly map language/region variants to prevent ranking cannibalization.

Ensure the right language page ranks in each country's search results.

Localization Manager

Localization QA

Validate that translated pages have proper lang attributes and hreflang cross-references.

Confirm technical setup matches localization strategy.

Web Developer

Accessibility Validation

Check that the lang attribute is set correctly for screen readers and browser translation.

Improve accessibility for users relying on language detection.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe checked domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
hreflangobjectHreflang tags: count, languages, x-default, issues
languageobjectHTML lang attribute, validity, Content-Language header
charsetobjectCharset declaration and UTF-8 verification
rtlSupportobjectRTL detection, dir attribute, CSS RTL support
languageSwitcherobjectLanguage switcher UI detection (informational)
scorenumberInternationalization score 0-100
gradestringLetter grade A-F
gradeDescriptionstringHuman-readable grade description (e.g., "Good - adequate with room for improvement")
recommendationsarraySpecific i18n fixes to implement
confidenceobjectResult confidence indicator: level (high/medium/low) and limitations list

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/i18n?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/i18n?domain=https%3A%2F%2Fexample.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/i18n?domain=https%3A%2F%2Fexample.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Internationalization Check guide

Learn the concepts, choose a practical workflow, and interpret the observations from Internationalization Check before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Internationalization Check endpoint live in the playground.

    Internationalization Check API Reference | EdgeDNS