# AliExpress Ad Repository Scraper: EU Seller Ads (`rastriq/aliexpress-ad-repository-scraper`) Actor

Extract ads from the AliExpress Transparency Center Ad Repository (DSA Art. 39): seller, company, categories, impressions per country and delivery dates.

- **URL**: https://apify.com/rastriq/aliexpress-ad-repository-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 71.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## AliExpress Ad Repository Scraper

**AliExpress Ad Repository Scraper** extracts ads from the **AliExpress Transparency Center Ad Repository**, the public ad library AliExpress must publish under **Article 39 of the EU Digital Services Act (DSA)**. Search by EU country, keyword or advertiser and get the seller, legal company, product categories, impressions per country and delivery dates as structured data. You don't need an API key or an AliExpress account.

### 🔍 What is AliExpress Ad Repository Scraper?

Thousands of AliExpress sellers run promoted listings in the EU, and every one of those ads is recorded in the AliExpress Transparency Center. The repository is an interactive web app with no bulk export.

AliExpress Ad Repository Scraper drives the repository in a headless browser, captures the data AliExpress loads into the page and returns one record per ad. Use it for:

- 🛒 **Cross-border e-commerce intelligence**: which sellers and categories push ads in each EU country.
- 🏷️ **Brand protection**: find promoted listings that mention your brand, for example to spot counterfeits.
- 📊 **Category and market research**: compare impression volumes across countries.
- 🧾 **DSA compliance research**: audit seller and company disclosures.

### 📦 What data does AliExpress Ad Repository Scraper extract?

| Field | Description |
|-------|-------------|
| 🆔 `adId` | AliExpress item ID of the promoted product |
| 🏷️ `advertiser` / `advertiserName` | Seller / store name |
| 🏢 `companyName` | Seller's registered legal entity |
| 💳 `adPayer` | `null`: AliExpress does not disclose the payer separately |
| 📅 `firstShownDate` / `lastShownDate` | Delivery period (`YYYY-MM-DD`) |
| 👁️ `impressions` | Total impressions across the reported countries |
| 🌍 `targetCountries` / `targetCountryDetails` | Countries reached and the raw per-country breakdown |
| 📦 `adTitle`, `category`, `subcategory`, `subcategory2` | Product title and category path |
| 🖼️ `imageUrl` | Product image |
| 🔞 `isAdultProduct` | Adult-product flag |
| 🔗 `credentialUrl` | Link to the seller's business credentials |
| 🛡️ `is_natural_person_suspected` | `true` if the seller or company name looks like a private individual |
| 🕒 `searchCountry`, `scrapedAt`, `source`, `sourceUrl` | Extraction metadata |

The common fields match our other DSA ad library scrapers (Temu, Zalando, Snapchat, Pinterest), so you can merge the datasets.

### 🚀 How to use AliExpress Ad Repository Scraper

1. Open **AliExpress Ad Repository Scraper** in Apify Console and click **Try for free**.
2. Select an EU **country**.
3. Enter a **keyword** (required) and choose whether it matches the **ad title** or the **advertiser name**. The repository only returns ads for a search term.
4. Optionally add a **category** (e.g. `Home & Garden`) and set **max ads**.
5. Click **Start** and download the results as JSON, CSV or Excel.

### ⚙️ Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `country` | string | `ES` | EU country code |
| `keyword` | string | required | Search text: product, brand or advertiser name |
| `keywordType` | string | `title` | `title` (ad title) or `advertiser` (advertiser name) |
| `category` | string | all | Top-level category name as shown in the repository |
| `maxResults` | integer | 100 | Maximum number of ads |
| `proxyConfiguration` | object | none | Optional. Your own proxy URLs |

#### Example input

```json
{
  "country": "ES",
  "keyword": "Nike",
  "keywordType": "title",
  "maxResults": 10
}
```

### 📄 Output example

```json
{
  "adId": "1005000000000001",
  "advertiser": "Example Sports Official Store",
  "adPayer": null,
  "firstShownDate": "2026-05-26",
  "lastShownDate": "2026-05-31",
  "impressions": 1325,
  "searchCountry": "ES",
  "sourceUrl": "https://www.aliexpress.com/p/transparencycenter/adRepository.html",
  "scrapedAt": "2026-11-12T21:12:37Z",
  "source": "aliexpress_ad_repository",
  "is_natural_person_suspected": false,
  "adTitle": "Custom sneakers retro unisex low-top",
  "advertiserName": "Example Sports Official Store",
  "companyName": "Example Trading Co., Ltd.",
  "category": "Sports Shoes,Clothing&Accessories",
  "subcategory": "Sneakers",
  "subcategory2": "Skateboarding Shoes",
  "imageUrl": "https://ae01.alicdn.com/kf/....jpg_120x120.jpg",
  "firstShown": "2026-05-26",
  "lastShown": "2026-05-31",
  "isAdultProduct": false,
  "targetCountries": ["NL"],
  "targetCountryDetails": [{ "countryCode": "NL", "expTimes": "53" }],
  "credentialUrl": "https://shoprenderview.aliexpress.com/credential/showcredential.htm?storeNum=..."
}
```

### ⚠️ Known limitations

- **Pagination:** the repository returns 12 ads per page. Loading more pages depends on the site's infinite scroll. If scrolling stops loading ads, the run ends early with what it collected; the log reports "No new items after pagination attempt".
- **Per-country impressions:** `targetCountryDetails` is passed through exactly as AliExpress publishes it. It often contains several entries for the same country, and the country reached does not always match the country you searched. `impressions` is the sum of all entries.
- **Personal data:** a few sellers are individuals. Use `is_natural_person_suspected` to filter them out.

### 💰 How much does it cost to use AliExpress Ad Repository Scraper?

AliExpress Ad Repository Scraper uses **pay-per-event** pricing, so you only pay for the ads you get:

| Event | Price |
|-------|-------|
| Actor start (per GB of memory) | $0.0005 |
| Each ad record in the dataset | $0.0009 |

That works out to roughly **$0.90 per 1,000 ads**, platform compute included. A 10-ad test run costs about one cent. Use **Max ads** to cap what a run can cost.

### 🔗 Related Actors

- [Snapchat Ad Library Scraper](https://apify.com/rastriq/snapchat-ad-library-scraper)
- [Pinterest Ad Library Scraper](https://apify.com/rastriq/pinterest-ad-library-scraper)
- [Zalando Ads Repository Scraper](https://apify.com/rastriq/zalando-ads-repository-scraper)
- [Temu Ad Library Scraper](https://apify.com/rastriq/temu-ad-library-scraper)
- [TikTok Ad Library Scraper](https://apify.com/rastriq/tiktok-ad-library-scraper)
- [Facebook Ad Library Scraper](https://apify.com/rastriq/fb-adlibrary-scraper)
- [Google Ads Transparency Center Scraper](https://apify.com/rastriq/google-ads-scraper)

### ❓ FAQ

**Is it legal to scrape the AliExpress Ad Repository?**
The repository is a public DSA Article 39 transparency tool. AliExpress Ad Repository Scraper only reads publicly displayed ad records. You remain responsible for complying with AliExpress's terms of use and applicable law.

**Does it need a proxy?**
Not usually. It works from Apify's servers without one. Add your own EU proxy only if you see blocks.

**How do I search ads by a specific seller?**
Set `keywordType` to `advertiser` and put the store name in `keyword`.

# Actor input Schema

## `keyword` (type: `string`):

Search keyword: a product name or brand, or an advertiser name (see <b>Keyword type</b>). <b>Required:</b> the AliExpress repository only returns ads for a search term.

## `keywordType` (type: `string`):

What the keyword matches against.

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

EU country whose ad repository is searched.

## `category` (type: `string`):

Product category exactly as shown in the repository's category filter, in English (e.g. <code>Consumer Electronics</code>, <code>Home & Garden</code>). Leave empty for all categories.

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

Maximum number of ads to extract. Use it to cap the cost of a run.

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

<b>Optional.</b> Not usually needed. Add your own EU proxy URLs only if you see blocks.

## Actor input object example

```json
{
  "keyword": "Nike",
  "keywordType": "title",
  "country": "ES",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing all scraped ads.

# 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 = {
    "keyword": "Nike",
    "country": "ES",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/aliexpress-ad-repository-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 = {
    "keyword": "Nike",
    "country": "ES",
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/aliexpress-ad-repository-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 '{
  "keyword": "Nike",
  "country": "ES",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rastriq/aliexpress-ad-repository-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rastriq/aliexpress-ad-repository-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/uLWPdW4qQ1BYpK8o8/builds/wOVQivlbaZvNoozPs/openapi.json
