API Reference
Scan URLs against global threat feeds with a single POST request. The API is free to use for public testing — no API key required.
Base URL
Quick test with cURL:
curl -X POST https://phisherman-5r1o.onrender.com/api/check \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Authentication
No authentication is required for basic public use. For higher rate limits you can use an API key.
Using an API key
Pass your key as a Bearer token in the Authorization header:
curl -X POST https://phisherman-5r1o.onrender.com/api/check \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ph_<your_key>" \
-d '{"url": "https://example.com"}'Key format
API keys use a ph_ prefix followed by 48 random bytes (base64-encoded). Keys are hashed with SHA-256 before storage and cannot be retrieved after creation.
Tiers
| Tier | Rate limit | Best for |
|---|---|---|
| Free | 3 / day | Personal use, testing |
| Pro | 50 / day | Small teams, hobby projects |
| Enterprise | 100 / day | Production deployments |
Get a key in seconds — request an API key.
Check a URL
Submit a URL to be checked against multiple threat intelligence feeds. The API returns a verdict, a risk score, and a list of reasons if the URL was flagged.
Code examples
Use the API from any programming language. Here are examples for common languages.
Authenticated: Add "Authorization": "Bearer ph_<key>" to the headers for higher rate limits.
Responses
Verdicts
| Verdict | Score range | Description |
|---|---|---|
| Safe | 0 - 39 | No threats detected. The URL appears clean. |
| Suspicious | 40 - 69 | Anomalies detected. Exercise caution. |
| Phishing | 70 - 100 | Confirmed malicious. Access should be blocked. |
Error codes
| Status | Code | Description |
|---|---|---|
| 200 | OK | Scan completed successfully |
| 400 | Bad Request | Invalid JSON or missing url field |
| 422 | Unprocessable | URL failed validation (invalid format) |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Server Error | Internal server error |
Rate limiting
The API enforces rate limits to ensure fair usage for everyone. Limits are based on your IP address for unauthenticated requests and on your key tier for authenticated requests. Windows reset every 24 hours.
| Auth | Requests / day |
|---|---|
| None (IP-based) | 1 |
| Free key | 3 |
| Pro key | 50 |
| Enterprise key | 100 |
Rate limit headers are returned with every response:X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
PR Scanning
Automatically scan URLs in pull requests using the Phisherman GitHub Action. Add the following workflow to your repository.
Add PHISHING_API_URL ( https://phisherman-5r1o.onrender.com/api ) to your repository secrets, plus PHISHING_API_KEY for higher rate limits. The action will scan all URLs in the PR body and comments, and fail the check if any are flagged as phishing.
Threat sources
Phisherman aggregates data from multiple threat intelligence feeds to provide accurate verdicts.
| Source | Update frequency |
|---|---|
| URLHaus (abuse.ch) | Every 5 minutes |
| PhishTank | Every 1 hour |
| OpenPhish | Every 15 minutes |
| Google Web Risk | Real-time |
Heuristics
In addition to threat feeds, Phisherman runs heuristic checks to detect newly registered or obfuscated phishing URLs that may not yet appear in any feed.
| Check | Description |
|---|---|
| Domain age | Flags domains registered within the last 90 days |
| URL entropy | Flags URLs over 200 characters (common obfuscation) |
| Credential traps | Detects @ signs and other credential-harvesting patterns |
| Keyword matching | Matches against known phishing-related keywords |
| DNS rebinding | Dual-resolution check to detect rebinding attacks |
| SSRF protection | Blocks requests to private IP ranges and loopback |