🚀 PhishGuard is live! We're improving daily, results are good but always double-check critical decisions. Share feedback →

Phishing Detection API, Free URL Scanner (REST + JSON)

Integrate phishing detection into your apps, bots, or security pipelines. Free tier: 500 requests/day.

API Key Auth Webhooks 500 req/day free HTTPS only

Plans

PlanPriceDaily LimitWebhooksSupport
Free₹0500 req/dayUp to 3Community
ProComing soon50,000 req/dayUp to 20Email
EnterpriseContact usUnlimitedUnlimitedPriority

Get Your Free API Key

API keys require a verified PhishGuard account, this keeps free-tier access from being handed out anonymously.

Quick Start

Analyze a URL (replace YOUR_KEY):

curl -X POST https://phishguard.in/api/analyze-url \ -H "X-API-Key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example-suspicious.tk/verify"}'

Python example:

import requests API_KEY = "YOUR_KEY" URL_TO_SCAN = "https://example-suspicious.tk/verify" response = requests.post( "https://phishguard.in/api/analyze-url", headers={"X-API-Key": API_KEY, "Content-Type": "application/json"}, json={"url": URL_TO_SCAN} ) result = response.json() print(f"Risk Level: {result['risk_level']}") print(f"Risk Score: {result['risk_score']}/100")

API Endpoints

POST /scan, check a single URL

Submit a URL and receive a phishing risk score along with the signals that contributed to it, in JSON.

GET /report/:id, retrieve scan result

Fetch the full result of a previously submitted scan using its report ID.

GET /history, list past scans

Retrieve a paginated list of your account's previous scan requests and their results.

Request/response schema

All endpoints accept and return JSON. See the field reference below for request parameters and response shape.

Rate-limit headers explained

Every response includes rate-limit headers showing your remaining quota and reset time, so you can build backoff logic into your integration.

Error codes reference

Standard HTTP status codes are used throughout, 429 for rate limits, 401 for invalid API keys, 400 for malformed requests.

Webhook signature verification

Webhook payloads are signed so you can verify they genuinely came from PhishGuard before acting on them.

POST/api/analyze-url

Analyze a URL for phishing. Returns risk level, score, and detailed breakdown.

{"url": "https://example.com"}

POST/api/check-ssl

Check SSL certificate validity and details for a domain.

{"domain": "example.com"}

POST/api/dns-lookup

Get DNS records (A, AAAA, MX, NS, TXT, CNAME), SPF and DMARC presence.

{"domain": "example.com"}

POST/api/expand-link

Trace redirect chain of a shortened/redirect URL.

{"url": "https://bit.ly/xyz"}

POST/api/ip-reputation

Get geolocation and proxy/hosting reputation for an IP or domain.

{"ip": "1.2.3.4"}

POST/api/website-age

Check domain registration age via WHOIS.

{"domain": "example.com"}

GET/api/developer/usage

Check your API key usage stats.

POST/api/webhooks

Register a webhook to receive alerts when HIGH or SUSPICIOUS URLs are detected.

{"url": "https://your-server.com/webhook"}

DELETE/api/webhooks/{id}

Remove a webhook.

Webhooks

Register a webhook to get notified whenever PhishGuard detects a HIGH or SUSPICIOUS URL. We'll POST to your URL with a signed payload.

Verify webhook authenticity using the X-PhishGuard-Signature header:

import hmac, hashlib def verify_webhook(payload_body: bytes, signature_header: str, secret: str) -> bool: expected = "sha256=" + hmac.new( secret.encode(), payload_body, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected, signature_header)

Example webhook payload:

{ "event": "url_scanned", "risk_level": "HIGH", "risk_score": 87, "url": "https://paypal-secure-verify.tk/login", "domain": "paypal-secure-verify.tk", "category": "Brand Impersonation", "timestamp": "2026-02-21T12:34:56Z" }

Rate Limits

EndpointLimit
/api/analyze-url30 req/min
/api/check-ssl20 req/min
/api/dns-lookup20 req/min
/api/expand-link30 req/min
/api/ip-reputation20 req/min
/api/website-age20 req/min
All endpoints200 req/hour global

HTTP 429 is returned when limits are exceeded. Retry after the indicated time.

PhishGuard Developer API: Frequently Asked Questions

Integration guides, rate limits, JSON payloads, and technical architecture details for PhishGuard's free cybersecurity REST API.

Is PhishGuard's URL scanning API free to use?

Yes. PhishGuard provides a free developer tier offering 500 requests per day and 30 requests per minute with no paid subscription required. Developers can test single-URL endpoints immediately without waiting for API key approval.

What data does the PhishGuard API return?

The API returns a structured JSON payload containing a normalized URL, a numerical risk score (0 to 100), a risk level (SAFE, SUSPICIOUS, HIGH, or CRITICAL), a list of triggered security rules, SSL certificate details, domain age, WHOIS registrar data, and detected brand impersonation signals.

Can I use the PhishGuard API inside a browser extension or mobile app?

Yes. PhishGuard enables Cross-Origin Resource Sharing (CORS) across its REST endpoints, allowing direct asynchronous integration into Chrome/Firefox extensions, React Native or Flutter mobile applications, and client-side web dashboards.

How do I integrate PhishGuard into a Python application?

You can send an HTTP POST request to https://www.phishguard.co.in/api/analyze-url using Python's standard requests library with a JSON body such as {'url': 'https://suspicious-link.example'}. The API returns the forensic analysis and risk score as JSON in under 3 seconds.

What are the rate limits for the free API tier?

The free API tier permits 500 total requests per day, up to 30 requests per minute, and up to 10 URLs per request when using the batch analysis endpoint. Rate limit statuses are communicated in standard HTTP response headers.

Does PhishGuard provide a batch URL scanning endpoint?

Yes. The endpoint at /api/analyze-batch accepts a JSON array containing up to 10 URLs per request. It runs parallel forensic checks across all submitted URLs and returns individual risk verdicts in a single consolidated response.

How does the API handle URLs with tracking parameters or authentication tokens?

PhishGuard performs structural normalization, canonical domain extraction, and parameter sanitation before running heuristic and domain reputation checks. Session tokens and private tracking query parameters are stripped during internal analysis to safeguard user privacy.

Can fintech platforms and payment gateways use PhishGuard as a security check?

Yes. Fintech applications, payment gateways, and community chat platforms integrate PhishGuard as an automated pre-flight security check to screen user-submitted payment links, QR destinations, and merchant websites before financial transactions occur.

What programming languages and frameworks are supported?

Because PhishGuard is built as an open REST API with standard JSON inputs and outputs, it supports every programming environment capable of making HTTPS calls, including Python, Node.js, Go, Java, PHP, C#, Ruby, and shell scripts using curl.

How do developers obtain an API key?

Developers can register for a free account at phishguard.co.in/signup. Once email verification is complete, an API key with 500 requests per day can be generated directly from the user dashboard.

Does the API offer responses in regional Indian languages?

Currently, the API returns technical keys and analysis summaries in English. The categorical risk levels (SAFE, SUSPICIOUS, HIGH, and CRITICAL) are standardized across all endpoints for simple integration into localized user interfaces.

What machine learning models power the PhishGuard API?

PhishGuard utilizes an XGBoost classifier trained specifically on Indian phishing datasets and brand impersonation patterns, combined with 55+ heuristic rules, DNS verification, and WHOIS domain age evaluation for an overall detection accuracy of 96.75%.