Canonical URL: Understand and Use the Results
Find canonical and hreflang URLs
Canonical URLs: how to tell Google which version of a page is the real one
A canonical URL is the official, preferred version of a webpage when multiple URLs return the same (or very similar) content. The mechanism for declaring it is a small line of HTML in the page's `<head>` called the `rel="canonical"` tag, which says, in plain English, "out of all the URLs that show this content, this one right here is the real one — please credit it." It is a hint, not a command — search engines decide whether to honor it — but it is the strongest signal you can give them about which URL deserves the ranking.
You should care because the same content is almost always reachable through more than one URL, even if you have never thought about it. The same product page might be `example.com/products/blue-widget`, `example.com/products/blue-widget?ref=newsletter`, `example.com/products/blue-widget?utm_source=facebook`, and `example.com/products/blue-widget/`. To you, those are all the same page. To Google, they are four different URLs that happen to share the same content — and unless you tell Google otherwise, the ranking signals (backlinks, click-through rate, time on page) get split four ways instead of all credited to one canonical version.
The five things every canonical-URL audit looks at:
Does each public page have a canonical tag? Pages without one force Google to guess which version is the "real" one.
Does the canonical point at the right URL? A common mistake is canonicalizing every page to the homepage, which tells Google to ignore the entire rest of the site.
Does the canonical URL itself return a 200? Pointing your canonical at a URL that 404s is a quiet disaster.
Are HTTP and HTTPS versions both canonicalizing to the HTTPS version? Without this, you can split your ranking signals between the secure and insecure versions of every page.
**Are tracking parameters (`?utm_`, `?ref=`, `?fbclid=*`) canonicalized to the clean URL?** Otherwise every share on social media creates a phantom duplicate.
For international sites, canonical extends into hreflang reciprocity. If your English page declares a Spanish alternate via `<link rel="alternate" hreflang="es">`, that Spanish page must declare an English alternate pointing back. Google calls this return-link validation, and missing return links are the single most common reason hreflang quietly stops working on global migrations. A deep audit fetches every alternate URL and confirms the round-trip. It also flags duplicate hreflang codes (two `hreflang="en-US"` blocks on the same page) and `x-default` configurations that point at a regional page instead of a true language selector. None of this is visible from a single-page view of your HTML — it only surfaces when you crawl the alternates and compare what each page declares.
Three questions a canonical audit answers:
Am I accidentally splitting ranking signals across multiple versions of the same page?
Are any pages canonicalizing to the wrong URL — for example, every product page pointing at the homepage?
Are my marketing tracking parameters quietly creating duplicate-content problems?
The cost of ignoring canonical tags is the slow dilution of every page's ranking power. Each duplicate URL drains a little bit of authority from the version that actually deserves it. The fix is structural: configure your CMS to emit a canonical tag on every public page, pointing at the clean URL. Once it is in place, you can largely forget about it. The canonical-URL standard is documented in Google's own canonicalization guide, and it has not changed in years.
The Canonical URL endpoint, in plain language
Find canonical and hreflang URLs
Canonical URLs tell search engines which version of a page to index. Incorrect canonicals — duplicates, conflicting signals, wrong placement, or cross-domain misconfigurations — can cause indexing failures and lost rankings. This endpoint catches all common canonical issues in a single request.
What is actually happening when you call it
Fetches the page with redirect tracking, parses both HTML (HyperText Markup Language) <link> tags and HTTP (HyperText Transfer Protocol) Link headers for canonical URLs, validates tag placement in <head>, detects multiple/conflicting canonicals, checks og:URL consistency, analyzes hreflang annotations, and grades the overall canonical configuration.
Why this specific tool matters
Choose a task: SEO Audit. Verify canonical URLs are correctly set across the site to prevent duplicate content issues.
Run the Canonical URL request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Canonical URL reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/domain/canonical`.
When would I actually use this?
SEO Audit
Verify canonical URLs are correctly set across the site to prevent duplicate content issues.
Use the finding: Catch critical issues like multiple canonicals, body placement, and og:URL mismatches that tools like Screaming Frog would flag.
International SEO
Verify hreflang annotations correctly link language/region versions and include x-default.
Use the finding: Ensure correct regional versions appear in local search results with validated language codes.
Site Migration
After migration, verify canonical URLs point to the new domain and redirect chains are clean.
Use the finding: Detect cross-domain canonicals, redirect chains, and HTTP/HTTPS mismatches before they impact rankings.
Continuous Monitoring
Integrate into automated deployment workflows to catch canonical regressions before deployment.
Use the finding: Prevent SEO-breaking changes from reaching production using the score and grade system.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_canonical with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Canonical URL, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Canonical URL request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/canonical?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Canonical URL
Start with the inputs below. Keep the same hostname, path, and options when comparing Canonical URL observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. | https://example.com |
Interpret Canonical URL findings
Read these fields alongside the full response from your Canonical URL check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
requestedUrl | string | The initial URL (web address) that was fetched |
Words you might be wondering about
URL (web address) — The full address of a page, like https://example.com/about.
HTTP (HyperText Transfer Protocol) — The language web browsers and websites use to talk to each other.
HTTPS (secure HyperText Transfer Protocol) — HTTP with encryption — the little padlock in your browser. It means nobody between you and the website can read what you're sending.
SEO (Search Engine Optimization) — Everything you do to help search engines like Google find, understand, and rank your website.
HTML (HyperText Markup Language) — The basic language web pages are written in. The tags you see in the source code (<h1>, <p>, <a>) are HTML.
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.