# 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:** 2 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 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

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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bunjang Listings Scraper",
        "description": "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.",
        "version": "0.0",
        "x-build-id": "wKF8iBoPatedWSJ7m"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/piotrv1001~bunjang-listings-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-piotrv1001-bunjang-listings-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/piotrv1001~bunjang-listings-scraper/runs": {
            "post": {
                "operationId": "runs-sync-piotrv1001-bunjang-listings-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/piotrv1001~bunjang-listings-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-piotrv1001-bunjang-listings-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",
                "properties": {
                    "searchQueries": {
                        "title": "Search Queries",
                        "type": "array",
                        "description": "Korean keywords to search on Bunjang (e.g. [\"나이키\", \"애플\", \"닌텐도\"]). Each keyword retrieves up to 10,000 listings.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Bunjang search URLs to scrape (e.g. https://m.bunjang.co.kr/search/products?q=나이키). The q= parameter is extracted as a search keyword.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "useTrendingKeywords": {
                        "title": "Use Trending Keywords",
                        "type": "boolean",
                        "description": "Automatically fetch and scrape Bunjang's current trending search keywords.",
                        "default": false
                    },
                    "sortOrder": {
                        "title": "Sort Order",
                        "enum": [
                            "date",
                            "pop",
                            "price_asc",
                            "price_desc",
                            "score"
                        ],
                        "type": "string",
                        "description": "Order in which search results are returned.",
                        "default": "date"
                    },
                    "minPrice": {
                        "title": "Min Price (KRW)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum listing price in Korean Won. Applied as a client-side filter."
                    },
                    "maxPrice": {
                        "title": "Max Price (KRW)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum listing price in Korean Won. Applied as a client-side filter."
                    },
                    "condition": {
                        "title": "Condition",
                        "enum": [
                            "all",
                            "new",
                            "used"
                        ],
                        "type": "string",
                        "description": "Filter listings by item condition.",
                        "default": "all"
                    },
                    "freeShipping": {
                        "title": "Free Shipping Only",
                        "type": "boolean",
                        "description": "Return only listings with free shipping.",
                        "default": false
                    },
                    "fetchAllImages": {
                        "title": "Fetch All Images",
                        "type": "boolean",
                        "description": "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.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of listings to push to the dataset. Set to 0 for unlimited.",
                        "default": 200
                    },
                    "maxPages": {
                        "title": "Max Pages per Keyword",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of result pages to fetch per keyword (each page contains 100 items, hard cap is 100 pages = 10,000 items per keyword).",
                        "default": 10
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
