---
name: analyze-url
type: instructions
description: Passively analyze any URL for phishing signals - stored verdict, live URL-shape heuristics, and apex history - without ever contacting the URL.
---

# Analyze a URL

## Purpose
Given an arbitrary URL, find out whether phishunt already knows about it and how
suspicious it looks based on URL shape alone (brand impersonation, typosquat/
homograph distance, TLD abuse, PaaS hosting, clone-intent tokens).
**The target URL is never contacted** - this is passive analysis only, safe to
run against untrusted/unclicked links. Unknown domains that look suspicious are
queued for full pipeline analysis.

## Endpoint
```
GET https://phishunt.io/api/v1/analyze?url=<url>
```

## Parameters
- `url` - the URL to analyze (required). Must be `http` or `https`, max 2048 characters.

## Privacy
The full URL (path and query) is transmitted and logged, and may be fetched later if the domain gets queued for analysis - pass a bare domain, or use `check_domain`, when it carries tokens or credentials. Queries are also logged to recalibrate the probability model: host, path (no query string, fragment or userinfo), scores, verdict and probability, kept 90 days.

## Response shape
- `query` - parsed url/host/normalized_host/apex.
- `known` - `in_active_feed`, `previously_active`, `in_new_registration_feed`, and a `record` (brand, score, verdict, sources, top_signals, service_range) if phishunt has a stored detection, else `null`. `record.service_range` is `null` or `{ip, best, also, note}`: the official provider IP range (`prefix`, `provider`, `service`, `region`, `kind`) that contains the IP of the record. It describes the network, not the indicator, and it is not a verdict.
- `live_analysis` - `brand_match`, `kw_score`, `impersonation`, `url_signals` (homograph, TLD abuse, clone intent, leet-fold brand match `leet_brand`, etc.), `path_signals`, `url_risk_score` (0-100), `url_risk` (`minimal`|`low`|`medium`|`high`), `why` (top-5 score contributors, consistent with `url_risk_score`).
- `history` - `apex_prior_detections` (stored rows with verdict medium/high/critical), `apex_candidates_seen` (all stored rows), `scope` (`apex`, or `host` for shared hosting and trusted platforms) and brands targeted.
- `action` - whether this request queued the URL for full analysis, and `reason` (why it did or did not).
- `external_feeds` - whether the apex is listed in OpenPhish/PhishTank/TweetFeed, `listed_scope` (`host` = the analyzed host itself, `apex` = only another host of the same apex), plus `status` (`ok`|`stale`|`missing`) and `feeds_ok` for the freshness of that local cache.
- `verdict` (`phishing`|`likely_phishing`|`suspicious`|`no_evidence`|`not_assessed`), `verdict_confidence`, `verdict_basis` - the single adjudicated call; read it first. **`no_evidence` is not "clean"**: it means nothing here points to phishing.
- `probability` - a calibrated estimate that the host is malicious, for a typical URL sent to this API (base rate about 1.3%): `p_malicious`, `percent`, `interval_80`, `band`, `relative_risk`, `coverage`, `evidence`, `not_evaluated`. Passive estimates stay low by design (the page is not fetched; phishing with no brand in the URL is invisible here). A low probability is not a statement that a site is safe: use `analyze-url-deep` for more evidence.
- `meta` - `analyzed_at`, `passive_only: true`, `license: "CC0-1.0"`.

## Example
```bash
curl -sf 'https://phishunt.io/api/v1/analyze?url=https://amazon-secure-login.example.com/signin' | jq '.verdict, .probability.band, .live_analysis.url_risk, .known.in_active_feed'
```

## Errors
- HTTP 400 with `{"error": "..."}` if `url` is missing, not http/https, over 2048 characters, or has a host that cannot exist in DNS (over 253 characters, a label over 63, an empty label, invalid IDNA).
- HTTP 405 for non-GET requests.
- HTTP 429 if rate limited.
