# Ralali Scraper - Indonesia B2B Wholesale Prices & MOQ (`rel8ble/ralali-scraper`) Actor

Ralali scraper and API for Indonesia B2B wholesale prices: search by keyword, category, store or product URL. One row per product: price (IDR), wholesale tiers, MOQ, unit, stock, category path, supplier city and membership. No login. Only Ralali actor on the Store. $0.80 per 1,000.

- **URL**: https://apify.com/rel8ble/ralali-scraper.md
- **Developed by:** [Giovanni Rich](https://apify.com/rel8ble) (community)
- **Categories:** E-commerce, Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.80 / 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.

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

## Ralali Scraper - Indonesia B2B Wholesale Prices & MOQ

**Ralali scraper** and unofficial **Ralali API**: export products and suppliers from **Ralali.com, Indonesia's B2B wholesale marketplace**, by keyword, category or supplier store, with **price in rupiah, wholesale price tiers (harga grosir), minimum order (MOQ)**, unit, stock, category path, supplier city and seller membership. Download as JSON, CSV or Excel. Use it for **Indonesia sourcing**, wholesale price research, supplier shortlists and B2B lead lists.

- **What goes in:** product keywords in Indonesian or English (`kopi`, `beras`, `minyak goreng`, `safety shoes`, `mesin las`) or Ralali URLs: search pages, categories (`/c/kopi-hl1174`), a supplier store (`/v/<store>`) or one product (`/v/<store>/product/<product>`). Optional filters: wholesale tiers only, min / max price (IDR), supplier cities, max MOQ, in stock only, one row per supplier.
- **What comes out:** one row per product: name, URL, brand, price (IDR), original price and discount, every wholesale tier (from quantity, to quantity, unit price), lowest reachable price, MOQ, max order, unit, stock, rating, category path, image, and the supplier: name, store URL, city, membership (Business / Enterprise), store open, couriers, free shipping.
- **Typical cost:** $0.80 per 1,000 products, no start fee. A 20-product check costs $0.016.
- **When to use it:** comparing Indonesian wholesale prices and quantity discounts, finding suppliers of a product in a given city, monitoring a competitor's catalog, feeding Indonesian B2B price data to an AI agent.

It reads the same public search data the Ralali website shows to any visitor, over plain HTTP, **no browser and no login**, 50 products per request. Unofficial: not affiliated with or endorsed by Ralali.

### Sample output

Real rows from a run of the default input (`kopi`, 20 products, 15 Nov 2026):

| name | price | MOQ | wholesale tiers (IDR) | supplier | city |
|---|---|---|---|---|---|
| Kopi Bubuk Reguler Kopi Bara 1Kg | Rp 59.500 | 1 Kilogram | - | Kopi Bara Official | Surabaya |
| Kopi Bubuk Premium Pack 70gr Kopi Bara | Rp 540.000 | 1 Box | 10+: 510.000, 50+: 480.000, 300+: 450.000 | Kopi Bara Official | Surabaya |
| Kopi Excelsa | Rp 31.000 | 1 Pieces | - | Kopi jalen | Kendal |
| Kopi Cup 2 in 1 Kopi Bara | Rp 540.000 | 1 Box | 10+: 495.000, 50+: 450.000, 300+: 405.000 | Kopi Bara Official | Surabaya |
| Kopi Celup | Rp 10.000 | 1 Unit | - | Original Coffee | Banda Aceh |
| Kopi Jadul | Rp 14.000 | 1 Pieces | - | Frita Coffee | Tangerang Selatan |

One full row:

```json
{
    "productId": 353041,
    "name": "Kopi Bubuk Premium Pack 70gr Kopi Bara",
    "productUrl": "https://www.ralali.com/v/kopibaraofficial/product/Kopi-Bubuk-Premium-Pack-70gr-Kopi-Bara",
    "price": 540000,
    "currency": "IDR",
    "priceText": "Rp 540.000",
    "lowestTierPrice": 450000,
    "hasWholesalePrice": true,
    "priceTiers": [
        { "minQuantity": 10, "maxQuantity": 49, "price": 510000, "discount": 0 },
        { "minQuantity": 50, "maxQuantity": 299, "price": 480000, "discount": 0 },
        { "minQuantity": 300, "maxQuantity": null, "price": 450000, "discount": 0 }
    ],
    "minimumOrder": 1,
    "unit": "Box",
    "inStock": true,
    "category": "Kopi Instan Bubuk",
    "categoryPath": ["Agriculture & Food", "Coklat, Teh, Kopi & Susu", "Kopi", "Kopi Instan Bubuk"],
    "supplierName": "Kopi Bara Official",
    "supplierUrl": "https://www.ralali.com/v/kopibaraofficial",
    "supplierCity": "Surabaya",
    "couriers": ["TIKI REG", "JNE REG", "SiCepat REG", "J&T EZ", "Ralali Kargo RKG"]
}
```

Every row also has brand, original price, discount and discount %, max order, rating, category URLs, image URL, supplier id and alias, membership, store open, free shipping, and which search produced it.

### Use cases

- **Wholesale price research:** `wholesaleOnly: true` returns only products with quantity tiers, so you see how the unit price drops at 10, 50 or 300 units.
- **Find suppliers in a city:** `locations: ["Surabaya", "Bandung"]` plus `uniqueSuppliers: true` gives one row per supplier there.
- **Small-batch buying:** `maxMinimumOrder: 5` and `inStockOnly: true` keep products you can order in small quantities today.
- **Catalog export:** put a supplier store URL (`https://www.ralali.com/v/<store>`) in `searchTerms` to export everything that supplier lists.
- **Category snapshots:** a category URL (`https://www.ralali.com/c/kopi-hl1174`) returns every product in it, up to 50 per request.
- **AI agents:** "coffee wholesalers in Surabaya with price tiers" maps straight onto `searchTerms`, `locations` and `wholesaleOnly`.

### Input example

```json
{
    "searchTerms": ["minyak goreng", "https://www.ralali.com/c/kopi-hl1174", "https://www.ralali.com/v/kopibaraofficial"],
    "maxResultsPerSearch": 200,
    "wholesaleOnly": true,
    "locations": ["Surabaya", "Jakarta Barat"],
    "maxPrice": 1000000
}
```

The run also writes a `RUN_SUMMARY` record: per search, the rows saved, pages read, products scanned, rows filtered out and why it stopped.

### Pricing

**$0.80 per 1,000 products** (pay per result; you pay only for rows saved to the dataset). Apify platform usage and proxies are included.

| You scrape | You pay |
|---|---|
| 100 products | $0.08 |
| 1,000 products | $0.80 |
| 10,000 products | $8.00 |

No start fee. Rows dropped by your filters are free. You are never charged for failed requests, retries, duplicates or searches with no results. If you set a maximum cost per run, the scraper stops cleanly when it reaches it.

No other Ralali actor is on the Apify Store (live Store search, 17 Nov 2026: this one is first of 6 results for "ralali", the other 5 cover other sites). For comparison, the most-used Tokopedia scrapers charge $0.90 per 1,000 (fatihtahta, 12 users in 30 days), $1.00 + $0.00005 per run (shahidirfan, 24) and $1.50 (lergassy, 32); the Indotrading B2B directory actor charges $3.00 + $0.00005 per run (fanndev, 2).

### FAQ

**What language should keywords be in?**
Ralali is Indonesian, so Indonesian keywords match best (`kopi` = coffee, `beras` = rice, `minyak goreng` = cooking oil, `sepatu safety` = safety shoes). English product names work too, since many listings use them.

**What are wholesale tiers?**
Many sellers list a lower unit price for larger quantities ("harga grosir"). Each tier is returned as `{minQuantity, maxQuantity, price}`; `maxQuantity: null` means "and above". `lowestTierPrice` is the cheapest unit price reachable, and `hasWholesalePrice` tells you whether tiers exist. About 20-45% of products have tiers, depending on the search.

**Which prices are these?**
Unit prices in Indonesian rupiah (IDR) as Ralali shows them to a visitor without an account, after any running discount (`originalPrice` and `discount` show the discount). Shipping is not included.

**How many products can I get?**
50 products per request and up to 200 pages per search (10,000 products). Ralali stops returning results when a search is exhausted; the run summary says "all listings read" when that happens.

**Do I get e-mails or phone numbers?**
No. Ralali does not show seller contact details publicly; buyers contact sellers through Ralali's chat or quotation form. You get the company / store name, store URL and city.

**Does it get blocked?**
It uses Ralali's own public search endpoint with the anonymous visitor token the website gives every visitor, at a moderate rate through Apify's datacenter proxy, and retries any failed page on a new IP (never charged). No captchas are solved and no login is used.

**Is it legal?**
It reads public product listings that Ralali publishes for buyers, and the pages it uses are allowed by Ralali's robots.txt. It collects product and company data, not personal data. You are responsible for how you use the data; check Ralali's terms and your local laws for your use case.

### Integrations

Use the results from the Apify API, the Python or JavaScript client, webhooks, or Make, Zapier, n8n, Google Sheets and Airtable integrations. Schedule runs to track prices or new suppliers.

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

# Actor input Schema

## `searchTerms` (type: `array`):

Provide at least one. Product keywords in Indonesian or English, e.g. "kopi", "beras", "minyak goreng", "safety shoes", "mesin las", or ralali.com URLs: a search page (https://www.ralali.com/search/kopi), a category (https://www.ralali.com/c/kopi-hl1174), a supplier store (https://www.ralali.com/v/kopibaraofficial) to export that supplier's catalog, or one product (https://www.ralali.com/v/<store>/product/<product>). Default \["kopi"] (demo).

## `maxResultsPerSearch` (type: `integer`):

Optional. Products saved per keyword / URL, integer >= 0. Default 20; 0 = everything up to "Max pages per search" (50 products per page). You pay per saved row.

## `maxPagesPerSearch` (type: `integer`):

Optional. Result pages read per keyword / URL (50 products each). Default 20 (up to 1,000 products). Pages are free; only saved rows are charged.

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

Optional. true = keep only products that list quantity price tiers (harga grosir), e.g. 10-49 pcs at one price, 50+ at a lower one. Default false.

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

Optional. Lowest unit price in Indonesian rupiah, e.g. 50000. Applied by Ralali's own search.

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

Optional. Highest unit price in Indonesian rupiah, e.g. 500000. Applied by Ralali's own search.

## `locations` (type: `array`):

Optional. Keep only suppliers in these cities, as Ralali spells them, e.g. "Surabaya", "Jakarta Barat", "Bandung", "Tangerang Selatan". Empty = all of Indonesia.

## `maxMinimumOrder` (type: `integer`):

Optional. Skip products whose minimum order is above this number of units, e.g. 10 for small-batch buying.

## `inStockOnly` (type: `boolean`):

Optional. Skip products marked out of stock. Default false.

## `uniqueSuppliers` (type: `boolean`):

Optional. true = keep only the first product of each supplier across the run (a supplier lead list). Default false = one row per product.

## `maxConcurrency` (type: `integer`):

Optional, advanced. Parallel requests, 1-10. Default 4.

## `maxRequestRetries` (type: `integer`):

Optional, advanced. Retries per failed request, 0-20. Default 6.

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

Optional, advanced. Default Apify Proxy (datacenter). Switch to {"useApifyProxy": true, "apifyProxyGroups": \["RESIDENTIAL"]} only if the log shows repeated blocks.

## Actor input object example

```json
{
  "searchTerms": [
    "kopi"
  ],
  "maxResultsPerSearch": 20,
  "maxPagesPerSearch": 20,
  "wholesaleOnly": false,
  "inStockOnly": false,
  "uniqueSuppliers": false,
  "maxConcurrency": 4,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

All products found: name, URL, brand, price in IDR, discount, wholesale price tiers, minimum order, unit, stock, category path, image and the supplier (name, store URL, city, membership).

## `summary` (type: `string`):

Per-search counts: products saved, pages read, products scanned, filtered out, stop reason, warnings and failures.

# 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 = {
    "searchTerms": [
        "kopi"
    ],
    "maxResultsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rel8ble/ralali-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 = {
    "searchTerms": ["kopi"],
    "maxResultsPerSearch": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rel8ble/ralali-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 '{
  "searchTerms": [
    "kopi"
  ],
  "maxResultsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rel8ble/ralali-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rel8ble/ralali-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/f9Y3gvWCCmm4pKFsq/builds/aX3dJT3BqFZyEXQO7/openapi.json
