# Basalam Scraper (`aboo.script/basalam-scraper`) Actor

⚡ Fast Basalam scraper. No login, no API key. Extract products from Iran's top marketplace by keyword or category, search, seller or product URL: prices in rials and tomans, discounts, stock, ratings, sales, seller profiles, specifications, variants and images.

- **URL**: https://apify.com/aboo.script/basalam-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (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.10 / 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

## Basalam Scraper

![Basalam Scraper](https://i.ibb.co/XxmM3fww/basalam-banner.png)

**Basalam Scraper** extracts product data from [Basalam](https://basalam.com/), Iran's large online marketplace, into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a Basalam category, search, seller, or product URL, or type a few keywords, and get the title, price in rials and tomans, discount, stock, rating, sales count, seller details, specifications, variants, and images for every product. No account or login required.

### Introduction

[Basalam](https://basalam.com/) is one of Iran's biggest online marketplaces, where thousands of small businesses, farmers, and craftspeople sell food, clothing, home goods, handicrafts, and much more directly to buyers. Its product listings are a rich source of prices, demand signals, and seller information for the Iranian market.

This actor collects the same public information you see in your browser and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from Basalam?

- 🏷️ Product title, ID, SKU, barcode, and direct product URL
- 💲 Price and original price in rials and tomans, discount percentage, and discount end date
- 📦 Availability, stock, weight, unit, and preparation time
- ⭐ Rating, number of reviews, rating breakdown by stars, and number of sales
- 🗂️ Category, category path, and breadcrumbs with links
- 📝 Description and specifications (attributes)
- 🎨 Variants (size, color, model) with their own price, discount, stock, and SKU
- 🖼️ Main image, all images, and product video
- 🚚 Free shipping and wholesale flags
- 🏪 Seller (booth) name, link, owner, city, province, product count, followers, member since, social accounts, logo, and shipping methods

### Use Cases

- 📈 **Market research**: track prices, discounts, and best sellers across Basalam categories.
- 🕵️ **Competitor monitoring**: follow what other sellers list, at what price, and how well it sells.
- 🤝 **Lead generation**: build a list of Basalam sellers by category or city, with their social accounts.
- 🗂️ **Database building**: create your own searchable catalog of Iranian products with specifications and images.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape Basalam step by step

1. Paste one or more Basalam URLs into **Start URLs**, or type keywords into **Search queries**.
2. Set **Maximum number of results** to how many products you want per URL or per query.
3. Optionally choose **Sort by** and the filters for your search queries.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Basalam URLs to scrape. Supported pages: category pages, search pages, seller (booth) pages, and single product pages. Sorting and filters you apply on the website (such as price range, rating, free shipping, wholesale, or top sellers) are kept in the results. Top-level category pages that only show curated sections are scraped through their subcategories.
- **Search queries**: keywords to search on Basalam, in Persian or English, one per line. Each query is scraped separately.
- **Maximum number of results**: how many products to collect for each start URL or search query. Use 0 for no limit.
- **Sort by**: order of the search results (most relevant, best selling, cheapest, most expensive, or newest).
- **Minimum price (toman)** and **Maximum price (toman)**: only products in this price range, in tomans as shown on Basalam.
- **Minimum rating**: only products rated at least this many stars.
- **Free shipping only**, **Wholesale only**, and **Top sellers only**: narrow the results the same way as the filters on the website.

Sort by and the filters apply to search queries. Start URLs keep the sorting and filters already in the URL. You can use start URLs, search queries, or both in the same run.

### Input Examples

Scrape a category page from Basalam:

```json
{
  "startUrls": [{ "url": "https://basalam.com/cat/apparel/%D8%B4%D9%84%D9%88%D8%A7%D8%B1-%D8%B2%D9%86%D8%A7%D9%86%D9%87" }],
  "maxResults": 5
}
```

Search by keywords:

```json
{
  "searchQueries": ["عسل"],
  "maxResults": 5,
  "sort": "rank",
  "freeShippingOnly": false,
  "wholesaleOnly": false,
  "topSellersOnly": false
}
```

### Output

Each product is saved as one item in the dataset. Here is an example of a single item:

```json
{
  "url": "https://basalam.com/mokhtari/product/2810984",
  "id": 2810984,
  "title": "عسل چهل گیاه سبلان 1 کیلویی (مستقیم از زنبوردار)ارسال رایگان",
  "sku": null,
  "barcode": null,
  "price": 6390000,
  "priceToman": 639000,
  "originalPrice": 6390000,
  "originalPriceToman": 639000,
  "currency": "IRR",
  "discountPercent": null,
  "discountEndsAt": null,
  "isAvailable": true,
  "availability": "In Stock",
  "stock": 79,
  "rating": 4.5,
  "reviewCount": 3746,
  "ratingBreakdown": [
    {
      "stars": 5,
      "count": 2700
    },
    {
      "stars": 4,
      "count": 608
    },
    {
      "stars": 3,
      "count": 249
    },
    {
      "stars": 2,
      "count": 70
    },
    {
      "stars": 1,
      "count": 119
    }
  ],
  "salesCount": 14910,
  "category": "عسل",
  "categoryId": 172,
  "categoryPath": [
    "مواد غذایی",
    "عسل و فراورده های عسل",
    "عسل"
  ],
  "breadcrumbs": [
    {
      "title": "مواد غذایی و سوپر مارکت",
      "url": "https://basalam.com/cat/grocery"
    },
    {
      "title": "محصولات صبحانه",
      "url": "https://basalam.com/cat/grocery/%D9%85%D8%AD%D8%B5%D9%88%D9%84%D8%A7%D8%AA-%D8%B5%D8%A8%D8%AD%D8%A7%D9%86%D9%87"
    }
  ],
  "description": "🧿سلام مشتریان عزیزم این محصول پر فروش و پر طرفدار در خدمت شما عزیزان دل مجموعه بزرگ عسل سبلان مسعود  مختاری\nاین عسل چهل...",
  "attributes": [
    {
      "group": "عمومی",
      "name": "زمان ماندگاری",
      "value": "عسل طبیعی تاریخ انقضا ندارد",
      "unit": null
    },
    {
      "group": "عمومی",
      "name": "سایر توضیحات",
      "value": "شاه عسل ها یعنی عسل چهل گیاه یا بهداصطلاح همان(چندگیاه)که یک عسل تمام عیار و با عطر و طعم بسیار جذاب و دلنشین و خوش قیمت که حتی در قرآن مقدس کریم هم به مصرف آن توصیه شده با قیمت عالی در خدمت شما عزیزان دل،،، عزیزانم  باید گفت که تمامی خواص دارویی و درمانی یک عسل طبیعی، به درصد خلوص و ارگانیک بودن آن بر می گردد\nکه این عسل هم طبیعی و ساگارز زیر ۵ درصد را دارا میباشد اگر عسلی تقلبی و مصنوعی که گاها با ساکاروز بسیار بالایی هم همراه بوده، به مصرف انسان ها برسد،\nنباید انتظار خواص مفیدی از آن داشت و حتی شاید عوارضی جدی را به دنبال داشته باشد،،،دوستان این عسل به صورت عمده و ویژه در نظر گرفته و فروخته میشود و از نوع بهترین عسل های بهاره زنبورستان مختاری است قیمت این عسل را برای استفاده بدون واسطه شما عزیزان و بخاطر خرید مستقیم از خود ما با حد اکثر تخفیف و حداقل سود در نظر گرفتیم و با یکبار مصرف مشتری داائمی ما باشید چند مورداز اثرات بی نظیر مصرف روزانه عسل طبیعی  1-ارامش سیستم عصبی 2-معده سالم 3-تقویت حافظه 4-عملکرد بهتر قلب 5-کنترل وزن 6-پوست سالم 7-خواب راحت و بموقع 8-تقویت سیستم ایمنی بدن . با افتخار دست رنج خود را بدون واسطه به سفره های شما عزیزان میرسانیم",
      "unit": null
    }
  ],
  "hasVariants": false,
  "variants": [],
  "image": "https://statics.basalam.com/public-54/users/bxaag/01-10/kwDQF6JfzscHGSWhvXNi5JaqE33P3ontK9sa18T2lxUjdPzor6.jpg",
  "images": [
    "https://statics.basalam.com/public-54/users/bxaag/01-10/kwDQF6JfzscHGSWhvXNi5JaqE33P3ontK9sa18T2lxUjdPzor6.jpg",
    "https://statics.basalam.com/public-3/users/bxaag/11-04/7qqoR0OjELDkKS4VOkx1wOT6IVVO931KsKr6cdrmbNw2wQJSee.jpg"
  ],
  "videoUrl": "https://statics.basalam.com/public-1/video/product/bxaag/02-13/jgWkNLvVs96JMVrCn74ZhvBinyTfswEtrFW2gWlCqSzxz5HDCw.mp4",
  "netWeightGrams": 1000,
  "packagedWeightGrams": 1100,
  "unitType": "گرم",
  "unitQuantity": 1000,
  "preparationDays": 5,
  "isFreeShipping": false,
  "isWholesale": false,
  "seller": {
    "id": 95029,
    "identifier": "mokhtari",
    "name": "عسل طبیعی سبلان مختاری",
    "url": "https://basalam.com/mokhtari",
    "ownerName": "مسعود مختاری/مدیر پرفروش ترین زنبورستان باسلام🏅🍯🐝",
    "city": "اردبیل",
    "province": "اردبیل",
    "productCount": 55,
    "followers": 12194,
    "memberSince": "2020-05-27T14:01:33Z",
    "instagram": null,
    "telegram": null,
    "eitaa": null,
    "logo": "https://statics.basalam.com/public-10/vendor/logo/bxaag/07-26/6dbUJKN2e8rUsRWfaE2cNecJhxfEC2mpXvtnJUN6R65NMsQiXJ.jpg",
    "shippingMethods": [
      "پشت پیشتاز",
      "پشت سفارشی",
      "پیک موتوری"
    ]
  },
  "createdAt": "2021-11-04T16:13:53Z",
  "updatedAt": "2026-09-22T12:39:01Z",
  "priceUpdatedAt": "2026-09-22T12:39:01Z"
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Prices are returned in Iranian rials (`price`) and in tomans (`priceToman`), the unit shown on Basalam (1 toman = 10 rials). The price filters in the input use tomans.
- Product titles, descriptions, categories, and specifications are in Persian, exactly as shown on Basalam.
- Basalam shows at most 10,000 products for one search or category. Split broad searches into smaller ones or use subcategories to get more.
- Sponsored products mixed into search results are skipped, and a product that appears in several subcategories is saved only once per run.
- The free shipping flag comes from the search and category results, so it is empty (`null`) for product URLs added directly.
- Basalam does not show a brand for its products, and most sellers do not fill in the SKU or barcode, so these are often `null`.
- Unsupported pages (for example help or landing pages) are skipped.

### Why use the Basalam Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🎯 **Keeps your filters**: paste any category, search, or seller URL from your browser and get exactly what you see there.
- 🧩 **Full product details**: specifications, every variant, rating breakdown, sales count, and seller profile in one item.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and text is free of HTML.
- 💸 **Pay for what you need**: set a result limit per URL or query and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

You can set any number in **Maximum number of results**, or 0 for no limit. The actor keeps going until it reaches your limit or runs out of products. See **Notes** for the limit set by Basalam.

#### Do I need a Basalam account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Can I scrape all products of one seller?

Yes. Paste the seller's booth URL (for example https://basalam.com/chigan) into **Start URLs** and set the result limit you need.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh prices and stock automatically.

#### Why are some fields empty?

Some products simply do not show every piece of information. When a field is not available on the website, it is returned as `null`.

#### Can I request a new feature or filter?

Yes. Right now the actor supports start URLs, search queries, sorting, price, rating, free shipping, wholesale, and top seller filters. If you need other inputs, such as product reviews or city filters, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Basalam](https://basalam.com/)

# Actor input Schema

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

Basalam URLs: category pages (e.g. https://basalam.com/cat/apparel/شلوار-زنانه), search pages (https://basalam.com/s?q=عسل), seller (booth) pages (https://basalam.com/chigan) or product pages (https://basalam.com/chigan/product/17829633). Sorting and filters in the URL (price, rating, free shipping, wholesale, top sellers, etc.) are applied. Top-level categories without a product list are scraped through their subcategories.

## `searchQueries` (type: `array`):

Keywords to search on Basalam, in Persian or English (e.g. عسل, honey). Each query is scraped separately.

## `maxResults` (type: `integer`):

Maximum number of products to scrape per start URL or search query. Use 0 for no limit (Basalam shows up to 10,000 products per search or category).

## `sort` (type: `string`):

Order of the search results. Applies to search queries only; start URLs keep their own sorting.

## `minPrice` (type: `integer`):

Only products priced at or above this amount, in tomans as shown on Basalam. Applies to search queries only.

## `maxPrice` (type: `integer`):

Only products priced at or below this amount, in tomans as shown on Basalam. Applies to search queries only.

## `minRating` (type: `integer`):

Only products rated at least this many stars (1 to 5). Applies to search queries only.

## `freeShippingOnly` (type: `boolean`):

Only products with free shipping. Applies to search queries only.

## `wholesaleOnly` (type: `boolean`):

Only products sold wholesale. Applies to search queries only.

## `topSellersOnly` (type: `boolean`):

Only products from top-rated sellers (booths). Applies to search queries only.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://basalam.com/cat/apparel/%D8%B4%D9%84%D9%88%D8%A7%D8%B1-%D8%B2%D9%86%D8%A7%D9%86%D9%87"
    }
  ],
  "searchQueries": [
    "عسل"
  ],
  "maxResults": 5,
  "sort": "rank",
  "freeShippingOnly": false,
  "wholesaleOnly": false,
  "topSellersOnly": false
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://basalam.com/cat/apparel/%D8%B4%D9%84%D9%88%D8%A7%D8%B1-%D8%B2%D9%86%D8%A7%D9%86%D9%87"
        }
    ],
    "searchQueries": [
        "عسل"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/basalam-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 = {
    "startUrls": [{ "url": "https://basalam.com/cat/apparel/%D8%B4%D9%84%D9%88%D8%A7%D8%B1-%D8%B2%D9%86%D8%A7%D9%86%D9%87" }],
    "searchQueries": ["عسل"],
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/basalam-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 '{
  "startUrls": [
    {
      "url": "https://basalam.com/cat/apparel/%D8%B4%D9%84%D9%88%D8%A7%D8%B1-%D8%B2%D9%86%D8%A7%D9%86%D9%87"
    }
  ],
  "searchQueries": [
    "عسل"
  ]
}' |
apify call aboo.script/basalam-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/basalam-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/v4T9yivdB6CI45gQO/builds/wfNOLwR4UkPOxSR0r/openapi.json
