curl --request POST \
--url https://api.webacy.com/url \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "https://app.uniswap.org/swap"
}
'import requests
url = "https://api.webacy.com/url"
payload = { "url": "https://app.uniswap.org/swap" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://app.uniswap.org/swap'})
};
fetch('https://api.webacy.com/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.webacy.com/url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://app.uniswap.org/swap'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.webacy.com/url"
payload := strings.NewReader("{\n \"url\": \"https://app.uniswap.org/swap\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.webacy.com/url")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://app.uniswap.org/swap\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.webacy.com/url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://app.uniswap.org/swap\"\n}"
response = http.request(request)
puts response.read_body{
"riskLevel": "low",
"description": "This URL is known as a safe project address.",
"message": "Wrong response? Please report: https://forms.gle/4ievDbQDqRgrHcRV9"
}{
"message": "Unauthorized"
}{
"x402Version": 1,
"error": "payment required"
}{
"message": "Payment service temporarily unavailable"
}Get risk analysis of a URL
Analyze a URL for phishing, malware, and other security threats
curl --request POST \
--url https://api.webacy.com/url \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "https://app.uniswap.org/swap"
}
'import requests
url = "https://api.webacy.com/url"
payload = { "url": "https://app.uniswap.org/swap" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://app.uniswap.org/swap'})
};
fetch('https://api.webacy.com/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.webacy.com/url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://app.uniswap.org/swap'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.webacy.com/url"
payload := strings.NewReader("{\n \"url\": \"https://app.uniswap.org/swap\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.webacy.com/url")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://app.uniswap.org/swap\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.webacy.com/url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://app.uniswap.org/swap\"\n}"
response = http.request(request)
puts response.read_body{
"riskLevel": "low",
"description": "This URL is known as a safe project address.",
"message": "Wrong response? Please report: https://forms.gle/4ievDbQDqRgrHcRV9"
}{
"message": "Unauthorized"
}{
"x402Version": 1,
"error": "payment required"
}{
"message": "Payment service temporarily unavailable"
}Authorizations
Body
A JSON object containing a single URL string to be analyzed for potential risks.
The URL or domain to check, with or without a scheme, path or query (e.g. uniswap.org or https://app.uniswap.org/swap). The verdict is for its host; www. and any port are ignored.
"https://app.uniswap.org/swap"
Response
Success - Returns an assessment of the URL's safety score, including blacklist and maliciousness checks.
high: a known phishing or blocklisted site, from Webacy's database or a real-time phishing feed. A subdomain takes its registered domain's verdict when it has none of its own (login.<phishing domain> is high, app.aave.com is low). medium: not listed, but similar to a known project's domain, a possible impersonation. low: a known project's site. unknown: no verdict, including pages on shared hosting such as sites.google.com/view/…, where the platform's reputation says nothing about the page.
low, medium, high, unknown Human-readable explanation of the verdict.
Where to report a wrong verdict.
