# Bunjang Listings Scraper (`piotrv1001/bunjang-listings-scraper`) Actor

Scrape product listings from Bunjang (번개장터), Korea's largest C2C secondhand marketplace. Search by keyword, URL, or trending items to collect titles, prices, conditions, seller locations, categories, images, and more — ideal for resale market analysis and price tracking.

- **URL**: https://apify.com/piotrv1001/bunjang-listings-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Automation, Integrations
- **Stats:** 11 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### Bunjang Listings Scraper (번개장터)

Extract product listings from [Bunjang](https://m.bunjang.co.kr/) — Korea's largest C2C secondhand marketplace. The **Bunjang Listings Scraper** lets you search by keyword, scrape trending items, or paste Bunjang search URLs to collect structured listing data at scale.

### ✨ Features

- 🔍 **Keyword & URL Search**: Search by Korean keywords (e.g. `나이키`, `아이폰`) or paste Bunjang search page URLs directly.
- 📈 **Trending Keywords Mode**: Automatically fetch Bunjang's real-time trending searches and scrape them in one run.
- 🏷️ **Rich Listing Data**: Title, price (KRW), condition, sale status, seller location, category, favorites, images, and more.
- 🗂️ **Category Enrichment**: Resolves all 651 Bunjang leaf categories to human-readable Korean names.
- 🖼️ **Image Resolution**: Returns resolved image URLs at 400px thumbnail quality (or probes all images per listing with `fetchAllImages`).
- 🧹 **Client-Side Filters**: Filter by price range, condition (new/used), and free shipping — no auth required.
- ⚡ **No Browser Required**: Runs on Bunjang's public JSON API — fast, lightweight, no Playwright overhead.

### 🛠️ How It Works

1. **Provide Keywords or URLs** – Enter Korean search terms, paste Bunjang search URLs, or enable trending keyword mode.
2. **Run the Scraper** – The actor paginates Bunjang's search API (up to 10,000 items per keyword).
3. **Get Structured Data** – Results are deduplicated by product ID and pushed to the dataset.

### 📥 Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | string\[] | `["나이키"]` | Korean keywords to search (e.g. `["나이키", "아이폰", "닌텐도"]`) |
| `startUrls` | URL\[] | — | Bunjang search URLs — `q=` param is extracted as a keyword |
| `useTrendingKeywords` | boolean | `false` | Fetch and scrape Bunjang's current trending keywords |
| `sortOrder` | string | `date` | `date` · `pop` · `price_asc` · `price_desc` · `score` |
| `minPrice` | integer | — | Minimum price in KRW (client-side filter) |
| `maxPrice` | integer | — | Maximum price in KRW (client-side filter) |
| `condition` | string | `all` | `all` · `new` (미개봉) · `used` (중고) |
| `freeShipping` | boolean | `false` | Return only free-shipping listings |
| `fetchAllImages` | boolean | `false` | Probe all image indices per listing (slower but complete) |
| `maxItems` | integer | `200` | Total output cap — `0` for unlimited |
| `maxPages` | integer | `10` | Pages per keyword (100 items/page, max 100) |

### 📊 Sample Output

```json
{
    "pid": "397916806",
    "url": "https://m.bunjang.co.kr/products/397916806",
    "title": "나이키 ACG 정품 후리스",
    "tags": ["나이키", "ACG", "후리스"],
    "price": 41000,
    "currency": "KRW",
    "freeShipping": false,
    "condition": "new",
    "saleStatus": "selling",
    "isAdult": false,
    "sellerId": "12345678",
    "sellerLocation": "서울특별시 마포구 합정동",
    "isProshop": false,
    "isBizSeller": false,
    "localPickupOnly": false,
    "favoriteCount": 12,
    "commentCount": 0,
    "canBuyNow": false,
    "hasInspection": false,
    "hasCare": false,
    "isAd": false,
    "categoryId": "320300200",
    "categoryName": "점퍼",
    "images": [
        { "url": "https://media.bunjang.co.kr/product/397916806_1_1774689064_w400.jpg", "index": 1 }
    ],
    "imageTemplate": "https://media.bunjang.co.kr/product/397916806_1_1774689064_w{res}.jpg",
    "updatedAt": "2026-03-28T09:11:04.000Z",
    "scrapedAt": "2026-03-28T09:11:20.000Z",
    "type": "PRODUCT"
}
```

### 🔑 Key Fields

| Field | Description |
|---|---|
| `pid` | Unique product ID — use to construct the listing URL |
| `price` | Price in Korean Won (KRW) |
| `condition` | `new` = 미개봉 (unopened), `used` = 중고 (secondhand) |
| `saleStatus` | `selling` · `reserved` · `sold` |
| `categoryName` | Human-readable Korean category name |
| `canBuyNow` | Whether instant checkout is available (vs. negotiate only) |
| `hasInspection` | `true` if the item is Bunjang-verified/authenticated |
| `imageTemplate` | Raw URL template — replace `{res}` with `400`, `600`, or `800` for different sizes |

### 📈 Scale

| Scenario | Items | Approx. Time |
|---|---|---|
| Default run (1 keyword, 10 pages) | up to 1,000 | ~5s |
| Full keyword coverage (1 keyword, 100 pages) | up to 10,000 | ~45s |
| 10 keywords × 10 pages | up to 100,000 (deduped) | ~1 min |
| Trending keywords (~20 keywords, 1 page each) | up to 2,000 | ~10s |

# Actor input Schema

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

Korean keywords to search on Bunjang (e.g. \["나이키", "애플", "닌텐도"]). Each keyword retrieves up to 10,000 listings.

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

Bunjang search URLs to scrape (e.g. https://m.bunjang.co.kr/search/products?q=나이키). The q= parameter is extracted as a search keyword.

## `useTrendingKeywords` (type: `boolean`):

Automatically fetch and scrape Bunjang's current trending search keywords.

## `sortOrder` (type: `string`):

Order in which search results are returned.

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

Minimum listing price in Korean Won. Applied as a client-side filter.

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

Maximum listing price in Korean Won. Applied as a client-side filter.

## `condition` (type: `string`):

Filter listings by item condition.

## `freeShipping` (type: `boolean`):

Return only listings with free shipping.

## `fetchAllImages` (type: `boolean`):

Probe all product image indices (up to 10 per listing). When false, only the first image is included. Enabling this significantly increases the number of HTTP requests.

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

Maximum number of listings to push to the dataset. Set to 0 for unlimited.

## `maxPages` (type: `integer`):

Maximum number of result pages to fetch per keyword (each page contains 100 items, hard cap is 100 pages = 10,000 items per keyword).

## Actor input object example

```json
{
  "searchQueries": [
    "나이키"
  ],
  "startUrls": [],
  "useTrendingKeywords": false,
  "sortOrder": "date",
  "condition": "all",
  "freeShipping": false,
  "fetchAllImages": false,
  "maxItems": 200,
  "maxPages": 10
}
```

# Actor output Schema

## `listings` (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 = {
    "searchQueries": [
        "나이키"
    ],
    "maxItems": 200,
    "maxPages": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/bunjang-listings-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 = {
    "searchQueries": ["나이키"],
    "maxItems": 200,
    "maxPages": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/bunjang-listings-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 '{
  "searchQueries": [
    "나이키"
  ],
  "maxItems": 200,
  "maxPages": 10
}' |
apify call piotrv1001/bunjang-listings-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/tlq6ApuzZF2mKnux9/builds/wKF8iBoPatedWSJ7m/openapi.json
