The following example shows an HTTP request to check a URL:
POST /api/v3.0/checkurl HTTP/1.0 Content-Type: application/octet-stream Content-Length: 50
{ "timeout": "10000", "url": "http:\/\/ } |
The following example shows the corresponding response:
HTTP/1.0 200 OK Connection: close Content-Type: text/plain Server: KAVHTTPD/1.0 X-KAV-ProtocolVersion: 3 Date: Wed, 30 Jan 2019 16:15:44 GMT Content-Length: 104
{ "url": "http:\/\/ "scanResult": "DETECTED", "detectionName": "PHISHING_URL" } |
where:
url
is the URL that was checked.scanResult
is the scan result and can have the following values:CLEAN
DETECTED
DISINFECTED
DELETED
NON_SCANNED
SERVER_ERROR
detectionName
is the name of the detected malicious object in the Kaspersky Lab classification system. It can have one of the following values:PHISHING_URL
MALICIOUS_URL
ADWARE_URL
RISKWARE_URL