# Search Intent Classifier EN PL (`danielmichalek/search-intent-classifier`) Actor

Review the intent signals in your keyword export. English or Polish rules label up to 500 supplied queries, retain matching evidence and flag ambiguous entries for review. Send your keyword JSON to get a report and CSV.

- **URL**: https://apify.com/danielmichalek/search-intent-classifier.md
- **Developed by:** [Daniel Michałek](https://apify.com/danielmichalek) (community)
- **Categories:** SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00 / 1,000 complete search intent reports

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/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

## Search Intent Classifier EN PL

### Overview

Review up to 500 supplied English or Polish search queries before assigning them to content or campaign work. Each result retains the original ID and query, matched lexical rules, original evidence spans and suggested workstreams. The review queue collects ambiguous and unknown queries.

Choose en or pl explicitly. Labels are informational, commercial, transactional and navigational. Several labels may apply to the same query. A navigational label requires both a supplied literal brand and a destination cue. Every result requires review. The rule set does not evaluate negation, sarcasm or live search results. It does not estimate search volume, confidence, conversions or revenue.

### Output

The complete report is one dataset item and INTENT_REPORT JSON. INTENT_CSV has one row per input keyword and REPORT is a readable summary. Evidence offsets use UTF16 code units in the original query. Each rule records its first matching span. Labels can overlap, so label totals can exceed keywordCount.

### Pricing and limits

The proposed billing unit is one completed search-intent-report for up to 500 queries at USD 0.03. Release receipts and the Store determine active pricing. The local implementation makes zero content requests and uses zero AI APIs. Limits are 500 queries, 300 Unicode code points per query, 160 per ID, 20 brands with 80 code points each, 1.5 MB input, one report and 45 seconds of application work.

### Input example

```json
{
  "language": "en",
  "keywords": [
    {
      "id": "001",
      "text": "how to choose roof panels"
    },
    {
      "id": "002",
      "text": "best roof panels price"
    },
    {
      "id": "003",
      "text": "buy roof panels"
    },
    {
      "id": "004",
      "text": "Acme customer portal"
    },
    {
      "id": "005",
      "text": "roof panels"
    },
    {
      "id": "006",
      "text": "how to buy the best roof panels"
    }
  ],
  "brandTerms": [
    "Acme"
  ],
  "maxItems": 1
}
```

Unknown fields, duplicate IDs, invalid Unicode and unsupported values fail validation before delivery. Repeated query text under different IDs is retained. Brand names are matched literally. Supply authorized data and remove secrets or personal information before upload. Storage retention follows your Apify settings.

### Development and recovery

Use Node 22 or newer, npm ci --offline --ignore-scripts --omit=dev --no-audit --no-fund when the pinned cache is available, then npm test and npm start. Docker installs the lock with scripts disabled. The shared factory runtime is vendored from \_factory/lib.

A PREPARED delivery marker is written before report effects. A completed replay checks runtime, pricing, JSON, CSV, Markdown and one physical dataset item. An uncertain delivery fails with RECONCILIATION_REQUIRED. Inspect storage and charge records before a retry. Preserve storage for resumption. A fresh intentional job uses fresh storage.

CSV formula prefixes are neutralized with an apostrophe. Import ID columns as text to preserve leading zeros. The classifier never edits campaigns or websites. Local acceptance does not establish cloud build or Store availability.

# Actor input Schema

## `language` (type: `string`):

Select English or Polish explicitly. The Actor uses lexical rules for this language.

## `keywords` (type: `array`):

Supply 1 to 500 queries with unique string IDs. Text is limited to 300 Unicode code points and IDs to 160. Original text and matching evidence are retained. Use authorized data and remove secrets before upload.

## `brandTerms` (type: `array`):

At most 20 unique brand names, each up to 80 Unicode code points. Navigational intent requires a brand match and a destination cue. Brand presence by itself is insufficient.

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

One complete report includes every supplied keyword and the review queue.

## Actor input object example

```json
{
  "language": "en",
  "keywords": [
    {
      "id": "001",
      "text": "how to choose roof panels"
    },
    {
      "id": "002",
      "text": "best roof panels price"
    },
    {
      "id": "003",
      "text": "buy roof panels"
    },
    {
      "id": "004",
      "text": "Acme customer portal"
    },
    {
      "id": "005",
      "text": "roof panels"
    },
    {
      "id": "006",
      "text": "how to buy the best roof panels"
    }
  ],
  "brandTerms": [
    "Acme"
  ],
  "maxItems": 1
}
```

# Actor output Schema

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

No description

## `analysis` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `report` (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 = {
    "language": "en",
    "keywords": [
        {
            "id": "001",
            "text": "how to choose roof panels"
        },
        {
            "id": "002",
            "text": "best roof panels price"
        },
        {
            "id": "003",
            "text": "buy roof panels"
        },
        {
            "id": "004",
            "text": "Acme customer portal"
        },
        {
            "id": "005",
            "text": "roof panels"
        },
        {
            "id": "006",
            "text": "how to buy the best roof panels"
        }
    ],
    "brandTerms": [
        "Acme"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("danielmichalek/search-intent-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 = {
    "language": "en",
    "keywords": [
        {
            "id": "001",
            "text": "how to choose roof panels",
        },
        {
            "id": "002",
            "text": "best roof panels price",
        },
        {
            "id": "003",
            "text": "buy roof panels",
        },
        {
            "id": "004",
            "text": "Acme customer portal",
        },
        {
            "id": "005",
            "text": "roof panels",
        },
        {
            "id": "006",
            "text": "how to buy the best roof panels",
        },
    ],
    "brandTerms": ["Acme"],
}

# Run the Actor and wait for it to finish
run = client.actor("danielmichalek/search-intent-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 '{
  "language": "en",
  "keywords": [
    {
      "id": "001",
      "text": "how to choose roof panels"
    },
    {
      "id": "002",
      "text": "best roof panels price"
    },
    {
      "id": "003",
      "text": "buy roof panels"
    },
    {
      "id": "004",
      "text": "Acme customer portal"
    },
    {
      "id": "005",
      "text": "roof panels"
    },
    {
      "id": "006",
      "text": "how to buy the best roof panels"
    }
  ],
  "brandTerms": [
    "Acme"
  ]
}' |
apify call danielmichalek/search-intent-classifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,danielmichalek/search-intent-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/23f2gCuKp6obQtNhe/builds/h1TchNPipv53cra3A/openapi.json
