# AliExpress Scraper (`epctex/aliexpress-scraper`) Actor

Effortlessly extract descriptions, images, feedback, questions, prices, and shipping information from AliExpress. Customize country, language, and region preferences for enhanced data gathering.

- **URL**: https://apify.com/epctex/aliexpress-scraper.md
- **Developed by:** [epctex](https://apify.com/epctex) (community)
- **Categories:** E-commerce
- **Stats:** 2,080 total users, 20 monthly users, 96.7% runs succeeded, 58 bookmarks
- **User rating**: 4.97 out of 5 stars

## Pricing

from $2.80 / 1,000 results

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

## Actor - Aliexpress Scraper

### Aliexpress scraper

Since Aliexpress doesn't provide an API, this actor should help you to retrieve data from it.

The Aliexpress data scraper supports the following features:

- Scrape product details - you can scrape attributes like images, shipping, and metadata. You can find details below.
- Scrape product descriptions - you can scrape the description HTML of the product.
- Scrape feedback on product detail - you can scrape user's feedback (name, country, original content, translated content)
- Scrape questions of product detail - you can scrape buyer's Q\&A of product
- You can set language, currency, and region for shipping

#### Aliexpress specific

Don't worry when you get a little bit different products than you saw on the browser page. Aliexpress is ordering products differently for each user.

### Need to find product pairs between Aliexpress and another online shop?

Use the [AI Product Matcher](https://apify.com/equidem/ai-product-matcher?fpr=yhdrb)🔗. This AI model allows you to compare items from different web stores, identifying exact matches and comparing real-time data obtained via web scraping.

With the AI Product Matcher, you can use scraped product data to monitor product matches across the industry, implement dynamic pricing for your website, replace or complement manual mapping, and obtain realistic estimates against your competition for upcoming promo campaigns. Most importantly, it is relatively easy to get started with (just follow [this guide](https://blog.apify.com/product-matching-ai-pricing-intelligence-web-scraping/)) and is able to **match thousands of product pairs**.

### Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from [here](https://github.com/epctex-support/aliexpress-scraper/issues).

### Input Parameters

The input of this scraper should be JSON containing the list of pages on Aliexpress that should be visited. Possible fields are:

- `startUrls`: (Optional) (Array) List of Aliexpress URLs. You should only provide category detail or product detail URLs.

- `searchTerms`: (Optional) (Array) List of terms that can be searched in aliexpress search engine.

- `language`: (Optional) (String) Select a language from the list in which will be product's default is English (en_US).

- `shipTo`: (Optional) (String) Select the country where the products will be shipped default is US.

- `currency`: (Optional) (String) Select the currency in which the product's price will default is USD.

- `searchInSubcategories`: (Optional) (Boolean) You can turn off searching in subcategories. Default is true.

- `includeDescription`: (Optional) (Boolean) If you want to fetch description HTML you can enable this option. However, keep in mind that fetching description takes one extra request which makes your actor a bit slower and takes a bit much more resources.

- `maxFeedback`: (Optional) (Number)  Max count of scraped feedback.

- `maxQuestions`: (Optional) (Number)  Max count of scraped buyer Q\&A.

- `maxItems`: (Optional) (Number)  You can limit scraped products. This should be useful when you search through all subcategories. The default is 1000 products.

- `proxy`: (Required) (Proxy Object) Proxy configuration.

- `extendOutputFunction`: (Optional) (String) Function that takes a JQuery handle ($) as an argument and returns an object with data.

This solution requires the use of **Proxy servers**, either your own proxy servers or you can use [Apify Proxy](https://www.apify.com/docs/proxy).

#### Tip

When you want to scrape over a specific listing URL, just copy and paste the link as one of the **startUrl**.

When you add category URL to **startUrls** set **start** and **end** page and let **searchInSubcategories** parameter on
the logic of the start and end page will be propagated to all subcategories so in fact actors scrape much more products than you assume.

#### Compute Unit Consumption

The actor is optimized to run blazing fast and scrape many listings as possible. Therefore, it forefronts all listing detail requests. If the actor doesn't block very often it'll scrape 100 listings in 2 minutes with ~0.03-0.05 compute units.

#### Aliexpress Scraper Input example

```json
{
  "searchTerms": ["mobile"],
  "language": "en_US",
  "shipTo": "US",
  "currency": "USD",
  "includeDescription": false,
  "proxy":{"useApifyProxy": true},
  "startUrls":   [
    { "url": "https://www.aliexpress.com/category/200003482/dresses.html" },
    { "url": "https://www.aliexpress.com/item/32940810951.html" }
  ],
  "maxFeedbacks": 5,
  "maxQuestions":3
}

```

### During the Run

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any languague (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this Aliexpress actor.

### Aliexpress Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any languague (Python, PHP, Node JS/NPM). See the FAQ or <a href="https://www.apify.com/docs/api" target="blank">our API reference</a> to learn more about getting results from this Aliexpress actor.

### Scraped Aliexpress Posts

The structure of each item in Aliexpress products looks like this:

```json
{
	"id": 3256806260897404,
	"link": "https://www.aliexpress.com/item/3256806260897404.html",
	"ownerMemberId": 2667528551,
	"title": "Men's New Fashion Rotating Button Sneakers Men's Thick Running Shoes Women's Thick Sole Slow Running Shoes Couple Street Zapatos",
	"averageStar": "4.5",
	"soldCount": 136,
	"descriptionURL": "https://aeproductsourcesite.alicdn.com/product/description/pc/v2/en_US/desc.htm?productId=1005006447212156&key=S0af060e4513e4363a703cec1a25301c8b.zip&token=807dc7e3021178e9ad324283a576d32d",
	"store": {
		"positiveNum": 530,
		"positiveRate": "94.8",
		"name": "TX Sports Products Supplier Store",
		"id": 1102143012,
		"url": "https://www.aliexpress.com/store/1102142044",
		"topRatedSeller": false
	},
	"specs": [
		{
			"Hign-concerned Chemical": "None"
		},
		{
			"Material": "POLYESTER"
		},
		{
			"Upper Height": "low"
		},
		{
			"Sports Type": "Lunlar"
		},
		{
			"Insole Material": "EVA"
		},
		{
			"Model Number": "YC2302 001"
		},
		{
			"Technology": "Flywire"
		},
		{
			"Applicable Place": "Hard Court"
		},
		{
			"Level Of Practice": "Beginner"
		},
		{
			"Fit": "Fits true to size, take your normal size"
		},
		{
			"For Distance": "Super Marathon(>100km)"
		},
		{
			"Function": "Motion Control"
		},
		{
			"Release Date": "spring2019"
		},
		{
			"Closure Type": "Lace-up"
		},
		{
			"Feature": "Breathable"
		},
		{
			"Upper Material": "Mesh"
		},
		{
			"Outsole Material": "tpu"
		},
		{
			"Gender": "Unisex"
		},
		{
			"Brand Name": "COMFYTRIP"
		},
		{
			"Origin": "Mainland China"
		},
		{
			"CN": "Fujian"
		},
		{
			"Department Name": "ADULT"
		},
		{
			"Athletic Shoe Type": "Running Shoes"
		},
		{
			"Color": "WhiteGreen/WhiteBlue/Black"
		},
		{
			"Feature1": "INS Trendy High-Top Sock Shoes"
		},
		{
			"Feature2": "Ultralight Men Outdoor Sports Shoes"
		},
		{
			"Feature3": "Anti-Slip Jogging Street Footwear"
		},
		{
			"Feature4": "High Quality Dropshipping Shoes"
		},
		{
			"Feature5": "2022 New Summer Arrivals"
		},
		{
			"Feature6": "Dropshipping And Wholesale Shoes"
		},
		{
			"Feature7": "Support Brand Customization"
		},
		{
			"Feature8": "Size EU 38-45"
		}
	],
	"categories": [],
	"wishedCount": 515,
	"quantity": 1761,
	"photos": [
		"https://ae01.alicdn.com/kf/Sde4c0eeea8034cc5927e9020e0bd7903U/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/Sd3a6b3c1d20442649f055ab593d3db23b/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/S7f65cdce2231412297bfb5e5f83dc03eG/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/S9d0da0d04f8b4b55b999d192aba8f84e4/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/S15a01a363d3541cfad11f65236ccabb9V/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/S6dc93f669fb04b5cb557b396611aa2acG/Men-s-New-Fashion-Rotating-Button-Sneakers-Men-s-Thick-Running-Shoes-Women-s-Thick-Sole.jpg",
		"https://ae01.alicdn.com/kf/Se3b534ec8e074799b42a78eabde9534ad.jpg_640x640.jpg_.webp",
		"https://ae01.alicdn.com/kf/Sd33452c7ef234fe6939e053bb82722f5Q.jpg_640x640.jpg_.webp",
		"https://ae01.alicdn.com/kf/See4f76ef324e48ed99957f336272ba31S.jpg_640x640.jpg_.webp",
		"https://ae01.alicdn.com/kf/S317a69ceb4574c909a301594994f598ar.jpg_640x640.jpg_.webp",
		"https://ae01.alicdn.com/kf/Sc374b01c2d6543f4a3b61f4a7ba4a70eN.jpg_640x640.jpg_.webp"
	],
	"skuOptions": [
		{
			"id": 14,
			"name": "Color",
			"values": [
				{
					"definitionName": "TX-001-Black",
					"displayName": "TX-001-Black",
					"name": "TX-001-Black",
					"photo": "https://ae01.alicdn.com/kf/Se3b534ec8e074799b42a78eabde9534ad.jpg"
				},
				{
					"definitionName": "TX-001-Beige",
					"displayName": "TX-001-Beige",
					"name": "TX-001-Beige",
					"photo": "https://ae01.alicdn.com/kf/Sd33452c7ef234fe6939e053bb82722f5Q.jpg"
				},
				{
					"definitionName": "YC2302-WhiteGreen",
					"displayName": "YC2302-WhiteGreen",
					"name": "YC2302-WhiteGreen",
					"photo": "https://ae01.alicdn.com/kf/See4f76ef324e48ed99957f336272ba31S.jpg"
				},
				{
					"definitionName": "YC2302-WhiteBlue",
					"displayName": "YC2302-WhiteBlue",
					"name": "YC2302-WhiteBlue",
					"photo": "https://ae01.alicdn.com/kf/S317a69ceb4574c909a301594994f598ar.jpg"
				},
				{
					"definitionName": "YC2302-Black",
					"displayName": "YC2302-Black",
					"name": "YC2302-Black",
					"photo": "https://ae01.alicdn.com/kf/Sc374b01c2d6543f4a3b61f4a7ba4a70eN.jpg"
				}
			]
		},
		{
			"id": 200000124,
			"name": "Shoe Size",
			"values": [
				{
					"displayName": "38",
					"name": "38"
				},
				{
					"displayName": "39",
					"name": "39"
				},
				{
					"displayName": "40",
					"name": "40"
				},
				{
					"displayName": "41",
					"name": "41"
				},
				{
					"displayName": "42",
					"name": "42"
				},
				{
					"displayName": "43",
					"name": "43"
				},
				{
					"displayName": "44",
					"name": "44"
				},
				{
					"displayName": "45",
					"name": "45"
				}
			]
		}
	],
	"skuPaths": [
		{
			"path": "14:1254;200000124:200000898",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:200000898",
			"skuId": 12000037205206266,
			"skuIdStr": "12000037205206266",
			"skuStock": 42
		},
		{
			"path": "14:1254;200000124:200000364",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:200000364",
			"skuId": 12000037205206268,
			"skuIdStr": "12000037205206267",
			"skuStock": 48
		},
		{
			"path": "14:193;200000124:100010487",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:100010487",
			"skuId": 12000037205206264,
			"skuIdStr": "12000037205206264",
			"skuStock": 50
		},
		{
			"path": "14:193;200000124:3116",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:3116",
			"skuId": 12000037205206264,
			"skuIdStr": "12000037205206265",
			"skuStock": 49
		},
		{
			"path": "14:1254;200000124:200000337",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:200000337",
			"skuId": 12000037205206270,
			"skuIdStr": "12000037205206270",
			"skuStock": 43
		},
		{
			"path": "14:1254;200000124:200000338",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:200000338",
			"skuId": 12000037205206272,
			"skuIdStr": "12000037205206271",
			"skuStock": 38
		},
		{
			"path": "14:1254;200000124:100013888",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:100013888",
			"skuId": 12000037205206268,
			"skuIdStr": "12000037205206268",
			"skuStock": 40
		},
		{
			"path": "14:1254;200000124:100010483",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:100010483",
			"skuId": 12000037205206268,
			"skuIdStr": "12000037205206269",
			"skuStock": 38
		},
		{
			"path": "14:193;200000124:200000898",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:200000898",
			"skuId": 12000037205206258,
			"skuIdStr": "12000037205206258",
			"skuStock": 50
		},
		{
			"path": "14:193;200000124:200000364",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:200000364",
			"skuId": 12000037205206260,
			"skuIdStr": "12000037205206259",
			"skuStock": 50
		},
		{
			"path": "14:771;200000124:100010487",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:100010487",
			"skuId": 12000037205206256,
			"skuIdStr": "12000037205206256",
			"skuStock": 49
		},
		{
			"path": "14:771;200000124:3116",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:3116",
			"skuId": 12000037205206256,
			"skuIdStr": "12000037205206257",
			"skuStock": 50
		},
		{
			"path": "14:193;200000124:200000337",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:200000337",
			"skuId": 12000037205206262,
			"skuIdStr": "12000037205206262",
			"skuStock": 50
		},
		{
			"path": "14:193;200000124:200000338",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:200000338",
			"skuId": 12000037205206264,
			"skuIdStr": "12000037205206263",
			"skuStock": 48
		},
		{
			"path": "14:193;200000124:100013888",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:100013888",
			"skuId": 12000037205206260,
			"skuIdStr": "12000037205206260",
			"skuStock": 49
		},
		{
			"path": "14:193;200000124:100010483",
			"salable": true,
			"skuAttr": "14:193#TX-001-Beige;200000124:100010483",
			"skuId": 12000037205206260,
			"skuIdStr": "12000037205206261",
			"skuStock": 50
		},
		{
			"path": "14:771;200000124:200000898",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:200000898",
			"skuId": 12000037205206250,
			"skuIdStr": "12000037205206250",
			"skuStock": 49
		},
		{
			"path": "14:771;200000124:200000364",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:200000364",
			"skuId": 12000037205206252,
			"skuIdStr": "12000037205206251",
			"skuStock": 50
		},
		{
			"path": "14:771;200000124:200000337",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:200000337",
			"skuId": 12000037205206254,
			"skuIdStr": "12000037205206254",
			"skuStock": 48
		},
		{
			"path": "14:771;200000124:200000338",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:200000338",
			"skuId": 12000037205206256,
			"skuIdStr": "12000037205206255",
			"skuStock": 50
		},
		{
			"path": "14:771;200000124:100013888",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:100013888",
			"skuId": 12000037205206252,
			"skuIdStr": "12000037205206252",
			"skuStock": 50
		},
		{
			"path": "14:771;200000124:100010483",
			"salable": true,
			"skuAttr": "14:771#TX-001-Black;200000124:100010483",
			"skuId": 12000037205206252,
			"skuIdStr": "12000037205206253",
			"skuStock": 50
		},
		{
			"path": "14:350850;200000124:100010487",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:100010487",
			"skuId": 12000037205206288,
			"skuIdStr": "12000037205206288",
			"skuStock": 47
		},
		{
			"path": "14:350850;200000124:3116",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:3116",
			"skuId": 12000037205206288,
			"skuIdStr": "12000037205206289",
			"skuStock": 46
		},
		{
			"path": "14:350850;200000124:200000898",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:200000898",
			"skuId": 12000037205206282,
			"skuIdStr": "12000037205206282",
			"skuStock": 47
		},
		{
			"path": "14:350850;200000124:200000364",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:200000364",
			"skuId": 12000037205206284,
			"skuIdStr": "12000037205206283",
			"skuStock": 49
		},
		{
			"path": "14:365458;200000124:100010487",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:100010487",
			"skuId": 12000037205206280,
			"skuIdStr": "12000037205206280",
			"skuStock": 41
		},
		{
			"path": "14:365458;200000124:3116",
			"salable": false,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:3116",
			"skuId": 12000037205206280,
			"skuIdStr": "12000037205206281",
			"skuStock": 0
		},
		{
			"path": "14:350850;200000124:200000337",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:200000337",
			"skuId": 12000037205206286,
			"skuIdStr": "12000037205206286",
			"skuStock": 43
		},
		{
			"path": "14:350850;200000124:200000338",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:200000338",
			"skuId": 12000037205206288,
			"skuIdStr": "12000037205206287",
			"skuStock": 47
		},
		{
			"path": "14:350850;200000124:100013888",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:100013888",
			"skuId": 12000037205206284,
			"skuIdStr": "12000037205206284",
			"skuStock": 47
		},
		{
			"path": "14:350850;200000124:100010483",
			"salable": true,
			"skuAttr": "14:350850#YC2302-Black;200000124:100010483",
			"skuId": 12000037205206284,
			"skuIdStr": "12000037205206285",
			"skuStock": 44
		},
		{
			"path": "14:365458;200000124:200000898",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:200000898",
			"skuId": 12000037205206274,
			"skuIdStr": "12000037205206274",
			"skuStock": 48
		},
		{
			"path": "14:365458;200000124:200000364",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:200000364",
			"skuId": 12000037205206276,
			"skuIdStr": "12000037205206275",
			"skuStock": 49
		},
		{
			"path": "14:1254;200000124:100010487",
			"salable": true,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:100010487",
			"skuId": 12000037205206272,
			"skuIdStr": "12000037205206272",
			"skuStock": 43
		},
		{
			"path": "14:1254;200000124:3116",
			"salable": false,
			"skuAttr": "14:1254#YC2302-WhiteGreen;200000124:3116",
			"skuId": 12000037205206272,
			"skuIdStr": "12000037205206273",
			"skuStock": 0
		},
		{
			"path": "14:365458;200000124:200000337",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:200000337",
			"skuId": 12000037205206278,
			"skuIdStr": "12000037205206278",
			"skuStock": 36
		},
		{
			"path": "14:365458;200000124:200000338",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:200000338",
			"skuId": 12000037205206280,
			"skuIdStr": "12000037205206279",
			"skuStock": 46
		},
		{
			"path": "14:365458;200000124:100013888",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:100013888",
			"skuId": 12000037205206276,
			"skuIdStr": "12000037205206276",
			"skuStock": 45
		},
		{
			"path": "14:365458;200000124:100010483",
			"salable": true,
			"skuAttr": "14:365458#YC2302-WhiteBlue;200000124:100010483",
			"skuId": 12000037205206276,
			"skuIdStr": "12000037205206277",
			"skuStock": 42
		}
	],
	"prices": [
		{
			"skuId": "12000037205206266",
			"discountPrice": "$23.19"
		},
		{
			"skuId": "12000037205206267",
			"discountPrice": "$23.20"
		},
		{
			"skuId": "12000037205206264",
			"discountPrice": "$32.13"
		},
		{
			"skuId": "12000037205206265",
			"discountPrice": "$25.55"
		},
		{
			"skuId": "12000037205206270",
			"discountPrice": "$24.24"
		},
		{
			"skuId": "12000037205206271",
			"discountPrice": "$24.86"
		},
		{
			"skuId": "12000037205206268",
			"discountPrice": "$23.15"
		},
		{
			"skuId": "12000037205206269",
			"discountPrice": "$24.01"
		},
		{
			"skuId": "12000037205206258",
			"discountPrice": "$24.14"
		},
		{
			"skuId": "12000037205206259",
			"discountPrice": "$24.46"
		},
		{
			"skuId": "12000037205206256",
			"discountPrice": "$25.08"
		},
		{
			"skuId": "12000037205206257",
			"discountPrice": "$32.13"
		},
		{
			"skuId": "12000037205206262",
			"discountPrice": "$26.06"
		},
		{
			"skuId": "12000037205206263",
			"discountPrice": "$24.81"
		},
		{
			"skuId": "12000037205206260",
			"discountPrice": "$23.76"
		},
		{
			"skuId": "12000037205206261",
			"discountPrice": "$25.58"
		},
		{
			"skuId": "12000037205206250",
			"discountPrice": "$22.62"
		},
		{
			"skuId": "12000037205206251",
			"discountPrice": "$24.46"
		},
		{
			"skuId": "12000037205206254",
			"discountPrice": "$24.53"
		},
		{
			"skuId": "12000037205206255",
			"discountPrice": "$26.70"
		},
		{
			"skuId": "12000037205206252",
			"discountPrice": "$24.94"
		},
		{
			"skuId": "12000037205206253",
			"discountPrice": "$25.58"
		},
		{
			"skuId": "12000037205206288",
			"discountPrice": "$25.10"
		},
		{
			"skuId": "12000037205206289",
			"discountPrice": "$25.84"
		},
		{
			"skuId": "12000037205206282",
			"discountPrice": "$22.56"
		},
		{
			"skuId": "12000037205206283",
			"discountPrice": "$22.61"
		},
		{
			"skuId": "12000037205206280",
			"discountPrice": "$25.32"
		},
		{
			"skuId": "12000037205206281",
			"discountPrice": "$32.13"
		},
		{
			"skuId": "12000037205206286",
			"discountPrice": "$24.32"
		},
		{
			"skuId": "12000037205206287",
			"discountPrice": "$24.60"
		},
		{
			"skuId": "12000037205206284",
			"discountPrice": "$23.82"
		},
		{
			"skuId": "12000037205206285",
			"discountPrice": "$23.34"
		},
		{
			"skuId": "12000037205206274",
			"discountPrice": "$22.69"
		},
		{
			"skuId": "12000037205206275",
			"discountPrice": "$22.69"
		},
		{
			"skuId": "12000037205206272",
			"discountPrice": "$25.74"
		},
		{
			"skuId": "12000037205206273",
			"discountPrice": "$32.13"
		},
		{
			"skuId": "12000037205206278",
			"discountPrice": "$25.04"
		},
		{
			"skuId": "12000037205206279",
			"discountPrice": "$24.80"
		},
		{
			"skuId": "12000037205206276",
			"discountPrice": "$22.99"
		},
		{
			"skuId": "12000037205206277",
			"discountPrice": "$23.95"
		}
	],
	"shipping": [
		{
			"provider": "Aliexpress Selection Standard",
			"isShippable": true,
			"isFree": false,
			"price": "$1.99",
			"deliveryDate": "Nov 01",
			"from": "China",
			"to": "United States",
			"isTracked": true
		}
	],
	"banner": {
		"type": "daily",
		"code": "new_user_platform_allowance_atm",
		"endTimer": {}
	},
	"userFeedbacks": [],
	"questionAndAnswers": []
}

```

### Contact

Please visit us through [epctex.com](https://epctex.com) to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in [epctex.com](https://epctex.com). In need of support? <business@epctex.com> is at your service.

# Actor input Schema

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

URLs for the scraper to start from - these should be category or product detail URLs

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

Set the maximum number of items to crawl per run

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

Search terms to use for full-text search in AliExpress page

## `searchInSubcategories` (type: `boolean`):

Tells the scraper whether it should also scrape subcategories

## `language` (type: `string`):

Select your language

## `shipTo` (type: `string`):

Select your country

## `currency` (type: `string`):

Select your currency

## `includeDescription` (type: `boolean`):

Include description for products - note that this might slightly slow down the scraper

## `maxFeedbacks` (type: `integer`):

Set maximum number of feedback entries

## `maxQuestions` (type: `integer`):

Set maximum number of scraped Q\&A entries

## `proxy` (type: `object`):

Select proxies to be used by your crawler

## `extendOutputFunction` (type: `string`):

Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output

## Actor input object example

```json
{
  "startUrls": [
    "https://aliexpress.com/category/100003109/women-clothing.html",
    "https://www.aliexpress.com/item/32940810951.html"
  ],
  "maxItems": 10,
  "searchInSubcategories": true,
  "language": "en_US",
  "shipTo": "US",
  "currency": "USD",
  "includeDescription": false,
  "maxFeedbacks": 0,
  "maxQuestions": 0,
  "proxy": {
    "useApifyProxy": true
  },
  "extendOutputFunction": "($) => { return {} }"
}
```

# 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 = {
    "startUrls": [
        "https://aliexpress.com/category/100003109/women-clothing.html",
        "https://www.aliexpress.com/item/32940810951.html"
    ],
    "maxItems": 10,
    "language": "en_US",
    "shipTo": "US",
    "currency": "USD",
    "proxy": {
        "useApifyProxy": true
    },
    "extendOutputFunction": ($) => { return {} }
};

// Run the Actor and wait for it to finish
const run = await client.actor("epctex/aliexpress-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 = {
    "startUrls": [
        "https://aliexpress.com/category/100003109/women-clothing.html",
        "https://www.aliexpress.com/item/32940810951.html",
    ],
    "maxItems": 10,
    "language": "en_US",
    "shipTo": "US",
    "currency": "USD",
    "proxy": { "useApifyProxy": True },
    "extendOutputFunction": "($) => { return {} }",
}

# Run the Actor and wait for it to finish
run = client.actor("epctex/aliexpress-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 '{
  "startUrls": [
    "https://aliexpress.com/category/100003109/women-clothing.html",
    "https://www.aliexpress.com/item/32940810951.html"
  ],
  "maxItems": 10,
  "language": "en_US",
  "shipTo": "US",
  "currency": "USD",
  "proxy": {
    "useApifyProxy": true
  },
  "extendOutputFunction": "($) => { return {} }"
}' |
apify call epctex/aliexpress-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,epctex/aliexpress-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/xYHAh66JcxDGnzs4G/builds/nM2B6aFtvgeAZ5Ia2/openapi.json
