# Banggood Products Scraper (`b2b_lead_generation/banggood-products-scraper`) Actor

Collect product titles, URLs, and keys from Banggood search results. Set your query or URLs and export clean datasets as JSON, CSV, or Excel

- **URL**: https://apify.com/b2b_lead_generation/banggood-products-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Banggood Products Scraper

![Banggood Products Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/banggood-products-scraper-cover.png)

Collect product listings from Banggood search pages using keywords or supplied search URLs. Retrieve product titles, product URLs, and product identifiers, then export the results in JSON, CSV, or Excel.

### What It Does

This actor retrieves Banggood search page HTML and extracts product information from listing cards. Each product is saved as a separate dataset row containing its URL, title, product key, and source page.

Results are deduplicated by `productKey` and collected until the configured `maxItems` limit is reached.

### Available Mode

**List Search Results**

Search Banggood using a keyword or provide existing Banggood search or listing page URLs through `startUrls`.

### Input Example

```json
{
  "q": "drone",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `list` | Fetch mode. Only `list` is supported. |
| `q` | string | `drone` | Banggood search query when `startUrls` is empty. |
| `startUrls` | array | Empty | Optional Banggood search or listing page URLs. |
| `maxItems` | integer | `100` | Maximum successful output rows per run. Hard limit: 1,000. |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds. |
| `userAgent` | string | `ActorResearch/1.0` | User-Agent header used for requests. |
| `timeoutSecs` | integer | `300` | Overall actor run timeout in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout for each individual request in seconds. |
| `proxyConfiguration` | object | Proxy off | Optional proxy configuration. Proxy is disabled by default. |

### Output Example

```json
  {
    "url": "https://www.banggood.com/1PC-or-4-PCS-iFlight-XING-E-Pro-2207-1800KV-3-6S-or-2450KV-2750KV-2-4S-Brushless-Motor-for-RC-Drone-FPV-Racing-p-1518196.html",
    "itemTitle": "1PC /4 PCS iFlight XING-E Pro 2207 1800KV 3-6S / 2450KV 2750KV 2-4S Brushless Motor for RC Drone FPV Racing",
    "productKey": "1518196",
    "rating": "4.97",
    "reviewCount": "919",
    "priceValue": "13.99"
  },
```

### Output Fields

| Field | Description |
|---|---|
| `url` | Direct URL of the product page. |
| `itemTitle` | Product title displayed in the search listing. |
| `productKey` | Unique product identifier extracted from the product URL. |
| `rating` | Banggood products rating value. |
| `reviewCount` | Banggood products reviewCount value. |
| `priceValue` | Banggood products priceValue value. |

### Use Cases

- **Product discovery:** Find Banggood listings matching keywords such as `drone` or camera gear.
- **Price monitoring preparation:** Collect product URLs and titles for use in a separate price-tracking workflow.
- **Catalog building:** Export product listings into spreadsheets for offline review.
- **Data integration:** Send structured product records to dashboards, databases, or product analysis tools.

### Limits and Request Pacing

- Default request pacing is approximately one request per second.
- The actor extracts information from publicly accessible HTML pages.
- Changes to Banggood's page structure may affect product extraction until the relevant parsing logic is updated.
- Increase `requestDelayMs` if you encounter rate limiting, and respect Banggood's usage policies.

### Frequently Asked Questions

**What information does this actor collect?**

It collects product URLs, titles, product keys, page URLs, and collection timestamps.

**Can I search using different keywords?**

Yes. Enter any supported search phrase in the `q` parameter, such as `drone`, `camera`, or another product term.

**Can I provide my own Banggood URLs?**

Yes. Add Banggood search or listing page URLs to the `startUrls` array. The actor extracts products from the supplied pages.

**Does this actor collect product prices and stock information?**

No. The current output focuses on product URLs, titles, identifiers, and source metadata. Price and stock fields are not included.

**How are duplicate products handled?**

Products are deduplicated using their `productKey` to avoid storing repeated product records.

**What happens if a request fails?**

The actor continues processing and stores an error row instead of stopping the entire run.

**Can I export the results?**

Yes. Export the dataset in JSON, CSV, Excel, and other formats supported by Apify.

**Can I schedule recurring searches?**

Yes. Configure an Apify schedule to run the actor periodically and refresh your product listing dataset.

**What if Banggood changes its page layout?**

The actor relies on Banggood's product listing HTML structure. Significant markup changes may affect extraction accuracy and require updates to the parsing logic.

### Trademark Notice

Banggood is a marketplace name and trademark belonging to its respective owners. This actor is an independent data collection tool and is not affiliated with, sponsored by, or endorsed by Banggood or its owners.

### Disclaimer

This actor collects product listing information from publicly accessible Banggood pages. Users are responsible for complying with applicable laws, website policies, and data usage requirements when collecting or reusing results.

### Is Web Scraping Legal?

This actor collects publicly accessible product listing information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and Banggood's policies.

- **Personal Data:** Product listings may contain seller or other identifying information. Handle potentially personal information responsibly and follow applicable privacy laws, including GDPR or CCPA where relevant.
- **Copyright and Licensing:** Product titles, descriptions, images, and other marketplace content may be protected by copyright. Avoid unauthorized reproduction or redistribution, and check applicable licensing requirements.
- **Platform Terms and Rate Limits:** Respect Banggood's terms, applicable usage policies, and rate limits. Keep request volumes reasonable.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional if you have questions about your intended use.

For more information, read [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to fetch. list pulls Banggood search or start URL pages.

## `q` (type: `string`):

Banggood search keyword used to build /search/{q}.html when startUrls is empty (tested value: drone).

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

Optional Banggood list or search page URLs. When set, these are fetched instead of building a URL from q.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "list",
  "q": "drone",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "q": "drone"
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/banggood-products-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 = { "q": "drone" }

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/banggood-products-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 '{
  "q": "drone"
}' |
apify call b2b_lead_generation/banggood-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/banggood-products-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/EuO5nEQS0dLeGpcQt/builds/rNlq3rsH6rsP88H6S/openapi.json
