# AliExpress Scraper

Get the item name/ price/ rating, etc. from AliExpress by keywords.

- Template page: [https://www.octoparse.com/template/aliexpress-scraper](https://www.octoparse.com/template/aliexpress-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## Pricing

Current price: **$0.06/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from review pages.

## Output

The current workflow extracts 9 fields, including `image_url`, `keyword`, `price`, `product_name`, `product_url`, `ratings`, `sales_amount`, `store_name`, `store_url`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keyword (up to 10,000 per run), Currency, Shipping and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keyword (up to 10,000 per run)

Required. MainKeys Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=200000.

### Currency

Optional. Currency Constraints: minLength=1; maxLength=200.

### Shipping

Optional. Shipping Constraints: minLength=1; maxLength=200.

### Language

Optional. Language Constraints: minLength=1; maxLength=200.

## How to Use

# AliExpress Scraper

Collect structured records from AliExpress search-results pages. Data source: [AliExpress](https://www.aliexpress.us/).

## Pricing

**$0.06/1,000 lines**. Billing is based on the number of output lines produced by the task.

## Inputs

- **Keyword** (Required) — up to 10,000 entries per run.
- **Currency** (Optional)
- **Shipping** (Optional)
- **Language** (Optional)

## Output

Returns structured search-result rows. Key fields include `keyword`, `product_name`, `price`, `ratings`, and `sales_amount`; product and store URLs are also returned.

## Use cases

- Monitor and compare prices or promotions with `price`.
- Benchmark ratings and reputation with `ratings`.
- Compare demand and popularity signals with `sales_amount`.
- Build and compare product or content catalogs.

## How to use

1. Open AliExpress Scraper and click **Try it!**.
2. Complete **Keyword**, **Currency**, **Shipping**, and **Language** as needed, using the formats and limits in the Inputs section.
3. Run the task in the Octoparse cloud.
4. Review the returned rows and export them in the required format.

## Tips

- Start with a focused **Keyword** so the first run is easy to review.
- Keep `keyword` in the export so each row can be traced to its originating input or page.

## Notes

Please note that the parameters should be strictly the same as the AliExpress settings page (case sensitive and space included). Please contact our support team (click Support from the sidebar) if you have any questions about this template or if you would like to have a template customized.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [eBay Listing Page Scraper (by keyword)](https://www.octoparse.com/template/ebay-product-list-scraper-by-keyword)
- [eBay Scraper](https://www.octoparse.com/template/ebay-scraper)
- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)

## Input Schema

```json
{
  "title": "AliExpress Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keyword": {
      "title": "Keyword (up to 10,000 per run)",
      "description": "MainKeys",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "currency": {
      "title": "Currency",
      "description": "Currency",
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "shipping": {
      "title": "Shipping",
      "description": "Shipping",
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "language": {
      "title": "Language",
      "description": "Language",
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keyword"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "currency": "SGD",
  "keyword": [
    "finger puppet"
  ],
  "language": "English",
  "shipping": "Singapore"
}
```

Example 2

```json
{
  "currency": "SGD",
  "keyword": [
    "finger puppet"
  ],
  "language": "English",
  "shipping": "Singapore"
}
```

Example 3

```json
{
  "currency": "SGD",
  "keyword": [
    "finger puppet"
  ],
  "language": "English",
  "shipping": "Singapore"
}
```

Example 4

```json
{
  "currency": "USD",
  "keyword": [
    "bike phone mount"
  ],
  "language": "English"
}
```

Example 5

```json
{
  "currency": "EUR",
  "keyword": [
    "sonic dermaplaning device",
    "smart SOS button bluetooth safety",
    "personal safety alarm necklace",
    "nail polish pen",
    "shower foot rest shaving"
  ],
  "language": "English",
  "shipping": "Netherlands"
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "image_url": {
      "type": "string",
      "description": ""
    },
    "keyword": {
      "type": "string",
      "description": ""
    },
    "price": {
      "type": "string",
      "description": ""
    },
    "product_name": {
      "type": "string",
      "description": ""
    },
    "product_url": {
      "type": "string",
      "description": ""
    },
    "ratings": {
      "type": "string",
      "description": ""
    },
    "sales_amount": {
      "type": "string",
      "description": ""
    },
    "store_name": {
      "type": "string",
      "description": ""
    },
    "store_url": {
      "type": "string",
      "description": ""
    }
  },
  "title": "AliExpress Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sc4eed1546036424796bdb0e67dce5282s.png",
  "keyword": "finger puppet",
  "price": "SG$ 2.41",
  "product_name": "Hand Finger Puppets Plush Set Finger Toys Puppets Family Animal Dolls Cartoon Child Baby Talking Story Finger Puppet Toy",
  "product_url": "https://www.aliexpress.us/item/1005007476954290.html",
  "ratings": "4.9",
  "sales_amount": "3,000+ sold",
  "store_name": "",
  "store_url": ""
}
```

Example 2

```json
{
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/S56a9ac1d9d034fe0915ef311476706e4Y.jpg",
  "keyword": "finger puppet",
  "price": "SG$ 1.47",
  "product_name": "Princess Prince Witch King Elf Plush Finger Hand Puppets Soft Stuffed Doll Funny Role Play Toys Game Sofa Birthday Present Girls",
  "product_url": "https://www.aliexpress.us/item/1005012585552511.html",
  "ratings": "4.5",
  "sales_amount": "2 sold",
  "store_name": "",
  "store_url": ""
}
```

Example 3

```json
{
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/S0d66e694afc1484a9ae5b62b3729c7891.jpg",
  "keyword": "finger puppet",
  "price": "SG$ 1.47",
  "product_name": "Finger Puppets Rubber Farm Animal Finger Puppets Fun Bath Toy Educational Toy，Shower Schools Party Favors",
  "product_url": "https://www.aliexpress.us/item/1005009930130478.html",
  "ratings": "5",
  "sales_amount": "26 sold",
  "store_name": "",
  "store_url": ""
}
```

Example 4

```json
{
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sf750072b03bb4319a17f20cea9b9a84ef.jpg",
  "keyword": "bike phone mount",
  "price": "US $2.28",
  "product_name": "Action Camera Mobile Phone Helmet Bracket Camera Accessories Helmet Fixed Integrated Cycling Shooting Motorcycle Strap Hold G1L2",
  "product_url": "https://www.aliexpress.us/item/1005006862745401.html",
  "ratings": "1",
  "sales_amount": "9 sold",
  "store_name": "",
  "store_url": ""
}
```

Example 5

```json
{
  "image_url": "https://ae-pic-a1.aliexpress-media.com/kf/Sbb180794a9e7427ca34786b404b5bd2aX.jpg",
  "keyword": "sonic dermaplaning device",
  "price": "€ 30,99",
  "product_name": "Sonic Dermaplane Razor for Women Face with 12 Refill Blades Eyebrow and Face Hair Remover Tools",
  "product_url": "https://www.aliexpress.us/item/1005012602412020.html",
  "ratings": "5",
  "sales_amount": "8 sold",
  "store_name": "",
  "store_url": ""
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "aliexpress-scraper",
  "taskName": "AliExpress Scraper",
  "parameters": "{\"currency\":\"SGD\",\"keyword\":[\"finger puppet\"],\"language\":\"English\",\"shipping\":\"Singapore\"}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"currency\":\"SGD\",\"keyword\":[\"finger puppet\"],\"language\":\"English\",\"shipping\":\"Singapore\"}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "aliexpress-scraper",
        "taskName": "AliExpress Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "aliexpress-scraper",
  "taskName": "AliExpress Scraper",
  "parameters": "{\"currency\":\"SGD\",\"keyword\":[\"finger puppet\"],\"language\":\"English\",\"shipping\":\"Singapore\"}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `aliexpress-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/aliexpress-scraper.json)
- [Manifest](https://www.octoparse.com/templates/aliexpress-scraper-manifest.json)
