# Trendyol Product Scraper - Fast Listings + Deep Seller Details (`mavilinklabs/trendyol-scraper`) Actor

Scrape Turkey's #1 marketplace at $0.002/product - or switch to deep mode for seller & category data. Built for Trendyol's 2026 page layout, fair pay-per-result pricing (no charge for failed items), search & direct URL input. Ideal for price tracking, dropshipping and market research.

- **URL**: https://apify.com/mavilinklabs/trendyol-scraper.md
- **Developed by:** [MaviLinkLabs](https://apify.com/mavilinklabs) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product scraped (fast mode)s

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Trendyol Product Scraper - Prices, Ratings & Seller Data

Scrape products from **Trendyol.com**, Turkey's largest e-commerce marketplace — by search keyword or direct product URL.

Give it search terms like `"bluetooth kulaklık"` or `"airfryer"`, get clean structured JSON per product: current price and pre-discount price in TRY, discount percentage, rating and review counts, favorite counts, seller name and ID, full category path, stock status and product image.

### Why this Actor?

- ✅ **Two input modes** — keyword search (with automatic pagination) and/or direct product URLs
- ✅ **Fast by default, detailed on demand** — Fast mode delivers everything the search results expose at a fraction of the cost; Detail mode enriches every item from the product page (seller name, category tree, live stock status)
- ✅ **Real prices** — sale price, pre-discount price and discount percentage, all as numbers ready for analysis
- ✅ **Resilient** — automatic session rotation on blocks, retries, and partial-data fallback when a product page cannot be loaded
- ✅ **Pay per product scraped** — no subscription, no idle cost

### Use cases

- **Price tracking & monitoring** — follow prices and discounts for a product set on a schedule
- **Dropshipping & sourcing research** — find products by keyword, compare sellers, ratings and demand signals (favorites, review counts)
- **Competitor analysis** — track competitor listings, price moves and stock availability
- **Turkish e-commerce market data** — feed structured Trendyol data into dashboards, spreadsheets or AI agents

### Input

```json
{
    "searchTerms": ["bluetooth kulaklık", "airfryer"],
    "productUrls": ["https://www.trendyol.com/apple/airpods-4-p-855111111"],
    "detailMode": false,
    "maxItemsPerSearch": 50,
    "includeReviewsSummary": false,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

- `searchTerms` — keywords to search on Trendyol; each term collects up to `maxItemsPerSearch` products
- `productUrls` — direct product page URLs, scraped in addition to search results (always scraped as full product pages, regardless of `detailMode`)
- `detailMode` — Fast mode (default, `false`) returns all product data available on search result cards. Enable Detail mode to also visit each product page for seller name/ID, full category path and exact favorite counts — costs more per product
- `maxItemsPerSearch` — 1 to 500 products per search term (default 50)
- `includeReviewsSummary` — adds a `reviewsSummary` object (average rating, total rating count, written comment count) per item
- `proxyConfiguration` — proxy settings; residential proxies (ideally Turkish) are recommended, see FAQ

At least one of `searchTerms` or `productUrls` is required.

### Output

One dataset item per product:

```json
{
    "id": 819066262,
    "name": "Air Pro 2 Anc Gürültü Engelleyici Bluetooth Kulaklık",
    "brand": "TARÇIN",
    "url": "https://www.trendyol.com/tarcin/air-pro-2-anc-gurultu-engelleyici-bluetooth-kulaklik-p-819066262",
    "price": 798.3,
    "originalPrice": 887,
    "discountRatio": 10,
    "currency": "TRY",
    "rating": 4.39,
    "ratingCount": 9817,
    "favoriteCount": 128973,
    "sellerName": "Technoverse",
    "sellerId": 953397,
    "categoryPath": "Elektronik > Giyilebilir Teknoloji > Kulaklıklar > Kulak içi TWS Bluetooth Kulaklık",
    "imageUrl": "https://cdn.dsmcdn.com/ty1576/prod/QC/20241003/09/fdecdf1b-686c-3039-94c9-9f0b0d3dfc06/1_org_zoom.jpg",
    "inStock": true,
    "scrapedAt": "2026-08-06T22:55:29.626Z"
}
```

- `price` — the price a buyer pays right now (including active promotions)
- `originalPrice` — the pre-discount price; equals `price` when there is no discount
- `discountRatio` — discount percentage (0 when no discount)

In Detail mode, if a product page cannot be loaded after retries, the Actor still emits a partial item built from the search results (with a `note` field explaining what happened) instead of silently dropping the product — and charges it at the cheaper Fast-mode rate.

### Pricing & modes

You only pay for delivered products — a charge event fires only after an item has actually been pushed to the dataset, never for failed or dropped pages.

There are two per-product events:

| Event | When it is charged |
|---|---|
| `product-scraped` | Fast-mode item (built from a search-result card), including Detail-mode fallback items |
| `product-detail-scraped` | Detail-mode item or a direct `productUrls` item (built from the product page) |

Field availability per mode:

| Field | Fast mode (default) | Detail mode |
|---|---|---|
| `id`, `name`, `brand`, `url` | ✅ | ✅ |
| `price`, `originalPrice`, `discountRatio`, `currency` | ✅ | ✅ |
| `rating`, `ratingCount` | ✅ | ✅ |
| `imageUrl` | ✅ | ✅ |
| `favoriteCount` | ~ approximate (e.g. "129K" → 129000) | ✅ exact |
| `categoryPath` | ~ leaf category only, may be missing | ✅ full path |
| `sellerId` | ~ may be missing | ✅ |
| `sellerName` | ❌ | ✅ |
| `inStock` | ❌ | ✅ |

Fast mode covers price tracking, ranking and demand research at a fraction of the cost, because it never opens product pages (one request fetches ~24 products). Choose Detail mode only when you need seller identity, the full category tree or live stock status.

### Build a price-monitoring pipeline in 3 steps

1. Set your `searchTerms` or `productUrls`
2. Create an [Apify Schedule](https://docs.apify.com/platform/schedules) (e.g. daily)
3. Connect a [webhook or integration](https://docs.apify.com/platform/integrations) (Google Sheets, Slack, Make, Zapier, or your own endpoint) to consume the dataset

### FAQ

**Does it scrape individual reviews?** Not in this version — rating averages, rating counts and comment counts are included with every product, but individual review texts are not scraped.

**Does it work from outside Turkey?** Trendyol applies geo- and bot-protection that can block datacenter IPs and non-Turkish traffic. The Actor rotates sessions automatically on blocks; for reliable results use Apify residential proxies (Turkish residential works best).

**Where do prices come from?** From Trendyol's own embedded page state — the same data the Trendyol web app renders — taken from the search results page in Fast mode and from the product page in Detail mode, so prices reflect the moment of the run.

**What counts as one paid event?** One product pushed to the dataset — `product-scraped` for Fast-mode items, `product-detail-scraped` for Detail-mode and direct-URL items. Nothing is charged for pages that fail or products that are not delivered (see "Pricing & modes").

**Can it exceed 500 products per search?** No — 500 per search term is the v0.1 cap. Use multiple, more specific search terms to cover more of the catalog.

**Does it handle Turkish characters?** Yes — search terms and all output fields are handled as UTF-8 (e.g. "kulaklık", "ütü", "çaydanlık").

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search on Trendyol (e.g. "bluetooth kulaklık", "airfryer"). Each term produces up to "Max items per search" products. You can combine this with direct product URLs below.

## `productUrls` (type: `array`):

Direct Trendyol product page URLs (e.g. https://www.trendyol.com/apple/airpods-4-p-855111111). These are scraped in addition to search results.

## `detailMode` (type: `boolean`):

Fast mode (default) returns all product data available on search result cards. Enable Detail mode to also visit each product page for seller name/ID, full category path and exact favorite counts - costs more per product.

## `maxItemsPerSearch` (type: `integer`):

Maximum number of products to collect per search term.

## `includeReviewsSummary` (type: `boolean`):

Adds a reviewsSummary object (average rating, total rating count, written comment count) to each item. Rating and ratingCount fields are always included; this flag only adds the extra summary block. Individual review texts are not scraped in v0.1.

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

Proxy settings for requests to trendyol.com. Trendyol may block requests from outside Turkey or from datacenter IPs, so residential proxies (ideally TR) are recommended.

## Actor input object example

```json
{
  "searchTerms": [
    "bluetooth kulaklık"
  ],
  "detailMode": false,
  "maxItemsPerSearch": 50,
  "includeReviewsSummary": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchTerms": [
        "bluetooth kulaklık"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mavilinklabs/trendyol-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 = {
    "searchTerms": ["bluetooth kulaklık"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mavilinklabs/trendyol-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 '{
  "searchTerms": [
    "bluetooth kulaklık"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mavilinklabs/trendyol-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mavilinklabs/trendyol-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/WTvf2N3dTPao9BhGq/builds/DwmOZoSn0UXSE9eHD/openapi.json
