# Website Industry Classifier & Domain Categorizer (`codescraper/website-industry-classifier`) Actor

Instantly categorize B2B leads and clean your CRM data! This lightning-fast AI scraper determines the exact industry, business model (B2B/B2C), and summary of any company domain at massive scale. Built-in unlimited AI—no API keys required. Pay only for successful results.

- **URL**: https://apify.com/codescraper/website-industry-classifier.md
- **Developed by:** [CodeScraper](https://apify.com/codescraper) (community)
- **Categories:** Lead generation, AI, Automation
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 classification successes

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ⭐ Website Industry Classifier & Domain Categorizer

This Apify Actor is a **blazing-fast, laser-focused domain enrichment tool** designed exclusively to determine the exact industry, business model (B2B/B2C), and executive summary of any company website using advanced AI.

By stripping away heavy browser rendering and utilizing an intelligent "Never Miss" routing system (which automatically hunts down `/about` pages if a homepage is empty), this tool delivers highly accurate CRM data at unprecedented speeds.

> 💲 **Pricing Note:** This Actor operates on a **predictable flat-rate Pay-Per-Event (PPE)** model.
>
> - **Flat Rate:** $0.004 per domain processed.
> - **No API Keys Required:** We cover the AI costs! You do not need to provide your own OpenAI or Groq API keys. Just input your URLs and get results.
> - *Example: Classifying 1,000 company websites will cost exactly $4.00.*

***

### 🚀 What It Does

For every website URL or domain provided, the actor extracts the core text of the site and passes it through an advanced Large Language Model (LLM) to generate a structured, standardized business profile.

#### 🏢 Extracted Data

The actor outputs a perfectly clean dataset containing only what you need:

- **🔗 URL & Domain:** The normalized target website.
- **🏷️ Brand Name:** The extracted name of the company.
- **🏢 Industry:** The specific market sector of the business.
- **🤝 Business Model:** A boolean flag indicating if the company is `B2B` (Business-to-Business) or `B2C` (Business-to-Consumer).
- **📝 Summary:** A concise, 1-sentence AI-generated summary of what the company actually does.

***

### 🧠 Smart AI Models Included

You can choose the specific AI model that powers your classification directly from the input settings. **No API key required.**

- 🥇 **openai/gpt-oss-120b (Most Capable):** Highest reasoning capability. Best for complex or confusing websites.
- 🥈 **openai/gpt-oss-20b (Recommended):** Blazing fast. Perfectly balances speed and accuracy for mass processing.
- 🥉 **qwen/qwen3.6-27b (Alternative):** Excellent alternative with very strong multilingual support for non-English sites.
- 🚀 **groq/compound & compound-mini:** High-speed experimental models optimized for short text bursts.

***

### 🏢 Predefined Industries (Standardized B2B List)

In the Actor's input, you can optionally provide a list of **Predefined Industries**.

- **If you leave it blank:** The AI will evaluate the website and invent an industry category it thinks fits best.
- **If you provide a list:** The AI is forced to map the website to one of *your* exact categories.

To ensure your CRM data remains clean and matches platforms like LinkedIn, Apollo, or Lead411, you can copy and paste categories from this standardized list of **113 B2B Industries** into the Actor's input:

```text
Accounting
Aerospace & Defense
Airlines/Aviation
Architecture & Planning
Automotive
Banking
Biotechnology
Broadcast Media
Building Materials
Business Consulting and Services
Chemical Manufacturing
Civil Engineering
Computer Hardware
Computer Networking
Construction
Consumer Electronics
Consumer Goods
Cosmetics
Defense & Space
Design Services
E-Learning
Education Administration Programs
Education Management
Electrical/Electronic Manufacturing
Energy & Utilities
Engineering Services
Entertainment
Environmental Services
Events Services
Facilities Services
Farming, Ranching & Forestry
Financial Services
Food & Beverages
Food Production
Furniture
Government Administration
Graphic Design
Health, Wellness & Fitness
Higher Education
Hospital & Health Care
Hospitality
Human Resources Services
Import & Export
Industrial Automation
Information Services
Information Technology & Services
Insurance
Internet Marketplace Platforms
Investment Banking
Investment Management
IT Services and IT Consulting
Law Enforcement
Law Practice
Legal Services
Leisure, Travel & Tourism
Logistics & Supply Chain
Luxury Goods & Jewelry
Machinery
Management Consulting
Manufacturing & Industrial
Market Research
Marketing & Advertising
Mechanical/Industrial Engineering
Media Production
Medical Device
Mental Health Care
Military and International Affairs
Mining & Metals
Non-Profit Organization Management
Oil & Energy
Online Media
Outsourcing/Offshoring
Package/Freight Delivery
Packaging & Containers
Paper & Forest Products
Performing Arts
Pharmaceuticals
Philanthropy
Photography
Plastics
Primary/Secondary Education
Printing
Professional Training & Coaching
Program Development
Public Policy
Public Relations & Communications
Publishing
Real Estate
Recreational Facilities & Services
Religious Institutions
Renewables & Environment
Research Services
Restaurants
Retail
Security & Investigations
Semiconductors
Social Networking Platforms
Software Development
Sporting Goods
Sports
Staffing & Recruiting
Telecommunications
Textiles
Translation & Localization
Transportation/Trucking/Railroad
Utilities
Venture Capital & Private Equity
Veterinary
Warehousing
Wholesale
Wine & Spirits
Wireless
Writing & Editing

```

***

### ⚡ Core Features

- **🤖 Built-In AI** — No need to struggle with OpenAI billing or API keys. We handle the LLM routing and token management for you.
- **🎯 "Never Miss" Fallback Routing** — If a homepage has no text (e.g., a login portal or heavy image banner), the scraper dynamically hunts down the `/about` or `/company` page and analyzes that instead.
- **🚀 Extreme Speed** — Uses a CheerioCrawler combined with strict DOM-stripping (removing navs, footers, and scripts) to keep memory usage low and speed blazing fast.
- **🔗 Smart URL Parsing** — No need to format your lists. Just paste raw domains like `stripe.com` or `apple.com` and the Actor automatically normalizes them.
- **🧼 Clean CRM Data** — Outputs exactly what sales and data teams need without bloat.

***

### ⚙️ Input Configuration

| Field                  | Type   | Required | Description                                                       |
| ---------------------- | ------ | -------- | ----------------------------------------------------------------- |
| `startUrls`            | Array  | Yes      | List of website URLs or domains (e.g., `apify.com`).              |
| `aiModel`              | String | Yes      | Select the AI model to use for classification.                    |
| `predefinedIndustries` | Array  | No       | Specific list of industries for the AI to choose from (Optional). |
| `proxyConfiguration`   | Object | No       | Proxy settings to bypass blocking.                                |

***

### 🧩 Example Input

```json
{
  "startUrls": ["apify.com", "stripe.com"],
  "aiModel": "openai/gpt-oss-20b",
  "predefinedIndustries": ["SaaS", "Fintech", "E-commerce", "Healthcare"]
}
```

***

### 📊 Example Output

```json
{
  "url": "[https://apify.com/](https://apify.com/)",
  "domain": "apify.com",
  "brandName": "apify",
  "industry": "SaaS",
  "summary": "Apify provides a platform to build, run, and scale web scraping and automation tools.",
  "isB2B": true
}
```

***

### 💡 Use Cases

- **B2B Lead Generation & Scoring:** Automatically categorize purchased domain lists.
- **CRM Database Enrichment:** Clean up "Unknown" industries in Salesforce or HubSpot.
- **Competitive Market Research:** Analyze thousands of competitor domains in minutes.
- **Outbound Sales Intelligence:** Filter prospects by B2B/B2C status before sending cold emails.

***

### ❓ FAQs

**1. Do I need my own API key?**
No! Unlike other scrapers, our Actor has advanced, load-balanced AI keys built directly into the backend. You just pay the flat Apify PPE rate per domain.

**2. Does this scrape the entire website?**
No. It strategically scrapes the homepage. If the homepage lacks context, it uses an intelligent fallback to quickly pull the "About Us" page. This guarantees high speed and low memory usage.

**3. How am I charged for this Actor?**
This is a Pay-Per-Event (PPE) actor. You are charged a flat rate per domain processed. You only pay for what you scrape.

***

### 🧑‍💻 Developer Info

**Author:** codescraper
**Email:** codescraper011@gmail.com

***

### 🏷️ Tags

`industry-classifier` · `business-nature` · `domain-enrichment` · `b2b-leads` · `lead-generation` · `company-intelligence` · `crm-enrichment` · `ai-categorization` · `apify` · `automation` · `sales-intelligence`

# Actor input Schema

## `startUrls` (type: `array`):

List of domains or URLs to classify (e.g., apify.com or https://stripe.com).

## `aiModel` (type: `string`):

### Model Capabilities

🥇 openai/gpt-oss-120b (Most Capable): Highest reasoning capability. Best for complex or confusing websites.

🥈 openai/gpt-oss-20b (Recommended): Blazing fast. Perfectly balances speed and accuracy for mass processing.

🥉 qwen/qwen3.6-27b (Alternative): Excellent alternative with very strong multilingual support for non-English sites.

🚀 groq/compound & compound-mini: High-speed experimental models optimized for short text bursts.

## `predefinedIndustries` (type: `array`):

If provided, the AI will try to match the business to one of these specific industries (e.g. 'SaaS', 'Healthcare', 'E-commerce').

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

Select proxies to be used by your crawler (Datacenter proxies recommended for speed).

## Actor input object example

```json
{
  "startUrls": [
    "apify.com",
    "github.com",
    "https://stripe.com"
  ],
  "aiModel": "openai/gpt-oss-120b",
  "predefinedIndustries": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `businessClassifications` (type: `string`):

The main dataset containing the domain, AI-classified industry, B2B/B2C status, and business summary for each URL.

# 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 = {
    "startUrls": [
        "apify.com",
        "github.com",
        "https://stripe.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("codescraper/website-industry-classifier").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 = {
    "startUrls": [
        "apify.com",
        "github.com",
        "https://stripe.com",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("codescraper/website-industry-classifier").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 '{
  "startUrls": [
    "apify.com",
    "github.com",
    "https://stripe.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call codescraper/website-industry-classifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codescraper/website-industry-classifier"
        }
    }
}

```

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/lyIoaGFVRVKins7Hf/builds/SLsoP8aac9eTLnrGu/openapi.json
