# Alibaba Top Ranking Scraper - Hot Selling & Trending Products (`rel8ble/alibaba-top-ranking-scraper`) Actor

Alibaba Top Ranking scraper: hot-selling, most-popular and best-reviewed products per Alibaba.com category. One row per ranked product: rank, niche, price, MOQ, orders, units sold, views, score, country. Input: category names, IDs or ranking URLs. Schedule it for trends. $1.00 per 1,000.

- **URL**: https://apify.com/rel8ble/alibaba-top-ranking-scraper.md
- **Developed by:** [Giovanni Rich](https://apify.com/rel8ble) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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.

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 Top Ranking Scraper - Hot Selling & Trending Products

This **Alibaba Top Ranking scraper** exports Alibaba.com's own **Top ranking** lists: the **hot-selling products** (ranked by orders), **most popular / trending products** (ranked by views and interested buyers) and **best-reviewed products** of any Alibaba category, as clean JSON, CSV or Excel. Each row is one ranked product with its **rank, niche, price range, MOQ, orders, units sold, views, ranking score, review stars, supplier country, Gold Supplier years** and Alibaba Guaranteed / shipping / delivery flags.
Use it as an **Alibaba best sellers scraper**, an **Alibaba trending products scraper** for **B2B product research** and **wholesale / dropshipping product ideas**, or an unofficial **Alibaba top ranking API** from your own code, Make, Zapier, n8n or an AI agent.

Give it category names (`Consumer Electronics`, `Beauty`, `Pet Supplies`), category IDs or Top ranking URLs, many per run. It reads the data Alibaba renders into the page over plain HTTP, with **no headless browser and no login**. The prefilled input (5 rankings, 100 products) finished in 3.6 seconds in a local test on 20 Nov 2026. **$1.00 per 1,000 products, no start fee.** In a live Apify Store search that day we found no other actor that reads Alibaba's Top ranking lists.

### What you get

- **Ranking**: `rank` (1-20), `rankType` (hot-selling / most-popular / best-reviewed), `region` (global / us / eur), `rankingName` (the niche, e.g. "Power Banks & Power Station"), `rankingCategoryId`, the full `categoryPath` and the `rankingUrl` on alibaba.com.
- **Product**: `productId`, `title`, product `url`, full-size `imageUrl`.
- **Price and MOQ**: `priceText`, numeric `priceMin` / `priceMax`, `currency`, `promotionPrice` and `discountPercent` when on promotion, `moq`, `moqUnit`.
- **Demand signals**: `orders`, `sold` (units), `views`, each as a number plus the text Alibaba shows ("4.8K+ sold"), Alibaba's `rankScore` out of 5 and the product's `reviewScore`.
- **Supplier and terms**: `supplierCountryCode`, `goldSupplier`, `goldSupplierYears`, `alibabaGuaranteed`, `shippingIncluded`, `easyReturn`, dispatch and delivery promises.
- **Cross-ranking view**: `otherRankings` lists the other Top rankings the same product sits in (e.g. #1 hot-selling and #9 most popular).
- **Attribute sub-rankings (optional)**: Alibaba also ranks inside a niche by attribute, e.g. "Breathable Walking Style Shoes" or "CE Certified ..."; one shoe niche had 143 of them on 20 Nov 2026.

46 fields per row. The dataset has four views: **Overview**, **Demand signals**, **Sourcing terms** and **Rankings**.

### Sample output

Real rows from the prefilled run (`Consumer Electronics`, hot-selling, global) on 20 Nov 2026:

| rankingName | rank | title | priceText | moqText | ordersText | soldText | viewsText | rankScore | supplier | Gold yrs |
|---|---|---|---|---|---|---|---|---|---|---|
| Mobile Phone Housings | 1 | For Infinix Tecno Itel Smart 20 X6840 Back Glass Battery C... | $0.88-1.08 | 5 pieces | 180+ orders | 4.8K+ sold | 2.9K+ views | 4.5 | HK | 3 |
| Mobile Phone Housings | 2 | Wholesale Price Mobile Phone Battery Cover for Infinix Hot... | $0.85-1.38 | 5 pieces | 50+ orders | 1.3K+ sold | 1.6K+ views | 4.2 | HK | 3 |
| Power Banks & Power Station | 1 | Bajie Mobile Power Charging Station with Screen Self-servi... | $182-298 | 1 box | 110+ orders | 410+ sold | 1.5K+ views | 4.4 | CN | 7 |
| Power Banks & Power Station | 11 | Customs Portable 10000mah Power Bank With AC Plug Super Fa... | $7-12 | 10 pieces | 40+ orders | 14.2K+ sold | 130+ views | 4.1 | CN | 1 |
| Data Cables | 1 | Black USB Extension Cable Male to Female Data Sync Charger... | $6-14.50 | 1 piece | 60+ orders | 90+ sold | 230+ views | 4.3 | CN | 2 |

### Use cases

- **Product research for importers, wholesalers and Amazon / Shopify sellers**: see what actually sells on Alibaba in a niche before you source it
- **Trend monitoring**: schedule a daily or weekly run and track rank, orders and views per `productId` over time
- **Market comparison**: the same niche ranked for global, US and European buyers side by side
- **Supplier discovery**: the suppliers behind the top 20 of a niche, with country and Gold Supplier years
- **Pricing benchmarks**: price range and MOQ of the best sellers in every niche of a category
- **AI agents**: "what are the hot-selling products in Pet Supplies on Alibaba right now?" answered in one call

### Pricing

**$1.00 per 1,000 products** (pay per result; one result = one ranked product saved). **No start fee.** Categories that are not found, rankings skipped by your keyword filter, duplicate lists and failed requests are never charged.

| You scrape | You pay |
|---|---|
| 100 products (the prefilled input: 5 rankings) | $0.10 |
| 1,000 products (50 ranking lists) | $1.00 |
| 10,000 products | $10.00 |

The Apify free plan's $5 monthly credit covers about 5,000 ranked products. Apify platform usage is included in the price. If you set a maximum cost per run, the scraper stops cleanly when it reaches it.

#### Speed and price compared

- **No direct rival.** Apify Store searches for "alibaba ranking", "alibaba top ranking", "alibaba hot selling" and "alibaba best selling" on 24 Nov 2026 returned no other actor that reads these lists. The most-used Alibaba actor, zen-studio/alibaba-scraper (369 users in the last 30 days), is a keyword search scraper at $4.99 per 1,000 results plus a start fee; search results are not ranked by Alibaba's order, view and review rankings.
- **Local test numbers, 20 Nov 2026, one home connection, no proxy**: the prefilled run saved 100 products from 6 pages in 3.2 to 3.6 seconds (three runs); a keyword walk of Pet Products saved 25 products from 7 pages in 3.1 seconds. The actor paces itself at 120 pages a minute, so a large run saves up to about 2,400 products a minute. In the cloud (23 Nov 2026, prefilled input) it saved 100 products in 6.1 seconds.
- **At $1.00 per 1,000** it costs a fifth of that search scraper per row, and less than our own Alibaba Product Details Scraper ($2.50 per 1,000), which you can chain after it.

### FAQ

**What is Alibaba's Top ranking?**
A section of Alibaba.com ("Top ranking" in the site header) that lists the top 20 products of each product niche, in three versions: Hot selling (ranked by total number of orders), Most popular (ranked by total views and number of interested buyers) and Best reviewed (ranked by review volume in the past 180 days), each for global, US or European buyers.

**Does it need a browser, cookies or an Alibaba account?**
No. It reads the public ranking page over plain HTTP.

**How do I choose a category?**
Type a top-level category name as Alibaba spells it, e.g. `Consumer Electronics`, `Beauty`, `Home & Garden`, `Sports & Entertainment`, `Pet Supplies`, `Apparel & Accessories`, `Tools & Hardware` (46 in total). Go deeper with a path: `Beauty > Makeup & Tools`. If a name is not found, the log and the `RUN_SUMMARY` record list the names that exist at that level. You can also paste a Top ranking URL from your browser, or use a `rankingCategoryId` from an earlier run.

**How many products does one ranking have?**
20\. A ranking is one niche (for example "Quartz Watches") in one type and one region. Three types and three regions give up to 9 lists, 180 rows, per niche.

**What does "Max rankings per category" do?**
A broad category shows 5 featured rankings; with the default 5 you get exactly those. Raise it to also walk the subcategories (for example `Watches` has 6 rankings), or set 0 for every ranking under the category.

**Can I search rankings by keyword?**
Yes: put a category in `categories` and words in `rankingKeywords` (e.g. `watch`). The scraper walks the subcategories and keeps only rankings whose name contains one of the words. Skipped rankings are not charged.

**Why do some rows have no views or review score?**
Alibaba does not show them for every product. In the 100-row test run, units sold, score, price, MOQ, supplier country and Gold years were on every row, orders on 98, views on 79, review stars on 69, a delivery promise on 40, the Alibaba Guaranteed flag on 23 and a promotion price on 5.

**Are orders and sold exact?**
They are the rounded figures Alibaba shows ("180+ orders", "4.8K+ sold"), converted to numbers (180, 4800). The original text is kept next to each number.

**Which currency are prices in?**
The currency Alibaba shows for the country the request comes from: USD for requests from the United States, where our tests ran. The `currency` field is read from the price text.

**I asked for "best-reviewed" and got fewer lists. Why?**
Not every niche lists all three types. If Alibaba answers with a different type than the one requested, the scraper labels the rows by the type actually served and never saves the same list twice.

**Will it get blocked?**
Alibaba rate-limits a single IP after a burst of ranking pages (in our test a home connection was limited for under 10 minutes after about 85 pages, 57 of them inside 9 seconds). The actor now paces itself at 120 pages per minute and, on Apify, automatically retries blocked pages through Apify Proxy (datacenter first, then residential). That fallback is the same one our other Alibaba actors use; it has not been cloud-tested for this actor yet.

**Can I get full specs, price tiers and the supplier profile for the ranked products?**
Yes: pass the `url` or `productId` column to our Alibaba Product Details Scraper.

### Example inputs for common jobs

Top 20 hot-selling products in the 5 featured niches of three categories:

```json
{ "categories": ["Consumer Electronics", "Beauty", "Pet Supplies"] }
```

Every watch ranking, all three types, for US and European buyers:

```json
{
    "categories": ["Jewelry, Eyewear, Watches & Accessories > Watches"],
    "rankTypes": ["hot-selling", "most-popular", "best-reviewed"],
    "regions": ["us", "eur"],
    "maxRankingsPerCategory": 0
}
```

Top 3 of every niche in Home & Garden (a cheap scan):

```json
{ "categories": ["Home & Garden"], "maxRankingsPerCategory": 0, "maxProductsPerRanking": 3 }
```

One niche by ID with two of its attribute sub-rankings:

```json
{ "categories": ["201334413"], "attributeKeywords": ["breathable", "water resistant"] }
```

### How to use

1. Type one or more categories into **Categories**: a top-level name (`Consumer Electronics`), a path (`Beauty > Makeup & Tools`), a category ID, a Top ranking URL from alibaba.com, or `all`.
2. Pick **Ranking types** (hot-selling, most-popular, best-reviewed) and **Buyer regions** (global, us, eur).
3. Set **Max rankings per category** (5 = the featured niches, 0 = all) and **Max products per ranking list** (1-20).
4. Click **Start** and download the results from the **Output** tab, or fetch them through the Apify API.

### Input

| Field | Default | Description |
|---|---|---|
| `categories` | `["Consumer Electronics"]` | Category names, `Parent > Child` paths, numeric category IDs, Top ranking URLs, or `all` |
| `rankTypes` | `["hot-selling"]` | `hot-selling`, `most-popular`, `best-reviewed` |
| `regions` | `["global"]` | `global`, `us`, `eur` |
| `maxRankingsPerCategory` | 5 | Niches per input line. 0 = every ranking under the category |
| `maxProductsPerRanking` | 20 | Products per list (1-20) |
| `rankingKeywords` | - | Keep only rankings whose name contains one of these words |
| `attributeRankingsPerRanking` | 0 | Attribute sub-rankings to read per niche (0-500) |
| `attributeKeywords` | - | Keep only attribute sub-rankings containing one of these words |
| `maxResults` | 0 | Stop after this many rows in total (0 = no limit) |

With no input at all, the Consumer Electronics demo runs (100 rows).

### Input example

```json
{
    "categories": ["Consumer Electronics"],
    "rankTypes": ["hot-selling"],
    "regions": ["global"],
    "maxRankingsPerCategory": 5,
    "maxProductsPerRanking": 20
}
```

### Output example

One real row from that run (20 Nov 2026):

```json
{
    "rank": 2,
    "rankType": "hot-selling",
    "rankTypeLabel": "Hot selling",
    "rankBasis": "Ranked by total number of orders",
    "region": "global",
    "rankingName": "Data Cables",
    "rankingCategoryId": "100010893",
    "rankingCategoryName": "Data Cables",
    "categoryPath": ["Consumer Electronics", "Cables & Commonly Used Accessories", "Cable", "Data Cables"],
    "attributeId": null,
    "attributeName": null,
    "rankingUrl": "https://sale.alibaba.com/p/dviiav4th/index.html?categoryIds=100010893&rankTypeId=10&rankCountryId=global",
    "productId": "1601861174297",
    "title": "100W Fast Charging USB Type-C Data Cable, Braided Nylon Type-C to Type-C Charging Cable, Suitable for IOS and Android Devices",
    "url": "https://www.alibaba.com/product-detail/100W-Fast-Charging-USB-Type-C_1601861174297.html",
    "imageUrl": "https://s.alicdn.com/@sc04/kf/H905fdd5055514c4e9365c2078d377f52J.png",
    "priceText": "$0.90",
    "priceMin": 0.9,
    "priceMax": 0.9,
    "currency": "USD",
    "promotionPrice": 0.81,
    "discountPercent": 10,
    "moq": 2,
    "moqUnit": "pieces",
    "moqText": "2 pieces",
    "orders": 60,
    "ordersText": "60+ orders",
    "sold": 2700,
    "soldText": "2.7K+ sold",
    "views": 3100,
    "viewsText": "3.1K+ views",
    "rankScore": 4.2,
    "reviewScore": 4.8,
    "supplierCountryCode": "CN",
    "goldSupplier": true,
    "goldSupplierYears": 1,
    "alibabaGuaranteed": true,
    "shippingIncluded": true,
    "easyReturn": false,
    "dispatchText": null,
    "dispatchDays": null,
    "deliveryText": "Delivery by Dec 24",
    "deliveryDays": 34,
    "otherRankings": [{ "rankType": "most-popular", "rank": 9, "rankingName": "Data Cables", "region": "global" }],
    "inputCategory": "Consumer Electronics",
    "scrapedAt": "2026-11-21T02:19:14.015Z"
}
```

The `RUN_SUMMARY` record in the key-value store lists, per input line, the category it matched, rankings found, lists and rows saved and why it stopped, plus every input that could not be matched.

### API example

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("rel8ble/alibaba-top-ranking-scraper").call(run_input={"categories": ["Beauty"], "rankTypes": ["hot-selling", "most-popular"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rankingName"], "#", item["rank"], "|", item["title"], "|", item.get("priceText"), "|", item.get("soldText"))
```

One HTTP call that runs the actor and returns the rows (curl):

```bash
curl -X POST "https://api.apify.com/v2/acts/rel8ble~alibaba-top-ranking-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>"   -H "Content-Type: application/json"   -d '{"categories": ["Pet Supplies"], "maxProductsPerRanking": 10}'
```

### Integrations

- **Our Alibaba Product Details Scraper**: pass the `url` or `productId` column for price tiers, SKUs, specs, certificates and the supplier profile of each ranked product.
- **Our Alibaba search and supplier scrapers**: search the niche names you find here, or pull the full store catalog of a supplier that ranks.
- **Make, Zapier and n8n**: run the actor on a schedule and pass new top products on to any app.
- **Google Sheets**: export the dataset straight to a spreadsheet.
- **Apify API**: start runs and download results over REST, or with the JavaScript and Python clients.
- **Webhooks**: get notified when a run finishes.
- **MCP for AI agents**: the Apify MCP server (https://mcp.apify.com) lets Claude, ChatGPT, Cursor and other agents call this Alibaba top ranking scraper as a tool.

### Limits

- **20 products per list.** That is all Alibaba ranks per niche, type and region.
- **Listing-level data.** No supplier name, price tiers or specifications on the ranking page: chain our Alibaba Product Details Scraper for those.
- **Rounded demand figures.** Orders, sold and views are the rounded values Alibaba shows.
- **Featured rankings change.** The 5 featured niches of a category are Alibaba's pick at that moment; use category IDs or `maxRankingsPerCategory: 0` for a fixed set.
- **Prices and delivery promises** follow the country the request comes from (USD and US delivery dates in our US tests).
- **Rate limit.** Very large runs (thousands of pages) depend on the Apify Proxy fallback described in the FAQ.

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

# Actor input Schema

## `categories` (type: `array`):

What to get rankings for, one per line. Use a top-level Alibaba category name ("Consumer Electronics", "Beauty", "Home & Garden"), a path to a subcategory ("Consumer Electronics > Chargers, Batteries & Power Supplies"), a numeric Alibaba category id ("201334413", from the rankingCategoryId column), a Top ranking URL copied from alibaba.com (https://sale.alibaba.com/p/dviiav4th/index.html?categoryIds=...), or "all" for every category. A category that is itself one ranking returns that ranking; a broader category returns its featured rankings first, then the rankings of its subcategories, up to Max rankings per category. Empty = a Consumer Electronics demo.

## `rankTypes` (type: `array`):

Optional. Which lists to read for every ranking: "hot-selling" (ranked by number of orders; default), "most-popular" (by views and interested buyers), "best-reviewed" (by review volume in the past 180 days). Each type is a separate list of up to 20 products.

## `regions` (type: `array`):

Optional. Which buyer market the ranking reflects: "global" (default), "us" (United States) or "eur" (Europe). Each region is a separate list.

## `maxRankingsPerCategory` (type: `integer`):

Optional. How many rankings (one ranking = one product niche such as "Power Banks") to read per input line, integer 0-100000. Default 5 = the featured rankings of the category. Higher values also walk the subcategories. 0 = every ranking under the category (can be hundreds of lists for a top-level category).

## `maxProductsPerRanking` (type: `integer`):

Optional. Products to save from each list, integer 1-20. Alibaba ranks 20 products per list. Default 20. Use 3 or 5 for a cheap "top of every niche" scan.

## `rankingKeywords` (type: `array`):

Optional. Keep only rankings whose name contains one of these words, e.g. "earphone", "yoga", "dog". The scraper then walks every subcategory of your input categories to find them, so combine it with a category (not "all") to keep runs short. Not charged for skipped rankings.

## `attributeRankingsPerRanking` (type: `integer`):

Optional. Alibaba also ranks products inside a niche by attribute ("Breathable Walking Style Shoes", "CE Certified ..."); a niche can have over 100 of these. Integer 0-500: how many attribute sub-rankings to read per ranking, in Alibaba's order. Default 0 = main rankings only.

## `attributeKeywords` (type: `array`):

Optional. Read only attribute sub-rankings whose name contains one of these words, e.g. "waterproof", "CE", "wireless". When set and the number above is 0, every matching attribute sub-ranking is read.

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

Optional. Stop after this many rows across all categories, integer. 0 (default) = no limit. You are charged per saved row only.

## `maxConcurrency` (type: `integer`):

Optional, advanced. Parallel requests, integer 1-20. Default 5.

## `maxRequestRetries` (type: `integer`):

Optional, advanced. Retries per failed or blocked request, integer 0-20; each retry uses a new session. Default 6.

## `proxyConfiguration` (type: `object`):

Optional, advanced. Leave as is. Default {"useApifyProxy": false} = automatic: direct connection first, and only requests that get blocked are retried through Apify Proxy (datacenter, then residential). Set your own Apify Proxy groups or proxy URLs to force them for every request.

## Actor input object example

```json
{
  "categories": [
    "Consumer Electronics"
  ],
  "rankTypes": [
    "hot-selling"
  ],
  "regions": [
    "global"
  ],
  "maxRankingsPerCategory": 5,
  "maxProductsPerRanking": 20,
  "attributeRankingsPerRanking": 0,
  "maxResults": 0,
  "maxConcurrency": 5,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One row per ranked product: rank, ranking name and type, region, price, MOQ, orders, units sold, views, score and supplier flags.

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

Rankings found and rows saved per input category, plus any input that could not be matched and failed requests.

# 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 = {
    "categories": [
        "Consumer Electronics"
    ],
    "rankTypes": [
        "hot-selling"
    ],
    "regions": [
        "global"
    ],
    "maxRankingsPerCategory": 5,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rel8ble/alibaba-top-ranking-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 = {
    "categories": ["Consumer Electronics"],
    "rankTypes": ["hot-selling"],
    "regions": ["global"],
    "maxRankingsPerCategory": 5,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rel8ble/alibaba-top-ranking-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 '{
  "categories": [
    "Consumer Electronics"
  ],
  "rankTypes": [
    "hot-selling"
  ],
  "regions": [
    "global"
  ],
  "maxRankingsPerCategory": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rel8ble/alibaba-top-ranking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rel8ble/alibaba-top-ranking-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/DhjZEyvHHrJC1XYfG/builds/ZPzOs3epOMb3tiXqj/openapi.json
