Fixing duplicate content from URL parameters
Filter, sort and session parameters multiply URLs. Self-referencing canonicals on the clean URL consolidate signals rather than splitting them.
Fetches a page and checks its canonical link tag and robots meta directives.
Fetches a page and checks its canonical link tag and robots meta directives.
https://example.com/page
canonical: https://example.com/page robots meta: index, follow
Both the <link rel=canonical> and robots meta are shown.
The canonical tells search engines which URL is the preferred version.
Your input is sent to YAS infrastructure because the tool requires server-side processing or public network queries. Input is not stored.
curl -X POST "https://yas.sh/api/v1/tools/canonical-checker" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/page"}'const res = await fetch("https://yas.sh/api/v1/tools/canonical-checker", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"url": "https://example.com/page"
}),
});
const data = await res.json();import requests
r = requests.post("https://yas.sh/api/v1/tools/canonical-checker", json={"url":"https://example.com/page"})
data = r.json()| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | http/https URL |
{ "title": "...", "canonical": "...", "noindex": false, "nofollow": false }Check a page's canonical link, robots meta, and title.
400 VALIDATION_ERROR — invalid input or unsupported option.413 PAYLOAD_TOO_LARGE — input exceeds the 64 KB limit.429 RATE_LIMIT_EXCEEDED — rate limit exceeded (60 req/min).A canonical link element or Link HTTP header names the preferred URL for a piece of content. When several URLs serve substantially the same content — with tracking parameters, alternate sort orders, or both www and apex variants — the canonical tells search engines which one to consolidate ranking signals onto. It is a strong hint, not a directive: search engines can and do select a different canonical when other signals disagree.
The check verifies the mechanics that decide whether the hint is honoured: the canonical must be an absolute URL, appear in the document head (or as a header), be self-referencing on the preferred version, and point at a page that returns 200 rather than a redirect or an error. A canonical pointing at a noindexed or redirecting URL produces contradictory instructions, and search engines resolve that contradiction unpredictably.
Filter, sort and session parameters multiply URLs. Self-referencing canonicals on the clean URL consolidate signals rather than splitting them.
After a domain or path change, canonicals frequently still point at the old URLs, which quietly tells search engines to prefer the pages you just retired.
Both hostnames serving identical content without a consistent canonical divides link equity between two versions of every page.
When a partner republishes your article, a cross-domain canonical on their copy attributes the original to you.
What this tool deliberately does not do, and where it will disagree with other implementations.