diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 45ddf0a..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -site/ diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..9704a8b --- /dev/null +++ b/404.html @@ -0,0 +1,1330 @@ + + + +
+ + + + + + + + + + + + + + + + + + + +An Accessibility issue corresponds to an issue found on a given web page when being checked by the A11Y checker.
+Guide descriptions are not available for every issue
+Rocket Validator publishes a guide for the most common issues, but not for
+every possible validator message. When no guide matches an issue, the four
+description and guide attributes are null. Treat them as optional.
Example: Accessibility Issue
+{
+ "data": {
+ "attributes": {
+ "description": "The names of ARIA attributes beginning with \"aria-\" must be correct.",
+ "description_markdown": "The names of ARIA attributes beginning with \"aria-\" must be correct.",
+ "description_html": "<p>The names of ARIA attributes beginning with "aria-" must be correct.</p>",
+ "guide_url": "https://rocketvalidator.com/accessibility-validation/axe/4.8/aria-valid-attr",
+ "help": "ARIA attributes must conform to valid names",
+ "help_url": "https://dequeuniversity.com/rules/axe/4.8/aria-valid-attr",
+ "html": [
+ "<svg class=\"d-block mx-1\" title=\"Windows\" aria-title=\"Windows\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"currentColor\">",
+ "<svg class=\"d-block mx-1\" title=\"Linux\" aria-title=\"Linux\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"currentColor\">",
+ "<svg class=\"d-block mx-1\" title=\"Web\" aria-title=\"Web\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"currentColor\">",
+ "<svg class=\"d-block mx-1\" title=\"macOS\" aria-title=\"macOS\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"currentColor\">"
+ ],
+ "impact": "critical",
+ "impact_order": 4,
+ "inserted_at": "2024-03-05T12:45:14",
+ "tags": [
+ "cat.aria",
+ "wcag2a",
+ "wcag412",
+ "EN-301-549",
+ "EN-9.4.1.2"
+ ],
+ "updated_at": "2024-03-05T12:45:14",
+ "url": "https://github.blog/2024-02-29-game-bytes-february-2024/"
+ },
+ "id": "26218481",
+ "relationships": {
+ "report": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576"
+ }
+ },
+ "web_page": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576/web_pages/8413311"
+ }
+ }
+ },
+ "type": "a11y_issue"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To list the accessibility issues found on a web page, send a GET request to /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/a11y_issues.
Example: list A11Y issues for a web page
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/a11y_issues
+To include only the accessibility issues of a given kind, use the filter[help] option.
Example: filter A11Y issues for a web page about "landmark"
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/a11y_issues?filter[help]=landmark
+To include only the issues for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.Example: filter A11Y issues for a web page tagged with "wcag2a"
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/a11y_issues?filter[tags][mode]=any&filter[tags][list]=wcag2a
+To show an individual Accessibility issue on a web page, send a GET request to /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/a11y_issues/$A11Y_ISSUE_ID
Example: retrieve A11Y issue for a web page
+GET `/api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/a11y_issues/$A11Y_ISSUE_ID
+In order to interact with the Rocket Validator API, you must authenticate using an API token.
+You can generate an API token for your account on the API tokens section. When you do so, you can also define its scope (read-only or write permission). Using the token on an API request you'll get access to the resources on your account. If you ever need to revoke access for a token, just delete it.
+Keep in mind that an API token works as a complete authentication method, acting as a substitute of your username and password pair. It's important that you keep these tokens secure - on generation, the web interface will only show the token once, it's your responsibility to keep it secure.
+Once you have a token, you must include a bearer-type Authorization header.
Example: authenticating your requests
+curl https://rocketvalidator.com/api/v1/reports \
+ --header 'Authorization: Bearer YOURAPITOKEN'
+All requests must be made via HTTPS.
+The authorization header must be present in all requests, but for the sake of brevity we'll omit it in the rest of the documentation.
+ + + + + + + + + + + + + +Typically, the same kind of issue affects many Web Pages on a given Report. For example, the issue "Form elements must have labels" may affect many Web Pages on the same report.
A Common Accessibility Issue represents a given Accessibility Issue that is common to many Web Pages, thus showing its details, how many times it's found on the Report, and links to the related Web Pages.
+Guide descriptions are not available for every issue
+Rocket Validator publishes a guide for the most common issues, but not for
+every possible validator message. When no guide matches an issue, the four
+description and guide attributes are null. Treat them as optional.
Example: Common Accessibility Issue
+ {
+ "data": {
+ "attributes": {
+ "description": "The names of ARIA attributes beginning with \"aria-\" must be correct.",
+ "description_markdown": "The names of ARIA attributes beginning with \"aria-\" must be correct.",
+ "description_html": "<p>The names of ARIA attributes beginning with "aria-" must be correct.</p>",
+ "guide_url": "https://rocketvalidator.com/accessibility-validation/axe/4.8/aria-valid-attr",
+ "help": "ARIA attributes must conform to valid names",
+ "help_url": "https://dequeuniversity.com/rules/axe/4.8/aria-valid-attr?application=axe-puppeteer",
+ "how_many": 1,
+ "impact": "critical",
+ "impact_order": 4,
+ "report_id": "72eecced-8472-41fc-b194-59b7496c7576",
+ "tags": [
+ "cat.aria",
+ "wcag2a",
+ "wcag412",
+ "EN-301-549",
+ "EN-9.4.1.2"
+ ]
+ },
+ "id": "26218481",
+ "relationships": {
+ "web_pages": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576/web_pages?filter[common_a11y_issue_id]=26218481"
+ }
+ }
+ },
+ "type": "common_a11y_issue"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+ }
+To list the Common Accessibility issues found on a report, send a GET request to /api/v1/reports/$REPORT_ID/common_a11y_issues.
Example: list the Common Accessibility issues found on a report
+GET /api/v1/reports/$REPORT_ID/common_a11y_issues
+To include only the accessibility issues of a given kind, use the filter[help] option.
Example: filter A11Y issues for a report about "landmark"
+GET /api/v1/reports/$REPORT_ID/common_a11y_issues?filter[help]=landmark
+To include only the issues for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.Example: filter A11Y issues for a report tagged with "wcag2a"
+GET /api/v1/reports/$REPORT_ID/common_a11y_issues?filter[tags][mode]=any&filter[tags][list]=wcag2a
+To retrieve a Common Accessibility Issue on a given Report, send a GET request to /api/v1/reports/$REPORT_ID/common_a11y_issues/$COMMON_A11Y_ISSUE_ID.
Example: retrieve a Common Accessibility issue on a report
+GET /api/v1/reports/$REPORT_ID/common_a11y_issues/$COMMON_A11Y_ISSUE_ID
+To list the Web Pages that are affected by a given issue, refer to Filtering by A11Y issue on the Web pages endpoint.
+ + + + + + + + + + + + + +Typically, the same kind of issue affects many Web Pages on a given Report. For example, the issue "The “center” element is obsolete. Use CSS instead." may affect many Web Pages on the same report.
A Common HTML Issue represents a given HTML Issue that is common to many Web Pages, thus showing its details, how many times it's found on the Report, and links to the related Web Pages.
+Guide descriptions are not available for every issue
+Rocket Validator publishes a guide for the most common issues, but not for
+every possible validator message. When no guide matches an issue, the four
+description and guide attributes are null. Treat them as optional.
Example: Common HTML Issue
+{
+ "data": {
+ "attributes": {
+ "description": "Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.",
+ "description_markdown": "Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.",
+ "description_html": "<p>Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.</p>",
+ "guide_url": "https://rocketvalidator.com/html-validation/duplicate-attribute-x",
+ "how_many": 132,
+ "issue_sub_type": null,
+ "issue_type": "error",
+ "message": "Duplicate attribute “id”.",
+ "report_id": "72eecced-8472-41fc-b194-59b7496c7576",
+ "tags": ["duplicate attribute"]
+ },
+ "id": "144375908",
+ "relationships": {
+ "web_pages": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576/web_pages?filter[common_html_issue_id]=144375908"
+ }
+ }
+ },
+ "type": "common_html_issue"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+ }
+To list the Common HTML issues found on a report, send a GET request to /api/v1/reports/$REPORT_ID/common_html_issues.
Example: list the Common HTML issues found on a report
+GET /api/v1/reports/$REPORT_ID/common_html_issues
+To include only the HTML issues of a given kind, use the filter[message] option.
Example: filter HTML issues for a report about "table"
+GET /api/v1/reports/$REPORT_ID/common_html_issues?filter[message]=table
+To include only the issues for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.Example: filter HTML issues for a report tagged with "label"
+GET /api/v1/reports/$REPORT_ID/common_html_issues?filter[tags][mode]=any&filter[tags][list]=label
+To retrieve a Common HTML Issue on a given Report, send a GET request to /api/v1/reports/$REPORT_ID/common_html_issues/$COMMON_HTML_ISSUE_ID.
Example: retrieve a Common HTML issue on a report
+GET /api/v1/reports/$REPORT_ID/common_html_issues/$COMMON_HTML_ISSUE_ID
+To list the Web Pages that are affected by a given issue, refer to Filtering by HTML issue on the Web pages endpoint.
+ + + + + + + + + + + + + +Device Viewport Emulation is a Rocket Validator Pro feature that you can use to simulate a device viewport in your site validation reports.
+Using the Rocket Validator API you can get the complete list of available devices, and all the details for their specific attributes. You can also check this list at the devices section of the Rocket Validator site.
+Example: Device structure
+{
+ "data": {
+ "attributes": {
+ "device_scale_factor": 3,
+ "has_touch": true,
+ "height": 640,
+ "is_landscape": false,
+ "is_mobile": true,
+ "name": "Galaxy Note 3",
+ "user_agent": "Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "width": 360
+ },
+ "id": "888f56c2-5e28-404b-8ac1-e71c414694bf",
+ "type": "device"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To list all the available Devices, send a GET request to /api/v1/devices.
+++
GET /api/v1/devices
To retrieve an individual Device, send a GET request to /api/v1/devices/$DEVICE_ID.
+++
GET /api/v1/devices/$DEVICE_ID
When a report is run without specifying a device, the default device is used.
+To get the properties of the default device, send a GET request to /api/v1/devices/default.
Example: GET /api/v1/devices/default
+{
+ "data": {
+ "attributes": {
+ "device_scale_factor": 1,
+ "has_touch": false,
+ "height": 600,
+ "is_landscape": false,
+ "is_mobile": false,
+ "name": "Default",
+ "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4512.0 Safari/537.36",
+ "width": 800
+ },
+ "id": "",
+ "type": "device"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+Guest Accounts is a Rocket Validator Pro feature that lets you invite other Rocket Validator users to share your subscription resources in terms of validation credits and features, without compromising your main account credentials.
+Using the Rocket Validator API you can completely manage your guest accounts by listing, creating, updating or deleting guest accounts.
+Example: Guest Account
+{
+ "data": {
+ "attributes": {
+ "accepted_at": "2022-02-22T15:11:28",
+ "current_usage": 0,
+ "guest": {
+ "email": "jean@example.com",
+ "name": "Jean Example"
+ },
+ "inserted_at": "2022-01-23T14:49:46",
+ "invitation_url": null,
+ "max_usage": 5000,
+ "updated_at": "2024-05-03T08:31:18"
+ },
+ "id": "G30629C8BD",
+ "type": "guest_account"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To list all your guest accounts, send a GET request to /api/v1/guest_accounts.
+++
GET /api/v1/guest_accounts
To retrieve an individual Guest Account, send a GET request to /api/v1/guest_accounts/$GUEST_ACCOUNT_ID.
+++
GET /api/v1/guest_accounts/$GUEST_ACCOUNT_ID
To create a Guest Account, send a POST request to /api/v1/guest_accounts, with a JSON payload in the body including the max_usage attribute.
Example: POST https://rocketvalidator.com/api/v1/guests_accounts
+{
+ "data": {
+ "attributes": {
+ "max_usage": 1000
+ }
+ }
+}
+To update an existing Guest Account, send a PATCH request to /api/v1/guest_accounts/$GUEST_ACCOUNT_ID.
You can include any of these attributes in the payload:
+current_usage. Positive number, indicating the current usage for the ongoing month.max_usage. Positive number, indicating the maximum allowed credits per month.Example: PATCH https://rocketvalidator.com/api/v1/guests_accounts/$GUEST_ACCOUNT_ID
+{
+ "data": {
+ "attributes": {
+ "current_usage": 500,
+ "max_usage": 2000
+ }
+ }
+}
+To delete an individual Guest Account from your account, send a DELETE request to /api/v1/guest_accounts/$GUEST_ACCOUNT_ID.
++ + + + + + + + + + + + + ++
DELETE https://rocketvalidator.com/api/v1/guest_accounts/$GUEST_ACCOUNT_ID
An HTML issue corresponds to an issue found on a given web page when being checked by the HTML validator.
+Guide descriptions are not available for every issue
+Rocket Validator publishes a guide for the most common issues, but not for
+every possible validator message. When no guide matches an issue, the four
+description and guide attributes are null. Treat them as optional.
Example: HTML Issue
+{
+ "data": {
+ "attributes": {
+ "description": "Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.",
+ "description_markdown": "Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.",
+ "description_html": "<p>Each HTML element must have unique attribute names — no attribute can appear more than once on the same element.</p>",
+ "guide_url": "https://rocketvalidator.com/html-validation/duplicate-attribute-x",
+ "how_many": 3,
+ "html": [
+ {
+ "coordinates": {
+ "first_column": null,
+ "first_line": 210,
+ "hilite_length": 1,
+ "hilite_start": 15,
+ "last_column": 22,
+ "last_line": 210
+ },
+ "extract": "=\"game-news\" id=\"game-news\" >G"
+ },
+ {
+ "coordinates": {
+ "first_column": null,
+ "first_line": 211,
+ "hilite_length": 1,
+ "hilite_start": 15,
+ "last_column": 117,
+ "last_line": 211
+ },
+ "extract": "f0%9f%8d%93\" id=\"madelines-bac"
+ },
+ {
+ "coordinates": {
+ "first_column": null,
+ "first_line": 261,
+ "hilite_length": 1,
+ "hilite_start": 15,
+ "last_column": 48,
+ "last_line": 261
+ },
+ "extract": "f0%9f%92%a8\" id=\"driftmania-%f"
+ }
+ ],
+ "tags": ["duplicate attribute"],
+ "inserted_at": "2024-03-05T12:44:34",
+ "issue_sub_type": null,
+ "issue_type": "error",
+ "message": "Duplicate attribute “id”.",
+ "updated_at": "2024-03-05T12:44:34"
+ },
+ "id": "144375908",
+ "relationships": {
+ "report": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576"
+ }
+ },
+ "web_page": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/72eecced-8472-41fc-b194-59b7496c7576/web_pages/8413311"
+ }
+ }
+ },
+ "type": "html_issue"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To list the HTML issues found on a web page, send a GET request to /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/html_issues.
Example: list the HTML issues found on a web page
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/html_issues
+To include only the HTML issues of a given kind, use the filter[message] option.
Example: filter HTML issues for a web page about "table"
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/html_issues?filter[message]=table
+To include only the issues for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.Example: filter HTML issues for a web page tagged with "label"
+GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/html_issues?filter[tags][mode]=any&filter[tags][list]=label
+To show an individual HTML issue on a web page, send a GET request to /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID/html_issues/$HTML_ISSUE_ID
Example: retrieve HTML issue for a web page
+GET `/api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/html_issues/$HTML_ISSUE_ID
+The Rocket Validator API lets you manage your site validation reports and related data like schedules, mutings, devices and guest accounts sending conventional HTTP requests to a standard JSON API.
+Current version
+The Rocket Validator API is currently in version v1.
All endpoints have the prefix:
+https://rocketvalidator.com/api/v1/{endpoint}
+For brevity and legibility, the examples might omit the prefix, so instead of this:
++++
GET https://rocketvalidator.com/api/v1/reports
we'll use this:
++++
GET /api/v1/reports
To start working with the Rocket Validator API, all you need is to sign up for a new account and then generate an API token. Check out the Authorization section to learn how to use this API token to identify your requests.
+To retrieve the data you need from Rocket Validator, you just need to perform a standard GET, POST, PATCH or DELETE request to the appropiate endpoint. Here are some examples in different programming languages, and below is a cheatsheet on the most common endpoints.
Example code
+curl --request GET \
+ --url https://rocketvalidator.com/api/v1/reports \
+ --header 'authorization: Bearer $API_TOKEN'
+require 'uri'
+require 'net/http'
+require 'openssl'
+
+url = URI("https://rocketvalidator.com/api/v1/reports")
+
+http = Net::HTTP.new(url.host, url.port)
+http.use_ssl = true
+http.verify_mode = OpenSSL::SSL::VERIFY_NONE
+
+request = Net::HTTP::Get.new(url)
+request["authorization"] = 'Bearer $API_TOKEN'
+
+response = http.request(request)
+puts response.read_body
+# Install the gem from https://rubygems.org/gems/rocketvalidator
+
+require 'rocketvalidator'
+
+RocketValidator::V1::Resource.with_api_token(ENV["ROCKET_API_TOKEN"]) do
+ page = 0
+ reports = RocketValidator::V1::Report.page(1).per(10).to_a
+
+ while reports do
+ page = page + 1
+ puts "\nPage #{page}: #{reports.length} reports found."
+
+ reports.each do |report|
+ puts(report.starting_url)
+ end
+
+ reports = reports.pages.next
+ end
+end
+import http.client
+
+conn = http.client.HTTPSConnection("rocketvalidator.com")
+
+payload = ""
+
+headers = { 'authorization': "Bearer $API_TOKEN" }
+
+conn.request("GET", "/api/v1/reports", payload, headers)
+
+res = conn.getresponse()
+data = res.read()
+
+print(data.decode("utf-8"))
+<?php
+
+$curl = curl_init();
+
+curl_setopt_array($curl, array(
+ CURLOPT_URL => "https://rocketvalidator.com/api/v1/reports",
+ CURLOPT_RETURNTRANSFER => true,
+ CURLOPT_ENCODING => "",
+ CURLOPT_MAXREDIRS => 10,
+ CURLOPT_TIMEOUT => 30,
+ CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
+ CURLOPT_CUSTOMREQUEST => "GET",
+ CURLOPT_POSTFIELDS => "",
+ CURLOPT_HTTPHEADER => array(
+ "authorization: Bearer $API_TOKEN"
+ ),
+));
+
+$response = curl_exec($curl);
+$err = curl_error($curl);
+
+curl_close($curl);
+
+if ($err) {
+ echo "cURL Error #:" . $err;
+} else {
+ echo $response;
+}
+?>
+var http = require("https");
+
+var options = {
+ "method": "GET",
+ "hostname": "rocketvalidator.com",
+ "port": null,
+ "path": "/api/v1/reports",
+ "headers": {
+ "content-length": "0",
+ "authorization": "Bearer $API_TOKEN"
+ }
+};
+
+var req = http.request(options, function (res) {
+ var chunks = [];
+
+ res.on("data", function (chunk) {
+ chunks.push(chunk);
+ });
+
+ res.on("end", function () {
+ var body = Buffer.concat(chunks);
+ console.log(body.toString());
+ });
+});
+
+req.end();
+HttpResponse<String> response = Unirest.get("https://rocketvalidator.com/api/v1/reports")
+.header("authorization", "Bearer $API_TOKEN")
+.asString();
+import Foundation
+
+let headers = ["authorization": "Bearer $API_TOKEN"]
+
+let postData = NSData(data: "".data(using: String.Encoding.utf8)!)
+
+let request = NSMutableURLRequest(url: NSURL(string: "https://rocketvalidator.com/api/v1/reports")! as URL,
+ cachePolicy: .useProtocolCachePolicy,
+ timeoutInterval: 10.0)
+request.httpMethod = "GET"
+request.allHTTPHeaderFields = headers
+request.httpBody = postData as Data
+
+let session = URLSession.shared
+let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
+if (error != nil) {
+ print(error)
+} else {
+ let httpResponse = response as? HTTPURLResponse
+ print(httpResponse)
+}
+})
+
+dataTask.resume()
+GET is the default method
+In the cURL example above we're explicitly specifying the GET kind of request, but as it's the default, in the rest of the documentation you'll often see that we omit it.
Also, there's no need for the --url parameter and you can just pass the URL endpoint like this:
curl https://rocketvalidator.com/api/v1/reports \
+ --header 'authorization: Bearer $API_TOKEN'
+Send a POST request to /api/v1/reports with a JSON payload including the parameters:
starting_url. The initial URL where the Spider will start on. Required.max_pages. The Spider will recursively follow internal links found until this limit is reached. Optional, defaults to 10.Example: POST /api/v1/reports
+{
+ "data": {
+ "attributes": {
+ "starting_url": "https://dummy.rocketvalidator.com",
+ "max_pages": 100
+ }
+ }
+}
++++
GET /api/v1/reports
+++
GET /api/v1/reports/$REPORT_ID
+++
DELETE /api/v1/reports/$REPORT_ID
+++
GET /api/v1/reports/$REPORT_ID/web_pages
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEB_PAGE_ID
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/a11y_issues
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/a11y_issues/$ISSUE_ID
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/html_issues.
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID/html_issues/$ISSUE_ID.
+++
GET /api/v1/reports/$REPORT_ID/common_a11y_issues
+++
GET /api/v1/reports/$REPORT_ID/common_a11y_issues/$COMMON_A11Y_ISSUE_ID
+++
GET /api/v1/reports/$REPORT_ID/common_html_issues
+++
GET /api/v1/reports/$REPORT_ID/common_html_issues/$COMMON_HTML_ISSUE_ID
+++
GET /api/v1/mutings
+++
GET /api/v1/mutings/$MUTING_ID
+++
GET /api/v1/schedules
+++
GET /api/v1/schedules/$SCHEDULE_ID
+++
GET /api/v1/devices
+++
GET /api/v1/devices/$DEVICE_ID
+++
GET /api/v1/guest_accounts
+++
GET /api/v1/guest_accounts/$GUEST_ACCOUNT_ID
The Rocket Validator API is available to all users at no additional cost. Usage is measured in credits, at a rate of one credit per 1,000 API requests. This allows users to integrate the API into their workflow while ensuring that our resource usage remains within reasonable limits.
+For instance, to obtain the initial data for a 1,000-page web page validation report, it requires 11 credits to make a single call to the reporting endpoint and 10 calls to retrieve the data for the 1,000 web pages (with a pagination of 100 items).
+In terms of reducing API costs, it is advisable to consider the following:
+Currently the Rocket Validator is not rate limited, but it will be soon, to ensure reasonable limits in our resource usage.
+ + + + + + + + + + + + + +A Muting represents a rule you've defined to automatically mute certain issues on your reports. Read more about Muting Rules.
+Think of a Muting as a rule that defines a matching URL and issue message - when Rocket Validator finds issues on your web pages, they'll be automatically muted if there's a match.
+Example: Muting structure
+{
+ "data": {
+ "attributes": {
+ "comment": "Non standard but it's a Safari extension",
+ "id": 868,
+ "message": "Attribute “autocorrect” not allowed on element “input” at this point.",
+ "url_match": "https://dummy.rocketvalidator.com/"
+ },
+ "id": "2513",
+ "type": "muting"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To create a Muting, send a POST request to /api/v1/mutings, with a JSON payload in the body including its attributes. There are two required attributes:
url_match. A string containing a match for a URL. It can be a full URL or any substring within it.message. A string defining a match for an Issue. It can be a full issue message, or part of it.comment. A brief comment to publicly explain why this muting is needed.The next example shows how to create a muting that will silence all issues mentioning image needs alt on all web pages where the URL contains example.com
Example: POST /api/v1/mutings
+{
+ "data": {
+ "attributes": {
+ "url_match": "example.com",
+ "message": "image needs alt",
+ "comment": "a comment"
+ }
+ }
+}
+To retrieve an individual Muting in your account, send a GET request to /api/v1/mutings/$MUTING_ID.
+++
GET /api/v1/mutings/$MUTING_ID
To list all your Mutings in your account, send a GET request to /api/v1/mutings.
+++
GET /api/v1/mutings
To list all the mutings that have been applied to a given report, send a GET request to /api/v1/reports/$REPORT_ID/mutings
+++
GET /api/v1/reports/$REPORT_ID/mutings
To delete an individual Muting from your account, send a DELETE request to /api/v1/mutings/$MUTING_ID.
++ + + + + + + + + + + + + ++
DELETE /api/v1/mutings/$MUTING_ID
When the list of entities returned by a request is paginated, a links key will be included on the JSON response body with links to the first, last, next, prev and self pages.
Pagination is controlled using the following parameters:
+Using Square Brackets in Parameter Names
+Pagination parameters use Query Parameter Families, which are sets of query parameters with a common base name. Although square brackets should be URL-encoded with %5B for [ and %5D for ], our servers will accept unencoded square brackets, which leads to increased URL legibility.
In the examples where we use curl, we switch off the URL globbing function (with a simple -g option) to let curl know that we're OK with using square brackets.
Example: Getting the 3rd page of the reports list, with 10 reports per page
+curl -g https://rocketvalidator.com/api/v1/reports?page[number]=3&page[size]=10
+A Raw Check contains the raw output of a web page check, unprocessed, as returned by the Axe Core checker or the W3C HTML validator.
+Rocket Validator processes the raw checks to extract the issues and present them in a more user-friendly way in the web interface. However, you can also access the raw checks if you need to process them in your own way.
+If not told otherwise, the raw checks are not stored and are deleted after they've been processed to generate the HTML and accessibility issues.
+If you need to keep the raw checks for later processing, you can request these options when you create the report:
+store_raw_html_checks: true
+store_raw_a11y_checks: true
+Credit cost for raw checks
+Enabling the storage of raw checks will increase the number of credits consumed by the report at the cost of 1 credit per stored raw check.
+For example, running a report with HTML and accessibility checks on 10 web pages will normally consume 20 credits (10 HTML checks and 10 accessibility checks). If you enable the storage of raw checks on this report, we'll charge an additional 20 credits (10 stored HTML raw checks and 10 stored accessibility raw checks).
+Please consider not storing raw checks unless you need them, or only storing the kind of raw checks you need (HTML and / or accessibility).
+html or a11y.Example: HTML Raw Check
+{
+ "data": {
+ "attributes": {
+ "kind": "html",
+ "raw": {
+ "language": "en",
+ "messages": [
+ {
+ "extract": "t=\"UTF-8\"><script type=\"text/javascript\">(windo",
+ "firstColumn": 24,
+ "hiliteLength": 31,
+ "hiliteStart": 10,
+ "lastColumn": 54,
+ "lastLine": 4,
+ "message": "The “type” attribute is unnecessary for JavaScript resources.",
+ "subType": "warning",
+ "type": "info"
+ },
+ {
+ "extract": "on.ico\">\n\t<meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />\n\n\t<!-",
+ "firstColumn": 2,
+ "hiliteLength": 109,
+ "hiliteStart": 10,
+ "lastColumn": 110,
+ "lastLine": 9,
+ "message": "Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.",
+ "type": "info"
+ }
+ ],
+ "url": "https://github.blog/ai-and-ml/generative-ai/how-ai-code-generation-works/"
+ }
+ },
+ "id": "14691003",
+ "type": "raw_check"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To get the HTML raw check for a web page, use the following endpoint:
+Example: get the HTML raw check for a web page
+GET /api/v1/reports/{{REPORT_ID}}/web_pages/{{WEB_PAGE_ID}}/raw_html_check
+To get the accessibility raw check for a web page, use the following endpoint:
+Example: get the accessibility raw check for a web page
+GET /api/v1/reports/{{REPORT_ID}}/web_pages/{{WEB_PAGE_ID}}/raw_a11y_check
+For more information about the JSON output of the W3C HTML Validator, see the W3C HTML Validator documentation.
+The results object of Axe Core contains not only the violations found, but also the incomplete (also known as "review items") and passing checks. You can learn more about the Axe Core results object in the Axe Core documentation.
+ + + + + + + + + + + + + +A Report represents a site validation report you've created in Rocket Validator. It contains a list of web pages that were found from the starting url, and the HTML and accessibility issues that were found.
+null otherwise).
+ pending, checked and failed.errors and warnings. This sums the number of HTML issues on all the web pages for a particular report.null otherwise).
+ pending, checked and failed.errors and warnings. Also includes the number of issues per each severity level (minor, moderate, serious and critical). This sums the number of Accessibility issues on all the web pages for a particular report.Example: Report example
+{
+ "data": {
+ "attributes": {
+ "checks": {
+ "a11y": {
+ "issues": {
+ "errors": 51,
+ "severity": {
+ "critical": 0,
+ "minor": 0,
+ "moderate": 1,
+ "serious": 50,
+ "total": {
+ "errors": 51,
+ "total": 51,
+ "warnings": 0
+ }
+ },
+ "warnings": 0
+ },
+ "status": {
+ "checked": 7,
+ "failed": 0,
+ "pending": 0
+ }
+ },
+ "html": {
+ "issues": {
+ "errors": 17,
+ "warnings": 105
+ },
+ "status": {
+ "checked": 7,
+ "failed": 0,
+ "pending": 0
+ }
+ }
+ },
+ "deep_crawl": true,
+ "prefer_canonical_urls": true,
+ "device_rotated": false,
+ "domain": "dummy.rocketvalidator.com",
+ "dynamic_crawler": false,
+ "exclusions": [],
+ "initial_urls": [],
+ "inserted_at": "2024-05-14T13:54:29",
+ "last_checked_at": "2024-05-14T13:54:49",
+ "max_pages": 100,
+ "num_pages": 7,
+ "perform_a11y_checks": true,
+ "perform_html_checks": true,
+ "rate_limit": 5,
+ "starting_url": "https://dummy.rocketvalidator.com",
+ "tags": [
+ "dummy"
+ ],
+ "shared": false,
+ "updated_at": "2024-05-14T13:54:49"
+ },
+ "id": "2455a63a-7e16-4cbf-8455-6c9a88195142",
+ "relationships": {
+ "common_a11y_issues": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/common_a11y_issues"
+ }
+ },
+ "common_html_issues": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/common_html_issues"
+ }
+ },
+ "device": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/devices/c4f0f4be-e6dd-498a-b049-205be3604505"
+ }
+ },
+ "excluded_urls": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/excluded_urls"
+ }
+ },
+ "mutings": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/mutings"
+ }
+ },
+ "web_pages": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/web_pages"
+ }
+ }
+ },
+ "type": "report"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To create a Report, send a POST request to /api/v1/reports, with a JSON payload in the body including its attributes. The only required attribute is the starting URL.
starting_url. The initial URL where the Spider will start on.The following attributes are optional:
+deep_crawl. Boolean to enable deep crawling. Defaults to true.prefer_canonical_urls. Boolean to indicate canonical URLs are preferrer. Defaults to true.max_pages. The Spider will recursively follow internal links found until this limit is reached. Defaults to 10.rate_limit. Limit on the number of requests per second. Defaults to 1.perform_html_checks. Boolean to enable checks using the W3C Validator software on the Web Pages found. Defaults to true.tags. Comma-separated list of tags.shared. Boolean to indicate if the report can be shared with other users. Defaults to false.The following attributes are only available for users with a Pro or Enterprise subscription:
+perform_a11y_checks. Boolean to enable checks using Deque Axe Core software on the Web Pages found. Defaults to false.store_raw_html_checks. Boolean to enable storage of the raw HTML checks. Defaults to false.store_raw_a11y_checks. Boolean to enable storage of the raw accessibility checks. Defaults to false.initial_urls. Newline-separated list of URLs.exclusions. Newline-separated list of paths.device_id. Id of the device to be used for viewport emulation. Check the device list to see the available devices.device_rotated. Boolean to indicate the emulated device should be rotated. Defaults to false.The next example shows how to create a report for a given starting URL. This will use the defaults of 10 web pages, checked only for HTML issues:
+Example: POST /api/v1/reports
+{
+ "data": {
+ "attributes": {
+ "starting_url": "https://dummy.rocketvalidator.com"
+ }
+ }
+}
+In the following example we're using the advanced options to create a 1,000 web pages report, with HTML and Accessibility checks, on a rotated iPhone 12/13 Pro device, tagged as dev, dummmy.
Example: POST /api/v1/reports
+{
+ "data": {
+ "attributes": {
+ "starting_url": "https://dummy.rocketvalidator.com",
+ "max_pages": 1000,
+ "rate_limit": 3,
+ "perform_html_checks": true,
+ "perform_a11y_checks": true,
+ "deep_crawl": true,
+ "device_id": "c4f0f4be-e6dd-498a-b049-205be3604505",
+ "device_rotated": true,
+ "tags": "dev,dummy"
+ }
+ }
+}
+Rocket Validator will return the created Report with a status of a 201 Created, and will start scanning the Web Pages found. You can then refresh the Report by its ID (see Retrieve a Report) to check the progress of the Report, including the checks status, pending count and issues found.
If the Report can't be created, a 422 Unprocessable Entity status will be returned, containing details about the the errors found.
Example: POST /api/v1/reports
+{
+ "errors": [{
+ "detail": "Starting url has invalid format",
+ "source": {
+ "pointer": "/data/attributes/starting_url"
+ },
+ "title": "has invalid format"
+ }],
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+By default, reports are private and only accessible to the user who created them, and their host in case of guest users.
+To change the visibility of a report, send a PATCH request to /api/v1/reports/$REPORT_ID with a payload to set the shared field to true or false. Any other payload will be rejected.
Example: PATCH /api/v1/reports/$REPORT_ID
+{
+ "data": {
+ "attributes": {
+ "shared": true
+ }
+ }
+}
++++
GET /api/v1/reports/$REPORT_ID
+++
GET /api/v1/reports
To include only the Reports for a given starting_url, use the filter[url] option.
For example:
++++
GET /api/v1/reports?filter[url]=dummy.rocketvalidator.com
To include only the Reports for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.For example, this will return all reports tagged with any of dev or dummy
+++
GET /api/v1/reports?filter[tags][mode]=any&filter[tags][list]=dev,dummy
To show the reports created by a Schedule Pro, use the filter[schedule_id] option.
For example:
++++
GET /api/v1/reports?filter[schedule_id]=$SCHEDULE_ID
If you have Guest Accounts Pro, you can filter the report list so that it also contains the reports created by your guests.
+By default, the Reports API shows only the reports created by the main account:
++++
GET /api/v1/reports
This is equivalent to passing created_by=me like this:
+++
GET /api/v1/reports?created_by=me
To get the list of all reports (created by main account or by guests), pass created_by=all like this:
+++
GET /api/v1/reports?created_by=all
To get only the list of reports created by guests, pass created_by=guests like this:
+++
GET /api/v1/reports?created_by=guests
To get only the list of reports created by an individual guest or guests, pass the tokens as comma-separated like this:
++++
GET /api/v1/reports?created_by=guests&guest_token=1234
or
++++
GET /api/v1/reports?created_by=guests&guest_token=1234,5678
Each report will include the guest_token used as an attribute.
You can find the token for each guest account in the Guests section, both in the guest card, and also in the CSV export.
+By default the list of reports is returned in descending order of the last_checked_at timestamp, that is, the most recent reports are shown first.
If you want to change the sorting order, you can do that using the sort parameter to specify the attribute to sort by, combined with the direction (asc for ascending, desc for descending).
The sortable attributes are:
+Combining one of these attributes with the asc or desc direction modifier, we get the parameter to use. For example, to sort by URL in descending order we would use url-desc.
Here is a table showing all possible combinations for your convenience:
+| Sorting key | +Explanation | +Example | +
|---|---|---|
url-asc |
+Starting URL, ascending | +GET /api/v1/report?sort=url-asc |
+
url-desc |
+Starting URL, descending | +GET /api/v1/report?sort=url-desc |
+
num_web_pages-asc |
+Number of web pages, ascending | +GET /api/v1/report?sort=num_web_pages-asc |
+
num_web_pages-desc |
+Number of web pages, descending | +GET /api/v1/report?sort=num_web_pages-desc |
+
html_issues-asc |
+Number of HTML issues (errors + warnings), ascending | +GET /api/v1/report?sort=html_issues-asc |
+
html_issues-desc |
+Number of HTML issues (errors + warnings), descending | +GET /api/v1/report?sort=html_issues-desc |
+
html_errors-asc |
+Number of HTML errors, ascending | +GET /api/v1/report?sort=html_errors-asc |
+
html_errors-desc |
+Number of HTML errors, descending | +GET /api/v1/report?sort=html_errors-desc |
+
html_warnings-asc |
+Number of HTML warnings, ascending | +GET /api/v1/report?sort=html_warnings-asc |
+
html_warnings-desc |
+Number of HTML warnings, descending | +GET /api/v1/report?sort=html_warnings-desc |
+
a11y_issues-asc |
+Number of accessibility issues (errors + warnings), ascending | +GET /api/v1/report?sort=a11y_issues-asc |
+
a11y_issues-desc |
+Number of accessibility issues (errors + warnings), descending | +GET /api/v1/report?sort=a11y_issues-desc |
+
a11y_errors-asc |
+Number of accessibility errors, ascending | +GET /api/v1/report?sort=a11y_errors-asc |
+
a11y_errors-desc |
+Number of accessibility errors, descending | +GET /api/v1/report?sort=a11y_errors-desc |
+
a11y_warnings-asc |
+Number of accessibility warnings, ascending | +GET /api/v1/report?sort=a11y_warnings-asc |
+
a11y_warnings-desc |
+Number of accessibility warnings, descending | +GET /api/v1/report?sort=a11y_warnings-desc |
+
last_checked_at-asc |
+Last checked at, ascending | +GET /api/v1/report?sort=last_checked_at-asc |
+
last-checked_at-desc |
+Last checked at, descending | +GET /api/v1/report?sort=last_checked_at-desc |
+
To delete an individual Report from your account, send a DELETE request to /api/v1/reports/$REPORT_ID.
++ + + + + + + + + + + + + ++
DELETE /api/v1/reports/$REPORT_ID
For a better understanding of the Rocket Validator API, a brief description of the resources you can manage is in order.
+A Report represents a validation report you've created in Rocket Validator. Contains a list of web pages that were found from the starting url, and the HTML and accessibility issues that were found.
+A Web Page represents an HTML web page that has been found by the scraper, and is associated to a Report.
+An Accessibility Issue corresponds to an issue found on a given web page when being checked by the A11Y checker.
+An HTML issue corresponds to an issue found on a given web page when being checked by the HTML validator.
+Typically, the same kind of issue affects many Web Pages on a given Report. For example, the issue "Form elements must have labels" may affect many Web Pages on the same report.
A Common Accessibility Issue represents a given Accessibility Issue that is common to many Web Pages, thus showing its details, how many times it's found on the Report, and links to the related Web Pages.
+Typically, the same kind of issue affects many Web Pages on a given Report. For example, the issue "The “center” element is obsolete. Use CSS instead." may affect many Web Pages on the same report.
A Common HTML Issue represents a given HTML Issue that is common to many Web Pages, thus showing its details, how many times it's found on the Report, and links to the related Web Pages.
+A Raw Check contains the raw output of the check, unprocessed, as returned by the Axe Core checker or the W3C HTML validator.
+A Schedule represents a programmed report that will be run on a given periodicity, or after a deploy webhook is received.
+Think of a Scheduled Report as a regular Report, that can be set to run automatically on a defined schedule or via deploy hooks.
+A Device represents the viewport settings for Device Viewport Emulation, including viewport width and height, scale factor, rotation, and others.
+A Muting represents a rule you've defined to automatically mute certain issues on your reports, when those issues match the message and URL pattern.
+A Guest Accounts is an invitation to other person in your team to use Rocket Validator without needing to set up a subscription of their own.
+ + + + + + + + + + + + + +A Schedule represents a programmed report that will be run on a given periodicity, or after a deploy webhook is received.
+Think of a Scheduled Report as a regular Report, that can be set to run automatically on a defined schedule or via deploy hooks.
+every, which can be one of day / week / month.
+
+ week is used, then weekday will indicate the week day the schedule is run.month is used, the field monthday will give the details for the day of the month the schedule will be run on.null, the schedule will never be run, except through deploy hooks.Example: Schedule example
+{
+ "data": {
+ "attributes": {
+ "active": true,
+ "deep_crawl": true,
+ "prefer_canonical_urls": true,
+ "device_rotated": false,
+ "dynamic_crawler": false,
+ "exclusions": [
+ "/news",
+ "/tour"
+ ],
+ "initial_urls": [
+ "https://github.blog/category/engineering/",
+ "https://github.blog/category/open-source/"
+ ],
+ "inserted_at": "2022-06-18T10:09:10",
+ "last_run_at": "2022-08-15T08:51:25",
+ "max_pages": 100,
+ "perform_a11y_checks": true,
+ "perform_html_checks": true,
+ "periodicity": {
+ "every": "month",
+ "monthday": 15
+ },
+ "rate_limit": 3,
+ "starting_url": "https://github.blog/",
+ "tags": [
+ "personal",
+ "scheduled"
+ ],
+ "shared": false,
+ "updated_at": "2024-05-15T08:35:02"
+ },
+ "id": "2d8cc37a-1467-493b-8660-f97e33ca2c0a",
+ "relationships": {
+ "device": {
+ "links": {
+ "related": "http://rocketapi.dev:4000/api/v1/devices/default"
+ }
+ },
+ "reports": {
+ "links": {
+ "related": "http://rocketapi.dev:4000/api/v1/reports?filter[schedule_id]=2d8cc37a-1467-493b-8660-f97e33ca2c0a"
+ }
+ }
+ },
+ "type": "schedule"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To create a Schedule, send a POST request to /api/v1/schedules, with a JSON payload in the body including its attributes:
starting_url. The initial URL where the Spider will start on.periodicity. Map with the options for the periodicity. Requires an every key which can be deploy, month, week or day.month is used, an additional key monthday is optional, which has to be an integer from 1 to 28 and defaults to 1.week is used, then an additional weekday key is optional, as a string from monday, tuesday, wednesday, thursday, friday, saturday or sunday that defaults to monday.max_pages. The Spider will recursively follow internal links found until this limit is reached. Defaults to 100.rate_limit. Limit on the number of requests per second. Defaults to 1.perform_html_checks. Boolean to enable checks using the W3C Validator software on the Web Pages found. Defaults to true.perform_a11y_checks. Boolean to enable checks using Deque Axe Core software on the Web Pages found. Defaults to false.deep_crawl. Boolean to enable deep crawling. Defaults to true.prefer_canonical_urls. Boolean to indicate canonical URLs are preferrer. Defaults to true.dynamic_crawler. Boolean to use the Dynamic Crawler (for JS apps) instead of the default static crawler. Defaults to false.active. Boolean to enable the schedule. Defaults to true.initial_urls. Newline-separated list of URLs.exclusions. Newline-separated list of paths.device_id. Id of the device to be used for viewport emulation. Check the device list to see the available devices.device_rotated. Boolean to indicate the emulated device should be rotated. Defaults to false.shared. Boolean to indicate the reports created by the schedule can be shared with other users. Defaults to false.tags. Comma-separated list of tags.The next example shows how to form the body payload with the Schedule attributes.
+Example: POST /api/v1/schedules
+{
+ "data": {
+ "attributes": {
+ "starting_url": "https://dummy.rocketvalidator.com",
+ "max_pages": 100,
+ "rate_limit": 3,
+ "perform_html_checks": true,
+ "perform_a11y_checks": true,
+ "deep_crawl": true,
+ "dynamic_crawler": false,
+ "active": true,
+ "periodicity": {
+ "every": "month",
+ "monthday": 15
+ },
+ "tags": "dev,dummy",
+ "shared": true,
+ "device_id": "c4f0f4be-e6dd-498a-b049-205be3604505",
+ "device_rotated": true,
+ }
+ }
+}
+To update an existing Schedule, send a PATCH request to /api/v1/schedules/$schedule_id, with a JSON payload in the body including the attributes you want to change.
To retrieve an individual Schedule in your account, send a GET request to /api/v1/schedules/$SCHEDULE_ID.
To delete an individual Schedule from your account, send a DELETE request to /api/v1/schedules/$SCHEDULE_ID.
Example: DELETE /api/v1/schedules/$SCHEDULE_ID
+204 No Content
+To list all Schedules in your account, send a GET request to /api/v1/schedules.
To include only the Schedules for a given starting_url, use the filter[url] option.
Example: return all schedules with url containing "dummy.rocketvalidator.com"
+GET /api/v1/schedules?filter[url]=dummy.rocketvalidator.com
+To include only the Schedules for a given tags combination, use the filter[tags] options:
filter[tags][mode] setting the tag combination mode, which can be any, all or none.filter[tags][list] including a comma-separated list of tags.Example: return all schedules tagged with any of "dev" or "dummy"
+GET /api/v1/schedules?filter[tags][mode]=any&filter[tags][list]=dev,dummy
+To list all the Reports in your account that have been created via a given Schedule, refer to the Reports documentation.
+ + + + + + + + + + + + + +A Web Page represents an HTML web page that has been found by the scraper, and is associated to a Report.
+errors and warnings, and the status of the check.errors and warnings. Also includes the number of issues per each severity level (minor, moderate, serious and critical), and the status of the check.pending, the status will also be pending.pending and the other is checked, it will be checking.failed, the status will be failed.checked, the status will be checked.Example: Web Page example
+{
+ "data": {
+ "attributes": {
+ "a11y_check": {
+ "errors": 5,
+ "severity": {
+ "critical": 0,
+ "minor": 0,
+ "moderate": 0,
+ "serious": 5,
+ "total": {
+ "errors": 5,
+ "total": 5,
+ "warnings": 0
+ }
+ },
+ "status": "checked",
+ "warnings": 0
+ },
+ "html_check": {
+ "errors": 2,
+ "status": "checked",
+ "warnings": 14
+ },
+ "inserted_at": "2024-05-14T13:54:31",
+ "last_checked_at": "2024-05-14T13:54:39",
+ "linked_from": "https://dummy.rocketvalidator.com",
+ "status": "checked",
+ "updated_at": "2024-05-14T13:54:39",
+ "url": "https://dummy.rocketvalidator.com/about/"
+ },
+ "id": "8683545",
+ "relationships": {
+ "a11y_issues": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/web_pages/8683545/a11y_issues"
+ }
+ },
+ "html_issues": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/web_pages/8683545/html_issues"
+ }
+ },
+ "raw_a11y_check": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/web_pages/8683545/raw_a11y_check"
+ }
+ },
+ "raw_html_check": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142/web_pages/8683545/raw_html_check"
+ }
+ },
+ "report": {
+ "links": {
+ "related": "https://rocketvalidator.com/api/v1/reports/2455a63a-7e16-4cbf-8455-6c9a88195142"
+ }
+ }
+ },
+ "type": "web_page"
+ },
+ "jsonapi": {
+ "version": "1.0"
+ }
+}
+To list the web pages on a Report, send a GET request to /api/v1/reports/$REPORT_ID/web_pages.
+++
GET /api/v1/reports/$REPORT_ID/web_pages
To include only the web pages for a given url, use the filter[url] option.
+++
GET /api/v1/reports/$REPORT_ID/web_pages?filter[url]=about
To include only the web pages containing a given HTML issue, pass the HTML issue ID via the filter[common_html_issue_id] option.
+++
GET /api/v1/reports/$REPORT_ID/web_pages?filter[common_html_issue_id]=$HTML_ISSUE_ID
To include only the web pages containing a given accessibility issue, pass the A11Y issue ID via the filter[common_a11y_issue_id] option.
+++
GET /api/v1/reports/$REPORT_ID/web_pages?filter[common_a11y_issue_id]=$A11Y_ISSUE_ID
To show an individual Web Page, send a GET request to /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID.
+++
GET /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID
To re-check a web page, send a PATCH request to /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID with a payload to set the status to pending. Any other payload will be rejected.
Example: PATCH /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID
+{
+ "data": {
+ "attributes": {
+ "status": "pending"
+ }
+ }
+}
+Deleting web pages from a report is a Pro feature. It removes the web page, and updates the excluded URLs list for that report. If the report has no more web pages left, it will itself be deleted as well.
+To delete an individual Web Page from a report, send a DELETE request to /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID.
++ + + + + + + + + + + + + ++
DELETE /api/v1/reports/$REPORT_ID/web_pages/$WEBPAGE_ID
0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function B(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o