# Alibaba Search Scraper: Prices, MOQ, Suppliers | $0.60/1K (`architekture/alibaba-search-scraper`) Actor

Alibaba search results scraper: product title, URL, price range and currency, MOQ, supplier name, country and years, Gold and Verified flags, ratings, sold counts and images for any keyword, with price and MOQ filters. No login. Only-new-listings mode. Pay per result: $0.60 per 1,000 products.

- **URL**: https://apify.com/architekture/alibaba-search-scraper.md
- **Developed by:** [architek.earth](https://apify.com/architekture) (community)
- **Categories:** E-commerce, Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.60 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Alibaba Search Scraper: Prices, MOQ, Suppliers | $0.60/1K

**Recorded run: 1,000 Alibaba products for 2 keywords in 53 seconds** (2026-11-17, build 0.1.1, run `BvbmSXnRDbahMIiAZ`, 22 result pages, 0 retries, 1,000 charged). A bounded sample, not a whole-catalogue benchmark.

architek.earth: an independent data studio. Pay-per-result scrapers with recorded runs, stable schemas and free status rows, built for people and AI agents.

**What's new**

- **2026-11-17**: First release. Alibaba.com search results for any keyword: title, product URL, price range and currency, MOQ, supplier name, country and years, Gold, Verified and Trade Assurance flags, ratings, sold counts, images and certifications. Price and MOQ filters, only-new-listings mode and a free 20-product preview. Launch price $0.60 per 1,000 products until 2026-12-31.

Alibaba Search Scraper returns the product cards that Alibaba.com shows for a search, one row per product, in Alibaba's ranking order, 48 per results page. It reads the public JSON service behind the search results with no browser, no account and no captcha solving.

| Source | Data | From | Standout fields |
|---|---|---|---|
| Alibaba.com search results | Product listings with supplier summary | $0.60 / 1,000 products | `priceMin`, `priceMax`, `minOrder`, `supplierCountry`, `supplierYears`, `verifiedSupplier`, `soldCount` |

### ✅ Why choose this scraper

- **Sourcing fields as numbers.** `priceMin`, `priceMax` and `currency` are parsed from the price range, `minOrder` from the MOQ text, `supplierYears` from the store age; the text as shown stays in `priceText` and `minOrderText`.
- **Supplier trust signals on every row.** `goldSupplier`, `verifiedSupplier`, `verifiedPro`, `tradeAssurance`, `responseRate`, `supplierRating` and `supplierReviewCount`, plus the storefront link in `supplierUrl`.
- **Filters that Alibaba applies at the source.** `minPrice`, `maxPrice` (USD) and `maxMinOrder` go to Alibaba with the search. In recorded run `4Ad6Ckeg53oGu74tG` (LED strip, $1 to $5, MOQ up to 100) all 60 rows were inside both filters.
- **Many keywords in one run, deduplicated.** Up to 50 keywords with a cap per keyword. Alibaba repeats products on later pages; repeats are dropped before delivery and never charged.
- **Only new listings on a schedule.** With `incrementalMode` the scraper remembers every product it delivered under your `stateKey`. In recorded run `3h2PapybjjjxUj53w` the same two keywords were checked again: 897 known products skipped, 103 new ones delivered and charged.

#### Tested head-to-head (2026-11-17)

Our numbers come from our own recorded runs only; the field numbers are public store statistics. We did not run any competing product.

| | This scraper | Field (public store data, 2026-11-17) |
|---|---|---|
| Price per 1,000 search rows | $0.60, no start fee | Leader $4.99 + $0.005 start; #2 by users $3.00; lowest priced top-10 member $0.75 |
| Recorded runs | 5 of 5 succeeded: `BvbmSXnRDbahMIiAZ`, `4Ad6Ckeg53oGu74tG`, `NKQr6rNe1APig8DAo`, `FMD68iJz0w7LA2vCd`, `3h2PapybjjjxUj53w` | Leader: 7.8% of its 4,894 runs in 30 days did not succeed (failed, aborted or timed out) |
| Only-new-listings mode | `incrementalMode` + `stateKey` | Not offered by the two most used members |
| Several keywords per run, cap per keyword | Yes, up to 50 | Varies |
| Product detail page (SKU matrix, specs, description) | **No** | The leader sells it at $4.99 / 1,000 |

Five runs are a small sample; they do not show that this scraper is more reliable than any other.

### ⚠️ Worth knowing up front

- **Search result rows only.** No product detail pages: no SKU or variant matrix, no full specification table, no description, no price tiers per quantity, no supplier profile page and no reviews text. Alibaba puts those pages behind a slider captcha for automated visitors, and this scraper does not solve captchas. If you need those fields, this is not the right tool.
- Every row comes from Alibaba's own search result card, so a field is only as complete as the card. In the 1,000-row recorded run: `rating` (product score) was set on 101 rows, `supplierRating` on 814, `salesText` / `soldCount` on 265, `deliveryText` on 276, `promotionPriceText` on 58. Missing values are `null`, never guessed.
- `rating` is the product review score; Alibaba shows 0.0 for products without reviews, which is returned as `null`. `supplierRating` and `supplierReviewCount` describe the supplier's store, not the product.
- Prices are what the card shows, usually in USD. A few suppliers list in EUR or another currency (`currency` follows), and one card in the recorded run said "Other 4.76-20.00": `currency` is `null` there. `minPrice` and `maxPrice` filters are in USD as Alibaba applies them.
- `deliveryText` ("Delivery by Nov 25") depends on the ship-to country Alibaba assumes for the request; treat it as indicative.
- Alibaba stops returning new products after roughly 60 to 100 pages of 48 per keyword and repeats earlier ones; the scraper stops a keyword after 2 pages without a new product. Misspelled or nonsense keywords still return Alibaba's closest matches, not an empty list.
- Sponsored placements are included and flagged `isAd: true` (9 of 1,000 rows in the recorded run).
- Invalid input, a keyword with no products (`NO_RESULTS`), nothing new since the last run (`NO_NEW_PRODUCTS`), a verification wall after one new connection (`BLOCKED`), an unexpected answer (`SOURCE_CHANGED`, `SOURCE_UNAVAILABLE`), and runs stopped by the time limit, your spending limit or the preview limit (`PARTIAL`, `BUDGET_LIMIT`, `PREVIEW_LIMIT`) each write a free status row (`"recordType": "status"`).

### ⚡ Try the example

The free preview returns up to 20 products per run and never charges. It is on in the input form and off by default through the API.

Open the [input page](https://console.apify.com/actors/3RacjZRWcxGynTPdO/input), switch to JSON, paste this and start:

```json
{
  "keywords": ["bluetooth speaker"],
  "maxResults": 20,
  "preview": true
}
```

Recorded preview run `NKQr6rNe1APig8DAo`: 20 products in 16.8 seconds, 0 charged. Set `preview` to `false` for paid collection and raise `maxResults` as needed.

### ⚙️ Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `keywords` | array | none | Search terms as you would type them on Alibaba.com. Up to 50 per run; duplicates are merged. |
| `maxResults` | integer | `100` | Most products delivered and charged per keyword, in Alibaba's ranking order (1 to 5,000). |
| `minPrice` | number | none | Only products whose price range reaches this price (USD), as Alibaba filters it. |
| `maxPrice` | number | none | Only products whose price range starts at or below this price (USD). |
| `maxMinOrder` | integer | none | Only products you can order in this quantity or less (MOQ). |
| `incrementalMode` | boolean | `false` | Deliver only products that earlier runs with the same `stateKey` did not deliver. |
| `stateKey` | string | none | Any name for this collection. Needed for incremental mode; also lets a stopped run continue without paying twice. |
| `preview` | boolean | `false` (form: `true`) | Up to 20 products, never charged. |
| `feedback` | string | none | Optional note for the maintainers. Logged and read by a human; never changes output. |

#### Input recipes

Public example tasks are not published yet. Each recipe below is paste-ready JSON for the [input page](https://console.apify.com/actors/3RacjZRWcxGynTPdO/input) (JSON tab).

- **Supplier shortlist for one product:** `{"keywords": ["silicone baking mat"], "maxResults": 200}`
- **Small test orders under $5:** `{"keywords": ["led strip", "phone case"], "maxPrice": 5, "maxMinOrder": 10, "maxResults": 100}`
- **Price band research across keywords:** `{"keywords": ["yoga mat", "resistance bands", "foam roller"], "minPrice": 3, "maxPrice": 15, "maxResults": 300}`
- **Weekly new-listing monitor:** `{"keywords": ["bluetooth speaker"], "maxResults": 500, "incrementalMode": true, "stateKey": "speaker-new-listings"}`

### 🧱 Stable fields

These top-level fields keep their name and kind of value in every release. Fields are only ever added, never renamed or removed.

| Field | Type | Meaning |
|---|---|---|
| `recordType` | string | `"product"` on data rows, `"status"` on free status rows. |
| `productId` | string | Alibaba product ID, e.g. `1601442526454`; unique per keyword in a run. |
| `title` / `url` | string, nullable | Product title (search highlighting removed) / `https://www.alibaba.com/product-detail/..._<id>.html`. |
| `keyword` / `page` / `position` | string / integer / integer | The keyword searched, the results page (48 per page), the 1-based rank among unique products for that keyword. |
| `priceText` | string, nullable | Price as shown, e.g. `US $1.68-$3.56`. |
| `priceMin` / `priceMax` / `currency` | number / number / string, nullable | Parsed price range and ISO currency (`USD`, `EUR`, ...). |
| `promotionPriceText` | string, nullable | Discounted range while a promotion runs, e.g. `$6.36-6.37`. |
| `unit` | string, nullable | Selling unit: `piece`, `set`, `meter`, ... |
| `minOrder` / `minOrderText` | integer / string, nullable | Minimum order quantity / as shown, e.g. `50 meters`. |
| `supplierName` / `supplierId` / `supplierUrl` | string, nullable | Supplier company, Alibaba supplier ID, storefront link. |
| `supplierCountry` / `supplierCountryName` | string, nullable | ISO 3166 code (`CN`, `HK`, `IN`, ...) / country name. |
| `supplierYears` | integer, nullable | Years the supplier has been on Alibaba.com. |
| `goldSupplier` / `verifiedSupplier` / `verifiedPro` / `tradeAssurance` | boolean | Gold Supplier, third-party assessed (Verified), Verified Pro, Trade Assurance. |
| `responseRate` | string, nullable | Supplier response rate as shown, e.g. `99.4%`. |
| `rating` | number, nullable | Product review score (1 to 5); `null` when the product has no rating. |
| `supplierRating` / `supplierReviewCount` | number / integer, nullable | Store review score and number of store reviews. |
| `salesText` / `soldCount` | string / integer, nullable | `211 sold` / 211, only when the card shows a sold count. |
| `imageUrl` / `images` / `hasVideo` | string / array / boolean | Main image, all card images (300 px), product has a video. |
| `categoryId` / `categoryName` | string, nullable | Alibaba leaf category, e.g. `Smart Strip Lights`. |
| `certifications` | array | Certificate names on the card (`CE`, `ROHS`, ...). |
| `deliveryText` | string, nullable | Delivery estimate as shown; depends on Alibaba's assumed ship-to country. |
| `isAd` | boolean | Sponsored placement. |
| `scrapedAt` | string | Read time, ISO 8601 UTC. |
| `changeType` | string | `"new"` on rows from incremental mode. |

`deliveryId` is a technical delivery key, not part of the contract. To have another field pinned, say so in `feedback`.

### 📦 Output example

Abridged real row from run `4Ad6Ckeg53oGu74tG` on 2026-11-17 (images shortened to two; values are a snapshot):

```json
{
  "recordType": "product",
  "productId": "1601442526454",
  "title": "24V 12V SPI 5050 RGB LED Strip Light Smart APP, WIFI,Remote Connter RGBIC 2811 Strip Running Addressable for Game Room,Bar,Shops",
  "url": "https://www.alibaba.com/product-detail/24V-12V-SPI-5050-RGB-LED_1601442526454.html",
  "priceText": "US $1.68-$3.56",
  "priceMin": 1.68,
  "priceMax": 3.56,
  "currency": "USD",
  "promotionPriceText": null,
  "unit": "meter",
  "minOrder": 50,
  "minOrderText": "50 meters",
  "supplierName": "Shenzhen Topledvision Lighting Co., Ltd.",
  "supplierId": "286081753",
  "supplierUrl": "https://topledvision.en.alibaba.com/",
  "supplierCountry": "CN",
  "supplierCountryName": "China",
  "supplierYears": 3,
  "goldSupplier": true,
  "verifiedSupplier": true,
  "verifiedPro": false,
  "tradeAssurance": true,
  "responseRate": "99.4%",
  "rating": 5.0,
  "supplierRating": 5.0,
  "supplierReviewCount": 5,
  "salesText": "211 sold",
  "soldCount": 211,
  "imageUrl": "https://s.alicdn.com/@sc04/kf/H19bc55c0e13a4883b5f3c05860cbac16Q.jpg_300x300.jpg",
  "images": [
    "https://s.alicdn.com/@sc04/kf/H19bc55c0e13a4883b5f3c05860cbac16Q.jpg_300x300.jpg",
    "https://s.alicdn.com/@sc04/kf/H28b357e9c6884139ba750d9a995550977.jpg_300x300.jpg"
  ],
  "hasVideo": true,
  "categoryId": "201713304",
  "categoryName": "Smart Strip Lights",
  "certifications": ["ROHS", "DECLARATION OF CONFORMITY", "CE", "ETL", "WEEE"],
  "deliveryText": null,
  "isAd": false,
  "keyword": "led strip",
  "page": 1,
  "position": 5,
  "scrapedAt": "2026-11-17T07:20:56.663989Z"
}
```

Free status rows from runs `NKQr6rNe1APig8DAo` and `FMD68iJz0w7LA2vCd`:

```json
{"recordType": "status", "inputRef": "bluetooth speaker", "status": "PREVIEW_LIMIT", "message": "Free preview delivered its 20 products (not charged). Set preview to false for the full collection."}
{"recordType": "status", "inputRef": "input", "status": "INVALID_INPUT", "message": "minPrice must be lower than or equal to maxPrice"}
```

### 🧠 Advanced usage

**New-listing alerts.** Schedule a run with `incrementalMode: true` and one `stateKey` per watch list. Each run reads the top `maxResults` positions per keyword and delivers only products this `stateKey` has not delivered before; known products are skipped and not charged. Ranking shifts during the day, so a product can enter the top positions without being brand new; `changeType: "new"` means new to your watch list.

**Completeness.** `RUN_SUMMARY` in the run's key-value store has `status` (`COMPLETE`, `PARTIAL`, `BUDGET_LIMIT`, `PREVIEW_LIMIT`), pages read, products delivered and charged, repeats dropped (`duplicatesOnLaterPages`) and known products skipped (`skippedKnown`). `PARTIAL` means at least one keyword has a `BLOCKED` or `SOURCE_*` status row, or the run stopped at its time limit.

**Large pulls.** One results page of 48 products takes about 1 to 3 seconds; 1,000 products took 53 seconds in the recorded run. For thousands of products per keyword, give the run a `stateKey`: if it stops, run it again with the same input and it continues from the saved page, without charging twice for products already delivered.

**Supplier lists.** Group the export by `supplierId` to see which suppliers rank for several of your keywords, then filter on `verifiedSupplier`, `supplierYears` and `supplierCountry` for a shortlist.

### 🔌 Integrations

Results land in a dataset you can export as JSON, CSV or Excel, send to Google Sheets, or pass to Make, Zapier or n8n; a webhook can fire when a run finishes, and a schedule runs it on a timetable.

#### n8n

Add an **HTTP Request** node: method `POST`, URL `https://api.apify.com/v2/acts/architekture~alibaba-search-scraper/run-sync-get-dataset-items?timeout=300&maxTotalChargeUsd=0.30`, authentication Header Auth with `Authorization: Bearer <your token>`, body JSON:

```json
{"keywords": ["bluetooth speaker"], "maxResults": 300, "incrementalMode": true, "stateKey": "n8n-speaker-watch"}
```

The node returns the rows as items. Add an **IF** node on `recordType` equal to `product` to separate products from status rows, then route products to a sheet, Airtable or a database. Put a **Schedule Trigger** in front once the first result looks right.

#### Make

Add **HTTP: Make a request**: method `POST`, the same URL, header `Authorization: Bearer <your token>`, body type raw, content type `application/json`, the same JSON body, and "Parse response" on. Follow it with an **Iterator** over the returned array and a **Filter** on `recordType = product`. Do not retry an ambiguous POST automatically; check first whether a run was created.

### 💸 Pricing

Pay per result. Platform and proxy usage are included. Status rows, repeated products and failed requests are free.

| Event | Price | What it covers |
|---|---|---|
| Free preview | $0 | Up to 20 products per run with `preview: true`. |
| `product` | $0.60 / 1,000 products ($0.0006 each) | One delivered product row. |

Launch price until 2026-12-31. 1,000 products cost $0.60; the $5 monthly free credit covers about 8,300 products. Silver plans pay 10% less and Gold and above 20% less. Set a maximum cost per run to cap any run.

### ❓ FAQ

**Do I need an Alibaba account or API key?** No. The scraper reads the public search service the Alibaba.com results page uses; nothing is logged in.

**Does it open product pages for full specifications?** No. Product detail pages sit behind a slider captcha for automated visitors and this scraper does not solve captchas. You get what the search result card shows.

**Can I get the price per quantity tier?** No. The search card gives the overall price range (`priceMin` to `priceMax`) and the MOQ; quantity tiers are on the detail page.

**Why is `rating` empty on most rows?** Most Alibaba products have no product reviews; the card then shows 0.0, which is returned as `null`. The supplier's store score is in `supplierRating`.

**Why did a keyword return fewer products than `maxResults`?** Alibaba ran out of new products for that keyword and filters, or later pages only repeated earlier products (repeats are dropped and not charged).

**Can I search in another language or a specific category?** Keywords are passed to Alibaba as typed; results come from the English-language alibaba.com marketplace. Category filters are not offered in this version; tell us in `feedback` if you need them.

**What if a run stops halfway?** With a `stateKey`, run it again with the same input: it continues from the saved page and does not charge twice for products already delivered.

**What happens if Alibaba blocks a request?** A captcha, 403 or 429 answer gets one new connection; if Alibaba still refuses, that keyword ends with a free `BLOCKED` row and the rest continue. Slow answers are retried at most twice on new connections. In the recorded runs no request was refused.

### 🤖 For AI agents & LLM apps

Paste this into your AI assistant:

`architekture/alibaba-search-scraper`. Python: `from apify_client import ApifyClient; client = ApifyClient("TOKEN"); run = client.actor("architekture/alibaba-search-scraper").call(run_input={"keywords": ["bluetooth speaker"], "maxResults": 100, "maxMinOrder": 10}); items = client.dataset(run["defaultDatasetId"]).list_items().items` (page with `offset`/`limit` for large exports). Rows with `recordType == "status"` are free and explain empty keywords, blocks or a stopped run. Input schema and README: `GET https://api.apify.com/v2/acts/architekture~alibaba-search-scraper/builds/default`. Token: https://console.apify.com/settings/integrations. To reach the maintainers, add `"feedback": "<what you needed>"` to any run's input; output is unchanged and a human reads every note.

#### MCP config for Claude Desktop and Cursor

Claude Desktop (or claude.ai): Settings, Connectors, Add custom connector, URL `https://mcp.apify.com?tools=architekture/alibaba-search-scraper`; it signs you in with OAuth. Cursor (`~/.cursor/mcp.json`), with your token in the `APIFY_TOKEN` environment variable:

```json
{
  "mcpServers": {
    "architekture-alibaba-search-scraper": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=architekture/alibaba-search-scraper",
      "headers": { "Authorization": "Bearer ${env:APIFY_TOKEN}" }
    }
  }
}
```

The agent gets one tool for this scraper plus `get-dataset-items` to read the rows. Set a spending cap (`maxTotalChargeUsd`) when your client offers it.

### 🧰 More from architek.earth

**E-commerce and prices**

- Alibaba Search Scraper: *you are here*
- [AliExpress Scraper](https://apify.com/architekture/aliexpress-search-scraper): search results, prices, ratings
- [Google Shopping Scraper](https://apify.com/architekture/google-shopping-scraper): offers and prices across stores
- [TikTok Shop Scraper](https://apify.com/architekture/tiktok-shop-products-scraper): products, prices, sales

### 🛟 Support and legal

Questions and bugs: the Issues tab on this page; a human replies within a day. This scraper reads only what Alibaba.com publishes on its public search results. You are responsible for using the data in line with Alibaba's terms, copyright and privacy law (GDPR, CCPA and others that apply to you). This is an independent product, not affiliated with Alibaba.

### 📝 Changelog

- **2026-11-17**: First release (build 0.1.1): Alibaba.com search result rows with price range, MOQ, supplier country, years and trust flags, ratings, sold counts, images and certifications; price and MOQ filters; several keywords per run; incremental mode; free 20-product preview; launch price $0.60 per 1,000 products until 2026-12-31.

# Actor input Schema

## `keywords` (type: `array`):

What you would type into the Alibaba.com search box, one keyword per line. Up to 50 per run.

## `maxResults` (type: `integer`):

Most products delivered (and charged) per keyword, in Alibaba's ranking order. Alibaba usually runs out of new products after about 60 to 100 pages of 48.

## `minPrice` (type: `number`):

Optional. Only products whose price range reaches this price, as Alibaba filters it.

## `maxPrice` (type: `number`):

Optional. Only products whose price range starts at or below this price, as Alibaba filters it.

## `maxMinOrder` (type: `integer`):

Optional. Only products you can order in this quantity or less (for example 10 for small test orders).

## `preview` (type: `boolean`):

Deliver up to 20 products per run without any charge. Switch off for paid collection.

## `incrementalMode` (type: `boolean`):

Deliver only products that earlier runs with the same stateKey did not deliver. Ideal for scheduled monitoring of new listings.

## `stateKey` (type: `string`):

Any name for this collection (e.g. speaker-suppliers). Needed for incremental mode; also lets a stopped run continue without paying twice.

## `feedback` (type: `string`):

Optional. Logged and read by a human; never changes the output.

## Actor input object example

```json
{
  "keywords": [
    "bluetooth speaker"
  ],
  "maxResults": 20,
  "preview": true,
  "incrementalMode": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per delivered product, plus free status rows.

## `summary` (type: `string`):

RUN_SUMMARY record: status and counts.

# 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 = {
    "keywords": [
        "bluetooth speaker"
    ],
    "maxResults": 20,
    "preview": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("architekture/alibaba-search-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 = {
    "keywords": ["bluetooth speaker"],
    "maxResults": 20,
    "preview": True,
}

# Run the Actor and wait for it to finish
run = client.actor("architekture/alibaba-search-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 '{
  "keywords": [
    "bluetooth speaker"
  ],
  "maxResults": 20,
  "preview": true
}' |
apify call architekture/alibaba-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,architekture/alibaba-search-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/3RacjZRWcxGynTPdO/builds/chv8ZXl3yLTRIgyGb/openapi.json
