Internationalization Check API
developer/v1/domain/i18nChecks 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 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 QA
Validate that translated pages have proper lang attributes and hreflang cross-references.
Confirm technical setup matches localization strategy.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain 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.
| Field | Type | Description |
|---|---|---|
domain | string | The checked domain (bare hostname). |
url | string | Full URL that was fetched, echoing the protocol used in the request. |
hreflang | object | Hreflang tags: count, languages, x-default, issues |
language | object | HTML lang attribute, validity, Content-Language header |
charset | object | Charset declaration and UTF-8 verification |
rtlSupport | object | RTL detection, dir attribute, CSS RTL support |
languageSwitcher | object | Language switcher UI detection (informational) |
score | number | Internationalization score 0-100 |
grade | string | Letter grade A-F |
gradeDescription | string | Human-readable grade description (e.g., "Good - adequate with room for improvement") |
recommendations | array | Specific i18n fixes to implement |
confidence | object | Result 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 --request GET 'https://api.edgedns.dev/v1/domain/i18n?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"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);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.