Analyze a URL's structure for phishing/typosquatting risk signals. $0.01 per request.
Send a URL, get back a risk score and specific structural red flags — typosquatting, lookalike characters, credential-harvesting patterns — based purely on the URL's structure, no external reputation database needed.
| Method | POST |
|---|---|
| Path | /analyze |
| Content-Type | application/json |
| field | required | description |
|---|---|---|
url | yes | The URL to analyze |
curl -X POST https://url-risk-analyzer.pdfextractapi.workers.dev/analyze \
-H "Content-Type: application/json" \
-d '{"url": "https://paypa1-secure-login.xyz/verify-account"}'
{
"url": "https://paypa1-secure-login.xyz/verify-account",
"risk_score": 88,
"verdict": "high_risk",
"flags": ["typosquatting", "credential_harvesting_pattern"],
"summary": "Misspells a known brand name and mimics a login/verification page on an unrelated domain."
}
Errors return a non-200 status with { "error": { "code": "...", "message": "..." } }. Common codes: missing_url, invalid_url.
This endpoint is paid per-request via the x402 protocol (HTTP 402 + USDC). Unpaid requests receive a 402 response with payment instructions.