← Canonical URL Checker
Your token

Canonical URL Checker API

Reading your list, grouping the duplicates, picking the preferred URLs, checking them and writing the canonical tags, redirect rules, test script, report and CSV all run free in the browser and are not part of this API. The API runs the one metered step: deciding the addresses a rule cannot, which are upper and lower case variants and parameters that may or may not change the page.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is an envelope {"data": ..., "error": null} or {"data": null, "error": {"code", "message"}}.

The task field

This app has one task. Always send "task": "decide".

taskWhat it doesReply
decideAnswers each case variant (same, different or unsure) and each parameter (content, ignore or unsure), with a reason, and gives up to three tips.One JSON object

The input

All values are strings. task is required; send "" for anything you do not have.

FieldWhat to send
task"decide"
siteThe preferred scheme and host, e.g. https://www.example.com.
conventionsThe preferred path form, e.g. no trailing slash, no .html extensions, lower case preferred.
totalHow many addresses were checked, as a string.
decideOne item per line: case | /Path | preferred /path | also listed: ... or param | name | 2 with it, 1 also without it | e.g. /page?name=x. At most 60 lines.
pagesThe preferred paths of the site's pages, one per line (at most 80), for context.
problemsCheck codes separated by , (for example host.mixed, slash, case), or "".
items_noteEmpty, or a sentence saying what was left out of a long list.

The reply

job.output.output is text holding one JSON object with three keys: cases, a list of {"path", "answer", "why"} where answer is same, different or unsure; params, a list of {"name", "answer", "why"} where answer is content, ignore or unsure; and tips, a list of strings. Before using it, check that every path and name is one you sent, that each reason is 10 to 160 characters and each tip 20 to 170, and that neither adds a number or a name your input does not have. The page does exactly that, and shows what it refused.

Worked examples

The three samples on the page, each with the exact input the page sends and a model reply.

A shop's crawl export

Input:

{
  "task": "decide",
  "site": "https://www.fernbrook-outfitters.example",
  "conventions": "no trailing slash, no .html extensions, lower case preferred",
  "total": "21",
  "decide": "case | /Boots/Trail-Runner-GTX | preferred /boots/trail-runner-gtx | also listed: /boots/trail-runner-gtx, /boots/trail-runner-gtx?color=moss, /boots/trail-runner-gtx?color=slate\nparam | color | 2 with it, 2 also without it | e.g. /boots/trail-runner-gtx?color=moss, /boots/trail-runner-gtx?color=slate",
  "pages": "/\n/boots\n/boots?page=2\n/boots/trail-runner-gtx\n/jackets/ridgeline-shell\n/size-guide\n/returns\n/guides/waxing-leather-boots\n/search?q=gaiters\n/care-guide.pdf",
  "problems": "host.mixed, scheme.http, slashes, index, ext, slash, case, param.decide, canon.wrong, canon.page1, canon.chain, canon.relative, canon.noindex, status.temp, status.open",
  "items_note": ""
}

Reply:

{
  "cases": [
    {
      "path": "/Boots/Trail-Runner-GTX",
      "answer": "same",
      "why": "Same words as the lower-case boots page, only capitalised, on a site whose other paths are all lower case."
    }
  ],
  "params": [
    {
      "name": "color",
      "answer": "content",
      "why": "Colour on a boot page usually brings its own photos and stock, so each colour can be a page someone searches for."
    }
  ],
  "tips": [
    "Make the product and category links in menus and templates use the lower-case path, so capitalised variants stop appearing.",
    "Redirect the capitalised boots path to the lower-case one in nginx, Apache or Cloudflare, and keep one casing in the sitemap.",
    "If a colour page shares the same photos and stock, give it a canonical tag naming the page without the colour parameter."
  ]
}

On the page, a case variant answered same is redirected to its preferred URL, one answered different becomes a page of its own, a parameter answered content makes each value a page and one answered ignore gives those addresses a canonical tag; the tips join the check.

A blog's URL list

Input:

{
  "task": "decide",
  "site": "https://tidewater-notes.example",
  "conventions": "trailing slash, no .html extensions, lower case preferred",
  "total": "20",
  "decide": "case | /Recipes/Oyster-Stuffing/ | preferred /recipes/oyster-stuffing/ | also listed: /recipes/oyster-stuffing/, /recipes/oyster-stuffing.html\nparam | print | 1 with it, 1 also without it | e.g. /recipes/smoked-trout-chowder/?print=1\nparam | replytocom | 1 with it, 1 also without it | e.g. /recipes/smoked-trout-chowder/?replytocom=412",
  "pages": "/\n/recipes/\n/recipes/smoked-trout-chowder/\n/recipes/oyster-stuffing/\n/recipes/clam-fritters/\n/about/\n/category/soups/\n/category/soups/page/2/\n/?s=chowder\n/wp-content/uploads/2026/03/chowder-card.pdf",
  "problems": "host.mixed, scheme.http, ext, slash, case, session, param.decide",
  "items_note": ""
}

Reply:

{
  "cases": [
    {
      "path": "/Recipes/Oyster-Stuffing/",
      "answer": "same",
      "why": "Same words as the lower case recipe path, only capitalised, on a site whose other paths are all lower case."
    }
  ],
  "params": [
    {
      "name": "print",
      "answer": "ignore",
      "why": "A print view shows the same recipe in a different layout, so it is not a page of its own."
    },
    {
      "name": "replytocom",
      "answer": "ignore",
      "why": "It only opens the comment reply form on the same recipe, so the content is unchanged."
    }
  ],
  "tips": [
    "Find the template or link that outputs capitalised recipe paths and make it write the lower case address.",
    "Add a canonical tag on recipe pages in WordPress so print and reply links name the clean address.",
    "Update internal links and the sitemap so the old .html address is never linked, and redirect it to the trailing slash path."
  ]
}

On the page, a case variant answered same is redirected to its preferred URL, one answered different becomes a page of its own, a parameter answered content makes each value a page and one answered ignore gives those addresses a canonical tag; the tips join the check.

A docs sitemap.xml

Input:

{
  "task": "decide",
  "site": "https://docs.quillmesh.example",
  "conventions": "no trailing slash, no .html extensions, lower case preferred",
  "total": "17",
  "decide": "case | /api/Reference | preferred /api/reference | also listed: /api/reference\nparam | version | 2 with it, 2 also without it | e.g. /guides/rate-limits?version=2, /guides/rate-limits?version=3",
  "pages": "/\n/getting-started\n/guides/webhooks\n/guides/rate-limits\n/guides/authentication\n/api/reference\n/changelog\n/sdk/python\n/sdk/node",
  "problems": "scheme.http, slashes, index, ext, slash, case, param.decide, notinlist, sitemap.dup",
  "items_note": ""
}

Reply:

{
  "cases": [
    {
      "path": "/api/Reference",
      "answer": "same",
      "why": "Same word with a capital R on a site whose other paths are all lower case, so it is the same page."
    }
  ],
  "params": [
    {
      "name": "version",
      "answer": "content",
      "why": "A version value picks a different document version, which a searcher could want on its own."
    }
  ],
  "tips": [
    "Find the links or templates that write /api/Reference with a capital R and change them to the lower case path.",
    "Redirect the capitalised path to the lower case one in nginx, Apache or Cloudflare so only one spelling answers.",
    "Give each version page a self-referencing canonical tag so the versions are not treated as copies of each other."
  ]
}

On the page, a case variant answered same is redirected to its preferred URL, one answered different becomes a page of its own, a parameter answered content makes each value a page and one answered ignore gives those addresses a canonical tag; the tips join the check.

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://canonical-url-checker.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"canonical-url-checker"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "decide", "site": "https://tidewater-notes.example", "conventions": "trailing slash, no .html extensions, lower case preferred", "total": "20", "decide": "case | /Recipes/Oyster-Stuffing/ | preferred /recipes/oyster-stuffing/ | also listed: /recipes/oyster-stuffing/, /recipes/oyster-stuffing.html\nparam | print | 1 with it, 1 also without it | e.g. /recipes/smoked-trout-chowder/?print=1\nparam | replytocom | 1 with it, 1 also without it | e.g. /recipes/smoked-trout-chowder/?replytocom=412", "pages": "/\n/recipes/\n/recipes/smoked-trout-chowder/\n/recipes/oyster-stuffing/\n/recipes/clam-fritters/\n/about/\n/category/soups/\n/category/soups/page/2/\n/?s=chowder\n/wp-content/uploads/2026/03/chowder-card.pdf", "problems": "host.mixed, scheme.http, ext, slash, case, session, param.decide", "items_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="canonical-url-checker:decide:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: cases, params, tips
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: canonical-url-checker:decide:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json