# AliExpress Product Scraper — Variants, Shipping & Store (`thenetaji/aliexpress-product-scraper`) Actor

Paste AliExpress product links and export each product's every variant with its own price and stock, shipping cost and delivery time to your country, the store, rating, review count and full specifications.

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

## Pricing

from $5.10 / 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

## AliExpress Product Scraper

The Actor reads AliExpress product pages from their links and returns one structured row per product:
every variant with its own price and stock, the options a buyer chooses from, shipping cost and
delivery time to a chosen country, the store, the rating and review count, the specification table
and every gallery image.

Prices are returned as numbers in the requested currency, and shipping is priced for the requested
country, so the same product can be compared across markets by running it with different `country`
and `currency` values.

### Accepted input

`productUrls` is required and takes one product per line, either as a full link such as
`https://www.aliexpress.com/item/1005010225936968.html` or as the number on its own. Links from any
AliExpress country site are accepted, including `aliexpress.us` links. An entry that is not a product
link is skipped with a line in the log, and a product listed twice is read once.

`country` is the two-letter code of the shipping destination and defaults to `US`. `currency` is the
three-letter code for every price and defaults to `USD`.

```json
{
  "productUrls": ["https://www.aliexpress.com/item/1005010225936968.html"],
  "country": "US",
  "currency": "USD"
}
```

### Response fields

```json
{
  "product_id": "1005010225936968",
  "title": "Shockproof Soft Liquid Silicone Phone Case For iPhone 18 17 Air 16 16E 15 14 13 12 11 Pro Max Plus Skin Feeling Protection Cover",
  "url": "https://www.aliexpress.com/item/1005010225936968.html",
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/S19b36571ba9f4b2fb063af2a8a47eaf1L.jpg",
  "price": 1.09,
  "currency": "USD",
  "rating": 4.3,
  "price_min": 1.09,
  "price_max": 1.09,
  "review_count": 70,
  "in_stock": true,
  "store_name": "Zeamar Store",
  "store_id": 2186111,
  "store_url": "https://www.aliexpress.com/store/2186111",
  "store_country": "China",
  "store_opened": "2016-05-17 04:51:07",
  "store_positive_feedback_percent": 91.6,
  "options": [
    { "id": 14, "name": "Color", "values": [{ "id": 691, "name": "Black Currant", "image": "https://ae-pic-a1.aliexpress-media.com/kf/S3ba743103bea4c328d31ed64734d9462r.jpg" }] },
    { "id": 263619383, "name": "Compatibility by Model", "values": [{ "id": 12870894957, "name": "iPhone 13 Pro", "image": null }] }
  ],
  "variants": [
    { "sku_id": "12000051594468162", "attributes": { "Color": "Black Currant", "Compatibility by Model": "iPhone 13 Pro Max" }, "price": 1.09, "price_formatted": "$1.09", "stock": 9999, "available": true }
  ],
  "shipping": [
    { "method": "AliExpress Selection Standard Shipping", "fee": 1.99, "fee_formatted": "$1.99", "free": false, "ship_from": "China", "ship_to": "US", "delivery_days_min": 7, "delivery_days_max": 12, "tracking": true }
  ],
  "properties": [{ "name": "Features", "value": "Matte / Anti-Glare" }],
  "ship_to": "US"
}
```

`price` is the price of the variant AliExpress shows by default; `price_min` and `price_max` span
every variant. Each entry in `variants` names its option values in `attributes`, using the option
names in `options`, and carries its own `price`, `stock` and `available` flag. Further fields not
shown above are `sales_summary`, `wishlist_count`, `category_id`, `category_path`, `images` and
`description_url`, the last being AliExpress's hosted page with the seller's full
description.

### Behaviour on missing products

A product that no longer exists, and a product that AliExpress does not sell to the requested
`country`, both produce no row. Each is noted in the run log, the run continues with the remaining
links, and neither is billed. Re-running a product that was skipped for one country with a different
`country` value is the way to check where it is sold.

### Frequently asked questions

**Why does the same product show a different price for a different `country`?**
AliExpress prices products and shipping per destination. `shipping` lists the options to the
requested country only, and a product with no shipping option to that country is treated as not
sold there.

**Which link formats are accepted?**
Any link containing `/item/<number>.html`, from any AliExpress country site, and the bare number.
Store pages, category pages and search links are not product links and are skipped.

**Can products be found by keyword instead?**
Not with this Actor. The [AliExpress Search Scraper](https://apify.com/thenetaji/aliexpress-search-scraper)
searches by keyword, and with its product details option enabled it adds the same variant, shipping
and store fields to every search result.

# Actor input Schema

## `productUrls` (type: `array`):

AliExpress product links, one per line, such as https://www.aliexpress.com/item/1005010225936968.html. The number on its own works too. Links from any AliExpress country site are accepted.

## `country` (type: `string`):

Two-letter country code to price shipping for, such as US, GB or DE. It also decides availability: a product AliExpress does not sell to that country is skipped and not charged.

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

Three-letter currency code for every price, such as USD, EUR or GBP.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.aliexpress.com/item/1005010225936968.html"
  ],
  "country": "US",
  "currency": "USD"
}
```

# 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 = {
    "productUrls": [
        "https://www.aliexpress.com/item/1005010225936968.html"
    ],
    "country": "US",
    "currency": "USD"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/aliexpress-product-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 = {
    "productUrls": ["https://www.aliexpress.com/item/1005010225936968.html"],
    "country": "US",
    "currency": "USD",
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/aliexpress-product-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 '{
  "productUrls": [
    "https://www.aliexpress.com/item/1005010225936968.html"
  ],
  "country": "US",
  "currency": "USD"
}' |
apify call thenetaji/aliexpress-product-scraper --silent --output-dataset

```

## MCP server setup

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