Production-grade Python SDK for Zora AI URL phishing detection APIs
Project description
zora-ai-url-sdk
Production-grade async Python SDK for the Zora AI URL Phishing Detection API.
Features
- Analyse any URL for phishing / fraud risk
- Deep pipeline: static URL features, domain WHOIS, TLS, homoglyph, Playwright sandbox, cookies, behavioral heuristics, fingerprint beacons, and fused ML model
- Optional LLM-powered explanation with key indicators and recommendations
- Rich result dataclass with risk scores, risk components, pipeline checks, and all feature dictionaries
- Automatic retries with exponential back-off
- Async-first (
httpx) withasync with/aclose()support
Installation
pip install -e packages/url_package # editable local install
Quick Start
import asyncio
from zora_ai_url import ZoraAIURLClient, URLAnalyzer
async def main():
async with ZoraAIURLClient(api_key="zora_...") as client:
analyzer = URLAnalyzer(client)
result = await analyzer.analyze(
"https://secure-login.totally-real-bank.xyz/verify",
with_llm_explanation=True,
)
print(result.risk_score, result.risk_level, result.phishing_probability)
print(result.llm_explanation)
asyncio.run(main())
URLAnalysisResult fields
| Field | Type | Description |
|---|---|---|
request_id |
str | None |
UUID of the stored analysis |
url |
str |
Normalized URL that was analyzed |
phishing_probability |
float |
0–1 ML phishing probability |
risk_score |
float |
0–1 composite risk score |
risk_level |
str |
Low, Medium, High, Critical |
model |
str |
Model used for prediction |
risk_components |
dict |
url_score, content_score, cookie_score, infra_score, behavior_score |
pipeline_checks |
dict |
Which analysis phases ran successfully |
llm_enhanced |
bool |
Whether LLM explanation was generated |
llm_explanation |
str | None |
Human-readable explanation |
llm_label |
str | None |
LLM verdict label |
llm_confidence |
float | None |
LLM confidence |
llm_key_indicators |
list[str] |
Key phishing indicators found |
llm_recommendations |
list[str] |
Safety recommendations |
url_features |
dict |
Static URL features |
domain_features |
dict |
WHOIS / domain intelligence |
tls_features |
dict |
TLS certificate analysis |
homoglyph_features |
dict |
Homoglyph / typosquatting detection |
sandbox_features |
dict |
Playwright sandbox results |
cookie_features |
dict |
Cookie risk analysis |
phishing_behavior_features |
dict |
Behavioral heuristic signals |
fingerprint_beacon_features |
dict |
Fingerprint / beacon detection |
fused_features |
dict |
Feature-fusion engine output |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zora_ai_url_sdk-0.1.0.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zora_ai_url_sdk-0.1.0.tar.gz.
File metadata
- Download URL: zora_ai_url_sdk-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66627db9cf9405ebae3e45f57d8ed65f43a048395c9ec69547fa7a1605cf24d7
|
|
| MD5 |
dd98c5e91cd3312c79f05e8dc82ad819
|
|
| BLAKE2b-256 |
30d1e4d7509e73d8d92f76b52ce9230fb8f292ae20e9cbf2eafacada873bee51
|
File details
Details for the file zora_ai_url_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zora_ai_url_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc5ebb2795fb9d83ffd07bba17a4033f9aa56e5a721653a863f5773504655960
|
|
| MD5 |
5bb8e0b2b70db631fa8aa4ba93f20353
|
|
| BLAKE2b-256 |
15d29e05e79d66fd642a3f9c9fe61aa00557cb2d635caf3e9273793699c031f5
|