http://localhost/api/v1/url/check
scope: url.check
Checks a URL and its host against URL and domain blacklists (phishing/malware feeds) and DNS resolvability.
| Field | Type | Optional | Description |
|---|---|---|---|
url |
string | Required | Must be http:// or https://. |
curl "http://localhost/api/v1/url/check?url=https%3A%2F%2Fexample.com%2Fpath" \
-H "Authorization: Bearer wsk_xxx_xxx"
<?php
$ch = curl_init('http://localhost/api/v1/url/check?url=https%3A%2F%2Fexample.com%2Fpath');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer wsk_xxx_xxx']);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
import requests
response = requests.get("http://localhost/api/v1/url/check",
headers={"Authorization": "Bearer wsk_xxx_xxx"},
params={"url": "https://example.com/path"},
)
data = response.json()
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "http://localhost/api/v1/url/check?url=https%3A%2F%2Fexample.com%2Fpath", nil)
req.Header.Set("Authorization", "Bearer wsk_xxx_xxx")
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
respBody, _ := io.ReadAll(resp.Body)
fmt.Println(string(respBody))
}
{
"data": {
"url": "https://example.com/path", "host": "example.com",
"is_valid": true, "has_dns": true,
"is_url_blacklisted": false, "is_domain_blacklisted": false,
"is_phishing": false,
"fraud_score": 0, "risk_score": 0,
"reasons": ["No risk signals detected"]
}
}