# Get AliExpress prices and sold counts for a keyword

**Use case:** 

Search AliExpress for a keyword and get one clean row per result: price as shown, original price, discount, rating, sold count, image and item link. One-time new-user deals are flagged in priceType, so you compare like with like. Use it to see what a product sells for before you source it.

## Input

```json
{
  "searchQueries": [
    "wireless earbuds"
  ],
  "maxItems": 30,
  "sort": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxRequestRetries": 3,
  "debugLog": false
}
```

## Output

```json
{
  "productId": {
    "label": "Item ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "priceType": {
    "label": "Price type",
    "format": "string"
  },
  "newUserPrice": {
    "label": "New-user price",
    "format": "number"
  },
  "isNewUserPrice": {
    "label": "Price is new-user deal",
    "format": "boolean"
  },
  "originalPrice": {
    "label": "Original price",
    "format": "number"
  },
  "discountPercent": {
    "label": "Discount %",
    "format": "integer"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "searchQuery": {
    "label": "Search term",
    "format": "string"
  },
  "retrievedAt": {
    "label": "Collected at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [AliExpress Search API & Scraper](https://apify.com/sourcing-data-studio/aliexpress-search-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sourcing-data-studio/aliexpress-search-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sourcing-data-studio/aliexpress-search-api.md

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`).
