# Arabic Market Miner (`curved_viol/arabic-market-miner`) Actor

- **URL**: https://apify.com/curved_viol/arabic-market-miner.md
- **Developed by:** [Goo](https://apify.com/curved_viol) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Arabic E-commerce Review & Complaint Analyzer

Find recurring customer complaints, product requests, and keyword-based buying signals in Arabic and English e-commerce reviews.

**Arabic Market Miner** is an Apify Actor for store owners, e-commerce agencies, and market researchers who need to turn customer comments into a structured feedback summary. It works on pasted comments, a public CSV, or a dataset produced by another Apify scraper.

### What you can discover

- Repeated customer problems such as late delivery, damaged products, high prices, poor quality, and difficult product use.
- Comments containing keyword-based buying signals such as price questions, availability questions, and ordering questions.
- Product requests and recurring themes worth investigating.
- Possible solution directions linked to detected pain points.

### Run it

Choose one input method:

1. **Paste comments** into `comments`.
2. **Analyze a CSV** by providing a public direct `csv_url`.
3. **Analyze scraped reviews** by providing the `dataset_id` from a previous Apify scraper run.

Example input:

```json
{
  "comments": [
    "بكم هذا المنتج؟ وكيف أطلب؟",
    "المنتج وصل متأخر والجودة سيئة",
    "يا ريت توفروا حجم أكبر",
    "The product arrived broken and customer support did not reply."
  ]
}
```

For a scraper-to-analysis workflow, run a reviews or comments scraper first, then pass its dataset ID to this Actor. The Actor reads the dataset using the current Apify account token. The text column defaults to `comment`; common alternatives such as `text`, `تعليق`, and `التعليق` are detected automatically. Set `column_name` to override it.

### Output

The default dataset contains a summary record followed by one record per comment.

| Output | What it shows |
|---|---|
| Summary | Total comments and counts of buying indicators, complaints, and product requests |
| Top terms | Frequently matched complaint and purchase-intent keywords |
| Opportunity signals | Counts of detected pain-point types |
| Comment analysis | Matched categories, keywords, and possible solution directions for each comment |

### Sample report

See [an illustrative Arabic e-commerce feedback report](SAMPLE_REPORT.md). The example data is fictional and demonstrates the report format only.

### Important methodology note

This Actor uses transparent keyword matching and predefined rules. It does not understand context like a human, verify actual purchase intent, or perform advanced sentiment analysis. A detected buying phrase is an indicator in the text, not proof that the person will purchase. Opportunity hints are hypotheses based on recurring pain-point phrases, not validated product opportunities.

### Best use case

Use Arabic Market Miner after collecting product reviews, store comments, or customer feedback. It helps e-commerce teams quickly organize feedback and decide which issues deserve closer investigation.

# Actor input Schema

## `comments` (type: `array`):

Paste Arabic or English e-commerce reviews, product comments, or customer feedback. Use this, csv_url, or dataset_id.

## `dataset_id` (type: `string`):

Dataset ID from an Apify reviews/comments scraper run. Best for analyzing collected e-commerce customer feedback.

## `csv_url` (type: `string`):

Public direct URL to a CSV containing e-commerce reviews or customer comments.

## `column_name` (type: `string`):

Column name containing comments. Defaults to comment.

## Actor input object example

```json
{
  "column_name": "comment"
}
```

# Actor output Schema

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

Dataset containing one summary record and one analysis record per comment.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("curved_viol/arabic-market-miner").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("curved_viol/arabic-market-miner").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 '{}' |
apify call curved_viol/arabic-market-miner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,curved_viol/arabic-market-miner"
        }
    }
}
```

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/1bNqeyqCWw5WgY2pG/builds/4QDPeqs4D7iEMeSoF/openapi.json
