Skip to content
Menu
SilktideDevelopers

Scores

Silktide 4 and Silktide 5 score websites differently. Which scores operations to call, and how their ids match.

View as Markdown

Silktide 4 and Silktide 5 each give a website scores out of 100, but they work them out differently, so the same website gets different numbers from each. The API keeps them apart: each edition has its own scores operations, and each one names its edition.

Silktide 4Silktide 5
Latest scores/v1/results/scores/v1/results/module-scores
A score over time/v1/results/score-trend/v1/results/module-score-trend
Score idsSilktide 4's categories, such as overall, content and wcag-22-aa. Websites do not all have the same ones.The four modules and WCAG at each version and level. Always the same 13.

Which to call#

Call the operations for the edition of Silktide your account uses. An account that has only one edition is refused the other's operations with an EditionNotAvailable error, which names the operation to call instead:

{
  "error": {
    "type": "EditionNotAvailable",
    "message": "This account does not have Silktide 4, so it cannot use /v1/results/scores. Use /v1/results/module-scores instead.",
    "properties": { "edition": 4, "instead": "/v1/results/module-scores" },
    "status": 403
  }
}

Like other results errors, it comes back with status 200 and the error's own status inside it. See Results.

An account that has both editions can call both. If you are moving from Silktide 4 to Silktide 5, keep reading Silktide 4's scores until you have switched, and expect the numbers in your own reports to change on the day you do.

How the ids match#

Where a Silktide 4 score has a Silktide 5 counterpart, it measures the same thing. The numbers still differ, because the two editions test and weigh pages differently. Do not join the two series into one line.

Silktide 4 idSilktide 5 id
contentcontent
uxuser-experience
wcag-20, wcag-21, wcag-22accessibility
wcag-20-a, wcag-20-aa, wcag-20-aaathe same ids
wcag-21-a, wcag-21-aa, wcag-21-aaathe same ids
wcag-22-a, wcag-22-aa, wcag-22-aaathe same ids
Nonecompliance
overall, marketing and the restNone

Silktide 5 has no overall score. Each module stands on its own.

Reports, report schedules and report templates are Silktide 4's too. An account with only Silktide 5 gets a 403 with an EditionNotAvailable error from them.

Most other operations, such as websites, checks and content, work for both editions. Each operation's page says which editions it works for.