# Blibli Product, Merchant and Keyword Scraper (`datawebot/blibli-scraper`) Actor

Scrapes Blibli.com product listings and details by merchant/store or search. Supports proxy rotation, cookie generation, and BigQuery-compatible output.

- **URL**: https://apify.com/datawebot/blibli-scraper.md
- **Developed by:** [Datawebot](https://apify.com/datawebot) (community)
- **Categories:** E-commerce
- **Stats:** 5 total users, 0 monthly users, 80.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.80 / 1,000 product details

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Blibli Scraper

Scrape product data from [Blibli.com](https://www.blibli.com) — Indonesia's largest e-commerce platform with 500K+ merchants and millions of products.

### What You Get

Raw product data from Blibli's internal API, including:

- **Product info**: name, SKU, brand, images, attributes, categories
- **Pricing**: current price, discount, strikethrough price, sale price
- **Reviews**: rating, review count, absolute rating
- **Merchant**: seller code, location, official status
- **Metadata**: organic vs sponsored, pagination info

Output is raw JSON from Blibli's API — no cleaning, no transformation. You get exactly what Blibli returns.

### Modes

#### 🔍 Search Mode
Scrape products by keyword. Searches across all Blibli merchants.

```json
{
    "mode": "search",
    "searchTerms": ["laptop", "susu", "sepatu"],
    "maxProducts": 200
}
````

**Use cases**: Price monitoring, market research, competitor analysis, product discovery.

#### 🏪 Merchant Mode

Scrape all products from specific Blibli shops.

```json
{
    "mode": "merchant",
    "merchantIds": ["APF-70017", "HEO-70120"],
    "maxProducts": 2000
}
```

**Use cases**: Competitor catalog monitoring, brand auditing, seller analysis.

#### 📦 Detail Mode

Fetch full product details from product URLs or API identifiers.

```json
{
    "mode": "detail",
    "productUrls": [
        "https://www.blibli.com/p/mac-mini-m4/is--APF-70017-00242",
        "https://www.blibli.com/p/macbook-pro/is--APF-70017-00242?ds=APF-70017-00242-00001"
    ]
}
```

Or use direct API identifiers:

```json
{
    "mode": "detail",
    "productList": [
        {"formattedId": "ps--APF-70017-00242", "sku": "APF-70017-00242"}
    ]
}
```

**Use cases**: Deep product analysis, price history tracking, inventory monitoring.

### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | ✅ | `search`, `merchant`, or `detail` |
| `searchTerms` | array | search | List of keywords to search |
| `merchantIds` | array | merchant | List of merchant/shop IDs |
| `productUrls` | array | detail | List of Blibli product URLs |
| `productList` | array | detail | Direct `{formattedId, sku}` pairs |
| `maxProducts` | integer | No | Max products per search/merchant (default: 1500) |
| `sortOrders` | array | No | Sort orders to apply (default: `["relevansi"]`). See below. |
| `proxyUrl` | string | No | Custom proxy URL (default: direct connection) |
| `categoryIds` | array | No | Filter by category IDs (merchant mode) |
| `brandFilter` | string | No | Filter by brand (merchant mode) |

#### Sort Orders

Available values for `sortOrders` (search and merchant modes):

| Value | Blibli Label | API `sort` param |
|-------|-------------|-----------------|
| `relevansi` | Relevansi | `sort=0` |
| `terlaris` | Terlaris | `sort=16` |
| `termurah` | Termurah | `sort=3` |
| `termahal` | Termahal | `sort=4` |
| `terpopuler` | Terpopuler | `sort=7` |
| `terbaru` | Terbaru | `sort=1` |

Default is `["relevansi"]` (single pass). Pass multiple values to rotate through sorts and maximize product coverage:

```json
{
    "mode": "search",
    "searchTerms": ["laptop"],
    "sortOrders": ["relevansi", "terlaris", "terbaru"]
}
```

### Billing

All modes are billed **per product scraped** (dataset item). Search and merchant modes also emit one event per execution.

- **Search**: returns up to 800 products per keyword. Billed per product in the dataset.
- **Merchant**: returns up to 800 products per shop. Billed per product in the dataset.
- **Detail**: returns 1 product per URL. Billed per product in the dataset.

Pricing is configured on the Apify Store listing and may vary. Check the Actor's pricing tab for current rates.

### Output

Raw JSON from Blibli's API — no transformation. Click to expand full examples.

<details>
<summary><strong>Search Mode</strong> — 1 keyword → up to 800 products</summary>

Input: `{"mode": "search", "searchTerms": ["susu"]}`

Full output (1 product):

```json
{
    "sku": "BEI-70094-00317",
    "name": "Supercat Lactose Free Milk 150ml - Susu Untuk Kucing",
    "brand": "Best In Show",
    "merchantCode": "BEI-70094",
    "merchantName": "Best In Show Flagship Store",
    "formattedId": "ps--BEI-70094-00317",
    "url": "/p/supercat-lactose-free-milk-150ml-susu-untuk-kucing/ps--BEI-70094-00317?ds=BEI-70094-00317-00001&source=SEARCH",
    "status": "AVAILABLE",
    "official": true,
    "officialBrand": false,
    "officialMerchant": true,
    "organic": true,
    "buyable": true,
    "preorder": false,
    "location": "Kota Jakarta Utara",
    "numLocations": 0,
    "price": {
        "priceDisplay": "Rp22.800",
        "minPrice": 22800.0,
        "discount": 0,
        "discountPrice": 0.0,
        "strikeThroughPriceDisplay": "Rp22.800",
        "offerPriceDisplay": "Rp22.800",
        "isPriceRange": false,
        "listPrice": 22800,
        "salePrice": 22800
    },
    "review": {
        "rating": 0,
        "count": 0,
        "absoluteRating": 0.0,
        "sellerRating": 0,
        "isNewSeller": false
    },
    "soldCountTotal": 1,
    "soldRangeCount": {"en": "1 sold", "id": "1 terjual"},
    "images": ["https://www.static-src.com/.../full01.jpg"],
    "rootCategory": {"id": "MTA-182440066", "name": "Makanan & Minuman"},
    "badge": {"merchantBadgeUrl": "https://...", "merchantBadge": "PLATINUM"},
    "campaignInfo": {"name": "Flash Sale", "code": "CAMP-03136"},
    "storeClosingInfo": {"storeClosed": false, "endDate": 0, "delayShipping": false},
    "tags": ["RETURNABLE", "GUARANTEED_STOCK", "FBB", "AVAILABLE", "LIMITED", "COD", "INSTALLMENT_NON_CC"],
    "allCategories": ["MTA-182440066", "WB-1000001", "WB-1000002", "WB-1000003"],
    "categoryIdHierarchy": ["MTA-182440066", "WB-1000001", "WB-1000002", "WB-1000003"],
    "categoryNameHierarchy": ["Makanan & Minuman", "Makanan", "Makanan Hewan", "Makanan Kucing"],
    "itemSku": "BEI-70094-00317-00001",
    "defaultSku": "BEI-70094-00317-00001-PP-3541120",
    "itemCount": 1,
    "hasVariants": false,
    "size": [],
    "attributes": [],
    "exclusiveProduct": false,
    "freshnessDaysCount": 0,
    "deliveryEstimate": "Tiba hari ini",
    "pickupPointCode": "PP-3541120",
    "_mode": "search",
    "_search_term": "susu",
    "_page": 1,
    "_sort_order": 0
}
```

</details>

<details>
<summary><strong>Merchant Mode</strong> — 1 shop → up to 800 products</summary>

Input: `{"mode": "merchant", "merchantIds": ["APF-70017"]}`

Full output (1 product):

```json
{
    "sku": "APF-70017-00242",
    "name": "Mac Mini M4 (16GB, 512GB SSD)",
    "brand": "Apple",
    "merchantCode": "APF-70017",
    "merchantName": "Apple Authorized Reseller",
    "formattedId": "ps--APF-70017-00242",
    "url": "/p/mac-mini-m4/ps--APF-70017-00242?ds=APF-70017-00242-00001",
    "status": "AVAILABLE",
    "official": true,
    "officialBrand": true,
    "officialMerchant": true,
    "organic": true,
    "buyable": true,
    "preorder": false,
    "location": "Jakarta Pusat",
    "numLocations": 0,
    "price": {
        "priceDisplay": "Rp15.999.000",
        "minPrice": 15999000.0,
        "discount": 5,
        "discountPrice": 849000.0,
        "strikeThroughPriceDisplay": "Rp16.848.000",
        "offerPriceDisplay": "Rp15.999.000",
        "isPriceRange": false,
        "listPrice": 16848000,
        "salePrice": 15999000
    },
    "review": {
        "rating": 4,
        "count": 127,
        "absoluteRating": 4.8,
        "sellerRating": 100,
        "isNewSeller": false
    },
    "soldCountTotal": 245,
    "soldRangeCount": {"en": "200+ sold", "id": "200+ terjual"},
    "images": ["https://www.static-src.com/.../full01.jpg"],
    "rootCategory": {"id": "WB-1000001", "name": "Komputer"},
    "badge": {"merchantBadgeUrl": "https://...", "merchantBadge": "DIAMOND"},
    "tags": ["RETURNABLE", "GUARANTEED_STOCK", "FBB", "AVAILABLE", "ORIGINAL", "COD"],
    "categoryNameHierarchy": ["Komputer", "Desktop", "Mini PC"],
    "categoryIdHierarchy": ["WB-1000001", "WB-1000002", "WB-1000003"],
    "itemSku": "APF-70017-00242-00001",
    "defaultSku": "APF-70017-00242-00001",
    "itemCount": 1,
    "hasVariants": false,
    "deliveryEstimate": "Tiba besok",
    "_mode": "merchant",
    "_merchant_id": "APF-70017",
    "_page": 1,
    "_sort_order": 0
}
```

</details>

<details>
<summary><strong>Detail Mode</strong> — 1 URL → full product with merchant, variants, statistics</summary>

Input: `{"mode": "detail", "productUrls": ["https://www.blibli.com/p/timephoria-stellar-dust-lip-stain/is--TIA-70137-00001-00001"]}`

Full output:

```json
{
    "url": "https://www.blibli.com/p/timephoria-stellar-dust-lip-stain/is--TIA-70137-00001-00001?ds=TIA-70137-00001-00001",
    "itemSku": "TIA-70137-00001-00001",
    "name": "Timephoria Stellar Dust Lip Stain",
    "productSku": "TIA-70137-00001",
    "productCode": "MTA-182103745",
    "itemCode": "MTA-182103745-00005",
    "pickupPointCode": "PP-3548432",
    "warehouseCode": "MAR-0000000001",
    "ean": "4897143260035",
    "urlFriendlyName": "timephoria-stellar-dust-lip-stain",
    "stock": 2,
    "stockLimitedThreshold": 6,
    "uniqueSellingPoint": "",
    "ampUrl": "https://www.blibli.com/amp/p/timephoria-stellar-dust-lip-stain/is--TIA-70137-00001-00001",
    "price": {
        "listed": 199000.0,
        "listDiscount": 50,
        "offered": 100000.0,
        "totalDiscount": 50
    },
    "brand": {
        "name": "Timephoria",
        "code": "timephoria",
        "official": false,
        "anchor": "",
        "url": "https://www.blibli.com/brand/timephoria"
    },
    "images": [
        {"full": "https://...full01.jpg", "thumbnail": "https://...thumbnail01.jpg"},
        {"full": "https://...full02.jpg", "thumbnail": "https://...thumbnail02.jpg"}
    ],
    "tags": ["RETURNABLE", "GUARANTEED_STOCK", "FBB", "AVAILABLE", "LIMITED", "COD", "INSTALLMENT_NON_CC"],
    "warranty": {},
    "expiration": {"guaranteedNotExpired": false},
    "type": "REGULAR",
    "attributes": [
        {
            "name": "Warna",
            "type": "IMAGE",
            "values": [
                {"image": "https://...thumbnail.jpg", "value": "#001 Nova"},
                {"image": "https://...thumbnail.jpg", "value": "#01 Calyptra"},
                {"image": "https://...thumbnail.jpg", "value": "#12 Pulse"}
            ]
        }
    ],
    "options": [
        {"id": "is--TIA-70137-00001-00001_PP-3548432", "selected": true, "available": true, "attributes": [{"name": "Warna", "value": "#01 Calyptra", "label": "Warna"}], "pickupPointCode": "PP-3548432", "tags": []},
        {"id": "is--TIA-70137-00001-00002_PP-3548432", "selected": false, "available": true, "attributes": [{"name": "Warna", "value": "#02 Solaris", "label": "Warna"}], "pickupPointCode": "PP-3548432", "tags": []}
    ],
    "categories": [
        {"level": 1, "id": "53203", "name": "Kesehatan & Kecantikan", "url": "/c1/kesehatan-kecantikan/53203"},
        {"level": 2, "id": "MA-1000015", "name": "Make Up", "url": "/c2/make-up/MA-1000015"},
        {"level": 3, "id": "RI-1000005", "name": "Riasan Bibir", "url": "/c3/riasan-bibir/RI-1000005"},
        {"level": 4, "id": "LI-1000005", "name": "Lipstick", "url": "/c4/lipstick/LI-1000005"}
    ],
    "merchant": {
        "name": "Timephoria Flagship Store",
        "code": "TIA-70137",
        "official": true,
        "location": "Gudang Blibli",
        "rating": {"value": 100, "review": 4.9, "badge": "DIAMOND", "positiveReview": 100, "onTimeFulfillment": 100, "activeResponse": 100, "successfulTransaction": 100, "reviewCount": 285, "new": true},
        "url": "/merchant/timephoria-flagship-store/TIA-70137",
        "level": "REGULAR",
        "logo": "https://...",
        "status": "ACTIVE"
    },
    "review": {"rating": 4, "count": 62, "decimalRating": 4.9},
    "statistics": {
        "sold": 627,
        "seen": 32375,
        "bestSelling": {"rank": 6, "salesCategoryLabel": "Riasan Bibir", "label": {"en": "No. 6 top selling in Riasan Bibir", "id": "No. 6 terlaris di Riasan Bibir"}}
    },
    "fulfillmentTypes": {"delivery": "AVAILABLE", "pickup": "UNAVAILABLE", "selected": "DELIVERY"},
    "uspItems": [
        {"id": "FBB", "title": "Disediakan Blibli"},
        {"id": "2HD", "title": "2 jam sampai"},
        {"id": "ORIGINAL", "title": "Pasti ori"},
        {"id": "FREE_RETURN", "title": "Retur alasan apa pun"}
    ],
    "services": {
        "highlighted": [{"id": "TRADE_IN"}, {"id": "INSTALLATION"}, {"id": "PAYLATER"}, {"id": "WHOLESALE"}],
        "additional": [{"id": "CNC"}, {"id": "INSURANCE"}, {"id": "COD"}, {"id": "SUBSCRIPTION"}]
    },
    "shippingAddress": {"provinceName": "DKI Jakarta", "cityName": "Kota Jakarta Barat", "districtName": "Palmerah", "subdistrictName": "Slipi", "postalCode": "11410"},
    "preOrder": {"isPreOrder": false},
    "_mode": "detail",
    "_input_sku": "TIA-70137-00001-00001",
    "_input_formattedId": "is--TIA-70137-00001-00001"
}
```

> **Note on variant pricing:** The detail API returns one price per selected variant. The `options` array lists all variants with availability but without individual pricing. To get per-variant prices, call detail mode for each variant SKU separately.

</details>

### Proxy

No proxy by default (direct connection). For large-scale scraping (>500 products), add a proxy to avoid rate limits.

```json
{
    "mode": "search",
    "searchTerms": ["laptop"],
    "proxyUrl": "http://user:pass@host:port"
}
```

Indonesian proxy IPs recommended for best results.

### How It Works

1. **Browser-level anti-bot bypass** — impersonates real Chrome to avoid detection
2. **Automatic recovery** — handles blocks and rate limits transparently
3. **Full pagination** — iterates through all pages, stops when no more results
4. **Configurable sort** — defaults to Relevansi (single pass); set `sortOrders` to multiple values to rotate and maximize product coverage

### Limits

- **Max pages per run**: 20 pages (800 products per keyword/merchant)
- **Max products per page**: 40
- **Delay**: 1-3 seconds between requests (respectful scraping)
- **maxProducts**: limits how many products to fetch per search/merchant

For large-scale scraping, run multiple actors with different search terms or merchants.

### Use Cases

- **Price Monitoring**: Track competitor prices across Blibli
- **Market Research**: Analyze product trends, brands, categories
- **Inventory Tracking**: Monitor stock levels and product availability
- **Brand Protection**: Detect unauthorized sellers or counterfeit products
- **Lead Generation**: Build product databases for dropshipping or reselling
- **Dynamic Pricing**: Feed product data into pricing algorithms
- **SEO Research**: Analyze product titles and descriptions at scale

### Changelog

#### 0.1 (2026-04-01)

- Initial release
- Search, merchant, and detail modes
- Playwright cookie fallback on 403
- Apify proxy support

# Actor input Schema

## `mode` (type: `string`):

merchant: scrape products by shop ID. search: scrape by keyword. detail: scrape product details from URLs.

## `merchantIds` (type: `array`):

List of Blibli merchant/shop IDs (mode=merchant)

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

List of search keywords (mode=search)

## `productUrls` (type: `array`):

List of Blibli product URLs to scrape details for (mode=detail). Example: https://www.blibli.com/p/name/is--APF-70017-00242

## `productList` (type: `array`):

Direct formattedId+SKU pairs for detail mode. JSON array of {formattedId, sku}.

## `maxProducts` (type: `integer`):

Max products per merchant/search term

## `proxyUrl` (type: `string`):

Override proxy URL (e.g. http://user:pass@host:port). If empty, uses Apify's built-in proxy with selected country.

## `categoryIds` (type: `array`):

Optional category filter (mode=merchant)

## `brandFilter` (type: `string`):

Optional brand filter (mode=merchant)

## `sortOrders` (type: `array`):

Sort orders to use when scraping (mode=search or merchant). relevansi=default Blibli sort (sort=0), terlaris=sort=16, termurah=sort=3, termahal=sort=4, terpopuler=sort=7, terbaru=sort=1. Use multiple to maximize product coverage.

## Actor input object example

```json
{
  "mode": "search",
  "maxProducts": 1500,
  "sortOrders": [
    "relevansi"
  ]
}
```

# Actor output Schema

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

Scraped product data from Blibli.com — raw API response

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

Summary of the scraping run (mode, total products)

# 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("datawebot/blibli-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("datawebot/blibli-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 datawebot/blibli-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=datawebot/blibli-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Blibli Product, Merchant and Keyword Scraper",
        "description": "Scrapes Blibli.com product listings and details by merchant/store or search. Supports proxy rotation, cookie generation, and BigQuery-compatible output.",
        "version": "0.1",
        "x-build-id": "rmuaWCgwwhi2KWvaK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datawebot~blibli-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datawebot-blibli-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/datawebot~blibli-scraper/runs": {
            "post": {
                "operationId": "runs-sync-datawebot-blibli-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/datawebot~blibli-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-datawebot-blibli-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scraping Mode",
                        "enum": [
                            "merchant",
                            "search",
                            "detail"
                        ],
                        "type": "string",
                        "description": "merchant: scrape products by shop ID. search: scrape by keyword. detail: scrape product details from URLs.",
                        "default": "search"
                    },
                    "merchantIds": {
                        "title": "Merchant IDs",
                        "type": "array",
                        "description": "List of Blibli merchant/shop IDs (mode=merchant)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchTerms": {
                        "title": "Search Terms",
                        "type": "array",
                        "description": "List of search keywords (mode=search)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "productUrls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "List of Blibli product URLs to scrape details for (mode=detail). Example: https://www.blibli.com/p/name/is--APF-70017-00242",
                        "items": {
                            "type": "string"
                        }
                    },
                    "productList": {
                        "title": "Product List (direct)",
                        "type": "array",
                        "description": "Direct formattedId+SKU pairs for detail mode. JSON array of {formattedId, sku}."
                    },
                    "maxProducts": {
                        "title": "Max Products",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Max products per merchant/search term",
                        "default": 1500
                    },
                    "proxyUrl": {
                        "title": "Custom Proxy URL",
                        "type": "string",
                        "description": "Override proxy URL (e.g. http://user:pass@host:port). If empty, uses Apify's built-in proxy with selected country."
                    },
                    "categoryIds": {
                        "title": "Category IDs",
                        "type": "array",
                        "description": "Optional category filter (mode=merchant)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "brandFilter": {
                        "title": "Brand Filter",
                        "type": "string",
                        "description": "Optional brand filter (mode=merchant)"
                    },
                    "sortOrders": {
                        "title": "Sort Orders",
                        "type": "array",
                        "description": "Sort orders to use when scraping (mode=search or merchant). relevansi=default Blibli sort (sort=0), terlaris=sort=16, termurah=sort=3, termahal=sort=4, terpopuler=sort=7, terbaru=sort=1. Use multiple to maximize product coverage.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "relevansi",
                                "terlaris",
                                "termurah",
                                "termahal",
                                "terpopuler",
                                "terbaru"
                            ]
                        },
                        "default": [
                            "relevansi"
                        ]
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
