HTML Tidy Gateway

API Documentation

Endpoint

HTTP Request

This method accepts GET and POST.

Query Parameters

You can't possible to specify both the 'url' and 'html'.

Example

https://altstyle.alfasado.net/html-tidy-api.cgi?url=http%3A%2F%2Fwww.google.com&responseType=JSON&errors=1&diff=1&language=ja

Response

{
 "original":"<!DOCTYPE html>\n...(Original HTML)",
 "errors":[" (193:110) Warning: unescaped & which should be written as &amp;"," (18:5) Warning: <link> proprietary attribute \"sizes\"","..."],
 "diff":"@@ -1,35 +1,33 @@\n <!DOCTYPE html>...",
 "url":"http://www.google.com/",
 "result":"<!DOCTYPE html>\n...(Coverted HTML by Tidy)"
}