# Bulk URL Unshortener & Phishing URL Risk Scanner (`godedi/bulk-url-unshortener-phishing-url-risk-scanner`) Actor

Unshorten links, trace full HTTP redirect chains, check live RDAP domain age, and detect phishing or brand typosquatting in bulk. Returns 0-100 risk scores and allow/challenge/block verdicts ready for CSV, JSON, APIs, and AI Agents.

- **URL**: https://apify.com/godedi/bulk-url-unshortener-phishing-url-risk-scanner.md
- **Developed by:** [GoDedi Labs](https://apify.com/godedi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 scanned url results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk URL Unshortener & Phishing URL Risk Scanner

Unshorten links, trace full HTTP redirect chains, verify **Live RDAP Domain Age**, and detect **phishing, scam URLs, and brand typosquatting** in bulk—returning structured **0–100 risk scores** and clear **`allow` / `challenge` / `block`** recommendations ready for CSV, Excel, JSON, APIs, n8n, Make, and AI Agents (MCP).

***

### Why Use This Actor?

- **True Bulk Scanning:** Process hundreds or thousands of URLs and shortlinks in a single run with configurable concurrency and automatic RDAP domain deduplication.
- **Full Redirect Chain & Link Expander:** Unravels 40+ URL shorteners (`bit.ly`, `tinyurl.com`, `t.co`, `rebrand.ly`, `s.id`, `lnkd.in`, etc.) and records every redirect hop (`status`, `location`, `domain`, `content_type`) to reveal the real destination.
- **Live RDAP Domain Age:** Queries live RDAP registries on the final destination domain to catch newly registered phishing domains before static blocklists ever see them.
- **Brand Impersonation & Typosquatting Engine:** Detects lookalike spellings (e.g., `paypa1`), homoglyphs, Punycode (`xn--`), raw IP destinations, `@` credential masking, high-abuse TLDs, and SSRF redirects to private networks.
- **Zero External API Keys Needed:** Runs completely self-contained with fast, low-memory execution and flat export columns built for spreadsheets and automation pipelines.

***

### Input Configuration

| Field | Type | Default | Description |
| :--- | :--- | :---: | :--- |
| **`urls`** *(required)* | Array of strings | — | List of URLs or shortened links to unshorten and scan. |
| **`includeRdap`** | Boolean | `true` | Query live RDAP registries for final domain creation date and age in days. |
| **`maxHops`** | Integer (`1–15`) | `8` | Maximum HTTP redirect hops to follow per URL. |
| **`concurrency`** | Integer (`1–15`) | `5` | Number of URLs processed in parallel. |

#### Example Input JSON

```json
{
  "urls": [
    "[http://stripe.com](http://stripe.com)",
    "[https://cloudflare.com](https://cloudflare.com)",
    "[http://paypa1-secure-login.xyz/verify-account](http://paypa1-secure-login.xyz/verify-account)",
    "[https://github.com](https://github.com)"
  ],
  "includeRdap": true,
  "maxHops": 8,
  "concurrency": 5
}
```

***

### Output Example

Each scanned URL is saved as a structured item in the Apify Dataset (downloadable as **JSON, CSV, Excel, XML, or HTML**):

```json
{
  "input": "[http://paypa1-secure-login.xyz/verify-account](http://paypa1-secure-login.xyz/verify-account)",
  "valid": true,
  "final_url": "[http://paypa1-secure-login.xyz/verify-account](http://paypa1-secure-login.xyz/verify-account)",
  "final_domain": "paypa1-secure-login.xyz",
  "verdict": "high_risk",
  "risk_score": 100,
  "recommended_action": "block",
  "is_shortened": false,
  "was_redirected": false,
  "hop_count": 0,
  "final_http_status": null,
  "https_enforced": false,
  "domain_age_days": null,
  "rdap_created_at": null,
  "registrar": null,
  "risk_codes": "BRAND_IMPERSONATION, INSECURE_HTTP, HIGH_ABUSE_TLD, MULTIPLE_PHISHING_KEYWORDS, UNREGISTERED_OR_DEAD_DOMAIN",
  "latency_ms": 222
}
```

***

### Decision Thresholds (0–100 Risk Score)

| Risk Score | Verdict | Recommended Action | Typical Signals |
| :--- | :--- | :--- | :--- |
| **0–25** | `safe` | `allow` | Established RDAP domain age, HTTPS enforced, clean redirect path, no impersonation. |
| **26–64** | `suspicious` | `challenge` | Newly registered RDAP domain, high-abuse TLD, multi-hop shortener chain, or non-HTTPS destination. |
| **65–100** | `high_risk` | `block` | Brand impersonation, typosquatting, Punycode (`xn--`), raw IP URL, `@` credential masking, or private-network SSRF redirect. |

***

### Common Use Cases

- **SaaS, Chat & Marketplace Safety:** Automatically screen user-submitted links before rendering previews or delivering messages.
- **AI Agents & MCP Workflows:** Give autonomous agents a fast safety guardrail before fetching or clicking unknown URLs.
- **CRM, Email & Threat-Intel Auditing:** Expand bulk shortened links from inbound emails or spreadsheets and export high-risk phishing domains to CSV/Excel.
- **Brand Protection:** Spot lookalike and typosquatting domains targeting major payment, cloud, banking, and e-commerce brands.

# Actor input Schema

## `urls` (type: `array`):

List of URLs or shortlinks to unshorten and scan for phishing risk.

## `includeRdap` (type: `boolean`):

Query live RDAP registries to detect newly registered phishing domains (automatically deduplicated per domain).

## `maxHops` (type: `integer`):

Maximum number of HTTP redirects to follow per URL.

## `concurrency` (type: `integer`):

Number of URLs scanned in parallel.

## Actor input object example

```json
{
  "urls": [
    "http://stripe.com",
    "https://cloudflare.com",
    "http://paypa1-secure-login.xyz/verify-account",
    "https://github.com"
  ],
  "includeRdap": true,
  "maxHops": 8,
  "concurrency": 5
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "http://stripe.com",
        "https://cloudflare.com",
        "http://paypa1-secure-login.xyz/verify-account",
        "https://github.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("godedi/bulk-url-unshortener-phishing-url-risk-scanner").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "http://stripe.com",
        "https://cloudflare.com",
        "http://paypa1-secure-login.xyz/verify-account",
        "https://github.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("godedi/bulk-url-unshortener-phishing-url-risk-scanner").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "http://stripe.com",
    "https://cloudflare.com",
    "http://paypa1-secure-login.xyz/verify-account",
    "https://github.com"
  ]
}' |
apify call godedi/bulk-url-unshortener-phishing-url-risk-scanner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,godedi/bulk-url-unshortener-phishing-url-risk-scanner"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1d9lsdMBbkEa4w9aq/builds/yMdQI5MVyS7wsjuGM/openapi.json
