Skip to content

The Malware & Phishing URL Scanner API helps developers, security platforms, and email providers detect unsafe, suspicious, or malicious URLs. It combines VirusTotal threat intelligence with local heuristics (WHOIS, SSL validity, domain age, suspicious keywords) to give reliable results.

License

Notifications You must be signed in to change notification settings

dakidarts/malware-scanner-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Malware & Phishing URL Scanner API

πŸš€ Overview

The Malware & Phishing URL Scanner API helps developers, security platforms, and email providers detect unsafe, suspicious, or malicious URLs. It combines VirusTotal threat intelligence with local heuristics (WHOIS, SSL validity, domain age, suspicious keywords) to give reliable results.

Malware & Phishing URL Scanner API


πŸ”‘ Authentication

All requests must include your RapidAPI key in the header:

"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
"x-rapidapi-host": "malware-scanner-api.p.rapidapi.com"

πŸ“‘ Endpoints

1. Scan a URL

Endpoint:

GET /scan
POST /scan

Description: Analyze a given URL and return its safety status with reasons.

Request Parameters:

Parameter Type Required Description
url string Yes The URL to analyze (must be valid, e.g. https://example.com)

βœ… Example Requests

GET Example

curl -X GET "https://malware-scanner-api.p.rapidapi.com/scan?url=https://example.com" \
  -H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
  -H "x-rapidapi-host: malware-scanner-api.p.rapidapi.com"

POST Example

curl -X POST "https://malware-scanner-api.p.rapidapi.com/scan" \
  -H "Content-Type: application/json" \
  -H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
  -H "x-rapidapi-host: malware-scanner-api.p.rapidapi.com" \
  -d '{"url": "https://suspicious-login.com"}'

Example Response (Safe URL)

{
  "success": true,
  "input": "https://google.com",
  "analysis": {
    "status": "safe",
    "reason": "No suspicious indicators found",
    "cached": false
  }
}

Example Response (Suspicious / Malicious URL)

{
  "success": true,
  "input": "http://suspicious-login.com",
  "analysis": {
    "status": "suspicious",
    "reason": "Flagged suspicious by 3 engines",
    "cached": true
  }
}

⚠️ Error Responses

Status Reason
400 Missing or invalid URL parameter
500 Internal server error (WHOIS / VirusTotal failure)

Example Error

{
  "success": false,
  "error": "Invalid URL format"
}

πŸ›‘οΈ Features

  • VirusTotal Threat Intel β†’ Real-time analysis against 70+ AV engines
  • WHOIS Check β†’ Detect newly registered domains often used in phishing
  • SSL Certificate Check β†’ Identifies invalid/missing SSL
  • Suspicious Keyword Detection β†’ Flags URLs containing risky words (login, bank, secure)

About

The Malware & Phishing URL Scanner API helps developers, security platforms, and email providers detect unsafe, suspicious, or malicious URLs. It combines VirusTotal threat intelligence with local heuristics (WHOIS, SSL validity, domain age, suspicious keywords) to give reliable results.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published