# Urlhaus Malware Urls Feed Scraper (`coder_zoro/urlhaus-malware-urls-feed-scraper`) Actor

This Actor collects malicious URL feeds and threat intelligence metadata from URLhaus (by abuse.ch) based on recent or currently online feed filters. It extracts malicious URLs, operational statuses, threat tags, malware family classifications, cryptographic file hashes.

- **URL**: https://apify.com/coder_zoro/urlhaus-malware-urls-feed-scraper.md
- **Developed by:** [Zoro](https://apify.com/coder_zoro) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

### URLhaus Malware URLs Feed Scraper — Recent Malware Distribution URL Intelligence

![URLhaus Malware URLs Feed Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/urlhaus-malware-urls-feed-scraper-cover.png)

Collect malware distribution URL records published by URLhaus, a project operated by abuse.ch. Select a Country, TLD, or ASN feed, filter records by URL status or threat classification, and control the maximum number of collected records.

This actor helps security researchers, threat intelligence analysts, and cybersecurity professionals gather structured malware URL indicators for research and analysis.

### Overview

The URLhaus Malware URLs Feed Scraper collects publicly available malware URL records from URLhaus. Users can select feeds based on country, top-level domain (TLD), or Autonomous System Number (ASN).

Each collected record can contain information about the malware distribution URL, its current status, threat classification, hostname, IP address, autonomous system number, and associated country.

The collected information can help users investigate malware distribution infrastructure, research suspicious URLs, and enrich threat intelligence datasets.

### Features

- Collect publicly available malware URL records.
- Choose between Country, TLD, and ASN feeds.
- Filter records by URL status: `online`, `offline`, or `unknown`.
- Search threat classifications using case-insensitive text matching.
- Control the maximum number of collected records using `maxItems`.
- Prioritize the newest available records.
- Collect structured information about malware URLs and their associated hosts.
- Export collected results in JSON, CSV, Excel, and other supported Apify dataset formats.

### Feed Types

| Feed Type | Example Value | Description |
|---|---|---|
| `country` | `US`, `GB`, `DE` | Collects URLs whose hosting IP addresses are associated with the selected country. |
| `tld` | `com`, `org`, `ru` | Collects URLs associated with the selected top-level domain. |
| `asn` | `13335`, `54113` | Collects URLs whose hosting IP addresses belong to the selected autonomous system. |

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `feedType` | String | No | `country` | Selects the feed category: `country`, `tld`, or `asn`. |
| `feedValue` | String | No | `US` | Specifies the country code, top-level domain, or ASN matching the selected feed type. |
| `status` | String | No | Empty (All) | Filters records by URL status: `online`, `offline`, or `unknown`. Leave empty to include all statuses. |
| `threat` | String | No | Empty | Filters records using a case-insensitive substring match against the threat classification. |
| `maxItems` | Integer | No | `100` | Maximum number of URL records to collect. Returns the newest matching records first. Maximum: `1000`. |
| `userAgent` | String | No | `ActorResearch/1.0` | Specifies the User-Agent value used during collection. |
| `timeoutSecs` | Integer | No | `300` | Overall collection timeout in seconds. |
| `requestTimeoutSecs` | Integer | No | `60` | Individual request timeout in seconds. |
| `requestDelaySecs` | Number | No | `1` | Delay between requests in seconds. |

### Example Input

```json
{
    "feedType": "country",
    "feedValue": "US",
    "status": "online",
    "maxItems": 50
}
```

### What Data Does This Actor Extract?

The actor returns structured malware URL records with the following fields:

| Field | Description |
|---|---|
| `dateAdded` | Date and time when the URL was added, in UTC. |
| `url` | Malware distribution URL. |
| `urlStatus` | Current URL status: `online`, `offline`, or `unknown`. |
| `threat` | Threat classification associated with the URL, when available. |
| `host` | Hostname or IP address associated with the URL. |
| `ipAddress` | Resolved IP address of the host. |
| `asNumber` | Autonomous System number associated with the IP address. |
| `country` | Geo-IP country code associated with the host. |
| `urlhausReference` | URLhaus reference link for looking up the collected URL. |

### Example Output

```json
{
    "dateAdded": "2026-11-21 17:43:17",
    "url": "http://68.235.251.87:43448/i",
    "urlStatus": "online",
    "threat": "malware_download",
    "host": "68.235.251.87",
    "ipAddress": "68.235.251.87",
    "asNumber": "14615",
    "country": "US",
    "urlhausReference": "https://urlhaus.abuse.ch/browse.php?search=http%3A%2F%2F68.235.251.87%3A43448%2Fi"
}
```

### Use Cases

- **Threat Intelligence Enrichment:** Add malware URL indicators to existing cybersecurity research datasets.
- **Blocklist Research:** Identify online malware distribution URLs for security review and potential blocking.
- **Malware Analysis:** Gather malware-related URL records for investigation and threat research.
- **Threat Monitoring:** Schedule recurring collections to monitor changes in available malware URL records.
- **Security Data Collection:** Export structured malware URL information for further analysis and reporting.
- **Infrastructure Investigation:** Examine associated hostnames, IP addresses, countries, and autonomous system numbers.

### Working with Your Dataset

After the actor completes:

1. Open the **Dataset** tab in your Apify run.
2. Review the collected URLhaus malware URL records.
3. Export the results in JSON, CSV, Excel, or another supported format.
4. Use the collected indicators in your threat intelligence research and security analysis workflows.

**Security recommendation:** Treat collected malware URLs as potentially dangerous indicators. Do not open or execute them directly on ordinary devices.

### FAQ

**Do I need an account key to collect records?**

No. The actor collects information from publicly available URLhaus feeds.

**Which feed types are available?**

You can choose between three feed types:

- `country` — Country-specific records.
- `tld` — Top-level-domain-specific records.
- `asn` — Autonomous-system-specific records.

**Can I filter URLs by status?**

Yes. Set `status` to `online`, `offline`, or `unknown` to collect records matching the selected status. Leave it empty to include all statuses.

**Can I filter records by threat classification?**

Yes. Enter a value in `threat` to match threat classifications containing that text. Matching is case-insensitive.

**What information does each record contain?**

Records can include the malware URL, date added, URL status, threat classification, hostname, IP address, autonomous system number, country, and URLhaus reference link.

**Can I control the maximum number of results?**

Yes. Use `maxItems` to specify the maximum number of records to collect. The default is `100`, and the maximum supported value is `1000`.

**Why might the actor return fewer records than requested?**

The number of returned records depends on the available feed data and the filters selected.

**Can I schedule recurring collections?**

Yes. You can configure an Apify schedule to collect malware URL records periodically.

### Disclaimer

This actor is an independent tool and is not affiliated with or endorsed by URLhaus or abuse.ch. The collected information is intended for threat intelligence research and security analysis. Handle malware indicators carefully and ensure that your use of the collected data complies with applicable laws and relevant source terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `feedType` (type: `string`):

Which public URLhaus feed to pull. These feeds require NO Auth-Key and NO API key. Country = all malware URLs whose host resolves to an IP in that country; TLD = all URLs under a top-level domain; ASN = all URLs whose host resolves to an IP in that autonomous system.

## `feedValue` (type: `string`):

The slice to fetch, matching the feed type. Country: 2-letter ISO code (US, GB, DE). TLD: a top-level domain without the dot (com, org, ru). ASN: a numeric AS number (13335, 54113).

## `status` (type: `string`):

Optional filter on url_status. Leave as All to keep every record.

## `threat` (type: `string`):

Optional. Keep only records whose threat contains this value (case-insensitive), e.g. malware_download.

## `maxItems` (type: `integer`):

Keep this many of the newest URL rows. Hard max is 1000. Feeds can contain hundreds of thousands of rows, so this caps the output.

## `userAgent` (type: `string`):

Identify your scraper.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds. Feeds can be large; raise this if downloads time out.

## `requestDelaySecs` (type: `number`):

Pause between requests. URLhaus asks that feeds are not fetched more often than every 10 minutes.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. The public URLhaus feeds usually work without a proxy.

## Actor input object example

```json
{
  "feedType": "country",
  "feedValue": "US",
  "status": "",
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 60,
  "requestDelaySecs": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "feedValue": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("coder_zoro/urlhaus-malware-urls-feed-scraper").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 = { "feedValue": "US" }

# Run the Actor and wait for it to finish
run = client.actor("coder_zoro/urlhaus-malware-urls-feed-scraper").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 '{
  "feedValue": "US"
}' |
apify call coder_zoro/urlhaus-malware-urls-feed-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coder_zoro/urlhaus-malware-urls-feed-scraper"
        }
    }
}
```

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/sXuBgVPtbx8Rxcc3l/builds/6y8AEAg8xq3kpuA1y/openapi.json
