# Taobao Shop Scraper — Every Listing of a Tmall Store (`thenetaji/taobao-shop-scraper`) Actor

Paste Taobao or Tmall shop links and export the shop's listings with price, price label, category and free shipping flag, plus the shop's described, service and delivery ratings and total listing count on every row.

- **URL**: https://apify.com/thenetaji/taobao-shop-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** E-commerce, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.55 / 1,000 listings

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

## Taobao Shop Scraper

The Taobao Shop Scraper exports the listings of Taobao and Tmall shops. Each row is one listing with its title, price, price label, category and free shipping flag, and carries the shop's described, service and delivery ratings and its total listing count, so a dataset of several shops can be compared directly.

### Accepted input

`shopUrls` takes one shop per line: a link such as `https://shop117548108.taobao.com`, a `/dianpu/` link, or the shop id on its own. Every row of the Search Scraper carries a `shop_id` that can be used here. `maxItems` bounds the rows saved across all shops; `0` disables the bound.

```json
{
  "shopUrls": ["https://shop117548108.taobao.com"],
  "maxItems": 60
}
```

### Response fields

`item_id`, `title`, `url`, `image_url`, `price`, `original_price`, `currency`, `price_hkd`, `price_twd`, `price_label`, `selling_points`, `shop_id`, `shop_name`, `category_id`, `root_category_id`, `free_shipping`, `area_limit`, `description_match_score`, `review_tags`, `seller_id`, `shop_logo`, `shop_description_score`, `shop_service_score`, `shop_delivery_score` and `shop_total_items`.

```json
{
  "item_id": "731757372772",
  "title": "第一卫适用iPhone18Promax钢化膜苹果17promax手机膜",
  "price": 65.21,
  "currency": "CNY",
  "price_label": "天天低价",
  "shop_name": "第一卫旗舰店",
  "seller_id": "2455420587",
  "shop_description_score": 4.7,
  "shop_service_score": 4.8,
  "shop_delivery_score": 4.8,
  "shop_total_items": 576
}
```

### Limits

Taobao shows visitors one page of a shop's listings, up to 60, so a shop with more listings returns its first 60; `shop_total_items` states the full count. An unknown or closed shop is recorded in the log and skipped without a charge.

### Product details enrichment

With `enrichProductDetails` set, each listing also receives its item page: `platform`, `images`, `location`, `payment_methods`, the reviews summary and the newest review. It costs one extra request per listing and is charged only when the item page is returned.

### Related Actors

The [Taobao Scraper](https://apify.com/thenetaji/taobao-scraper) accepts shop links alongside keywords and item links. The [Taobao Product Scraper](https://apify.com/thenetaji/taobao-product-scraper) returns full item pages for the `url` of any row.

# Actor input Schema

## `shopUrls` (type: `array`):

Taobao or Tmall shop links, one per line, such as https://shop117548108.taobao.com. The shop id on its own works too, and every search row carries one as shop_id.

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

Maximum number of listings to save across all inputs. Set 0 for no limit.

## `enrichProductDetails` (type: `boolean`):

Open each listing's item page and add what a listing card cannot show: Tmall or Taobao, every image, ship-from city, payment methods, the shop's credit level and ratings, review count and themes, and the newest review. One extra request per listing, billed per enriched listing.

## Actor input object example

```json
{
  "shopUrls": [
    "https://shop117548108.taobao.com"
  ],
  "maxItems": 40,
  "enrichProductDetails": false
}
```

# Actor output Schema

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

All records scraped by this run

# 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 = {
    "shopUrls": [
        "https://shop117548108.taobao.com"
    ],
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/taobao-shop-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 = {
    "shopUrls": ["https://shop117548108.taobao.com"],
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/taobao-shop-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 '{
  "shopUrls": [
    "https://shop117548108.taobao.com"
  ],
  "maxItems": 40
}' |
apify call thenetaji/taobao-shop-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/taobao-shop-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/IHZsTZRd3kQCr73o6/builds/4eZ7u7YRoYfho92Gr/openapi.json
