← Back to Documentations

URL Security API

Check URL format, local domain blacklist matches, suspicious parameters, and phishing-like patterns.

V1

/api/v1

First stable version for local URL security checks.

POST /api/v1/url-security/check Auth Required
Check URL Security

Checks whether the URL format is valid, whether the domain matches a local blacklist, whether query parameters look suspicious, and whether phishing-like URL patterns are present.

Authentication
X-Api-Key: your_api_key
Body Parameters
Name Type Required Example Description
url string required https://example.com/products?id=123 Absolute HTTP or HTTPS URL to check.
Request Example
POST /api/v1/url-security/check
Content-Type: application/json
X-Api-Key: your_api_key

{
  "url": "https://example.com/products?id=123"
}
Response Example
{
    "success": true,
    "message": "URL security checked successfully.",
    "data": {
        "analyzed_url": "https://example.com/products?id=123",
        "domain": "example.com",
        "scheme": "https",
        "risk_score": 0,
        "risk_level": "safe",
        "is_potentially_unsafe": false,
        "checks": {
            "is_valid_format": true,
            "uses_https": true,
            "is_blacklisted_domain": false,
            "has_suspicious_parameters": false,
            "has_phishing_pattern": false
        },
        "blacklist": {
            "is_blacklisted": false,
            "matched_domain": null
        },
        "suspicious_parameters": [],
        "phishing_patterns": [],
        "findings": [],
        "note": "This endpoint performs local heuristic checks only. It does not crawl the URL or query external threat-intelligence feeds."
    }
}
Error Response
{
    "success": false,
    "message": "The url field is required.",
    "error_code": "VALIDATION_ERROR"
}