Check live service health and documented failure responses before you integrate.
Web Data
Hreflang validation API
Validate the hreflang annotations of a page from HTML and HTTP headers, then fetch up to 20 alternate pages to confirm that each one links back. Catch invalid codes, missing x-default, missing self references and broken return links.
Used by people at these companies
Trust signals before you integrate
Transparent docs, authenticated requests, and visible reliability details make it easier to evaluate DomScan before you ship.
OpenAPI, Swagger, Postman, CLI, SDK, and MCP links are one click away.
Authenticated endpoints use API keys with clear credit costs before you call them.
Start with 10,000 monthly credits and upgrade only when usage grows.
What this API helps you ship
Use this page as a production brief: endpoints, examples, response shape, and the workflow pieces needed to plug DomScan into your own product.
Embed domain checks, DNS intelligence, risk signals, or enrichment into onboarding, search, and internal tools.
Replace repeated manual lookups with scheduled jobs, alerting, and reproducible investigation steps.
Use predictable fields, documented status codes, and credit costs instead of scraping provider pages.
Feed agents, dashboards, SOAR playbooks, and CRMs through OpenAPI, SDK, Postman, or MCP.
Integration workflow
A simple path from first request to repeatable production usage.
Send your API key with the documented header and keep requests consistent across services.
Start from the curl and HTTP samples, then map the parameters into your application code.
Use status codes, credit costs, and response fields to build retries, logs, and alerts.
Developer kit
Jump from this page into machine-readable docs, request collections, SDKs, or agent tooling.
Generate clients or inspect every request and response shape.
Postman collectionImport ready-made requests for manual testing and team handoff.
SDKs and CLIUse maintained packages and command-line workflows instead of writing boilerplate.
MCP integrationExpose domain intelligence to AI agents and internal assistant workflows.
Parameters and response map
Scan the inputs, output fields, and status codes before wiring the endpoint into your client.
Parameter
Example response
HTTP status codes
Endpoints
/v1/hreflang
Trust signals before you integrate
Transparent docs, authenticated requests, and visible reliability details make it easier to evaluate DomScan before you ship.
OpenAPI, Swagger, Postman, CLI, SDK, and MCP links are one click away.
Authenticated endpoints use API keys with clear credit costs before you call them.
Start with 10,000 monthly credits and upgrade only when usage grows.
Start from the curl and HTTP samples, then map the parameters into your application code.
Key Features
Language, script and region subtags are checked, including common mistakes such as en-UK instead of en-GB and underscores instead of hyphens.
Alternate pages are fetched to confirm they link back to the page, and redirects, canonicals pointing elsewhere and language mismatches are flagged.
Annotations are read from link tags and from the HTTP Link header, and each entry shows where it was found.
Missing self reference, missing x-default, relative URLs and one code pointing to several URLs are reported for the whole set.
Example request
curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/hreflang?url=example.com/shoes/trail-runner"
Example response
{
"status": "ok",
"entries": [
{ "hreflang": "en", "url": "https://example.com/shoes/trail-runner", "valid_code": true },
{ "hreflang": "es-ES", "url": "https://example.com/es/zapatillas/trail-runner", "valid_code": true },
{ "hreflang": "x-default", "url": "https://example.com/shoes/trail-runner", "valid_code": true }
],
"self_reference": true,
"x_default": true,
"issues": [],
"return_links": { "checked": 1, "confirmed": 1, "missing": 0, "unknown": 0 }
}
Frequently asked questions
At least one alternate page was read and does not link back to the audited page. Hreflang annotations must be reciprocal or search engines may ignore them.
It is reported as unknown with a reason, never as a missing return link, so blocked or slow pages do not create false errors.
This API checks the page HTML and HTTP headers. Use the sitemap audit API to see whether sitemaps carry hreflang extensions.
Three credits per audit, including return link checks of up to 20 alternate pages. Results that end in status unknown are refunded.
Related tools and resources
HTTP status codes
These are the HTTP status codes to handle, so you can tell apart successful responses, auth issues, credits, rate limits, missing data, and upstream failures.
Request successful
Invalid parameters
Missing or invalid API key/session.
Not enough credits to run this request.
Rate limit exceeded
Validate hreflang

