# Trendyol Scraper - Products, Prices & Sellers (`justfeel/trendyol-scraper`) Actor

Scrape Trendyol — Turkey's biggest marketplace — into JSON, CSV or Excel: product names, prices, discounts, ratings, review counts, sellers and stock from any search, category or product URL. Real browser clears Cloudflare. Pay per result, no monthly fee.

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

## Pricing

from $3.00 / 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/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 Scraper — Products, Prices, Ratings & Sellers

Turn **Trendyol**, Turkey's largest e-commerce marketplace, into clean structured data — **JSON, CSV or Excel**. Pull products, prices, discounts, ratings, review counts, sellers and full details from any **search, category, brand or product URL**.

> **The one that actually gets through.** Trendyol serves a Cloudflare challenge that stops HTTP-only scrapers dead ("Just a moment…" forever). This runs a real browser, clears the challenge, and rotates IPs when one gets stuck — so you get data, not a block page.

**Pay per result — $0.003 per product, no monthly fee.** ~1,000 products for about **$3**.

***

### 🚀 Get started in 30 seconds

1. Type a search term (e.g. `kablosuz kulaklık`) **or** paste a Trendyol URL
2. Set **Maximum items** (this caps your cost)
3. Hit **Start** → export the results as JSON, CSV or Excel, or pull them from the API

No login, no Trendyol account, no code required.

***

### 💸 Pricing — simple and predictable

Pay-per-result. You are charged **only for products you actually scrape** — there is no rent and no monthly subscription.

| You scrape | Approx. cost |
|---|---|
| 100 products | ~$0.30 |
| 1,000 products | ~$3 |
| 10,000 products | ~$30 |

`$0.003` per product + a tiny per-run start fee. **Maximum items** is a hard stop, so your bill can never surprise you.

***

### ✅ Why this scraper

- **Actually clears Cloudflare** — HTTP-only scrapers get the "Just a moment…" wall forever. This drives a real browser engine, waits for the JS challenge to resolve, and retires the session + rotates IP when one gets stuck.
- **Cheap for a browser scraper** — images, media, fonts and CSS are blocked by default. Product data lives in the page HTML/JSON, so this cuts residential-proxy bandwidth **70–80%** with zero data loss. Scrapers that skip this quietly burn your proxy quota.
- **Two speeds** — fast **listing mode** for price/rank monitoring at scale, or **full detail mode** with description, attributes, variants and stock.
- **Resilient extraction** — reads Trendyol's inline page state, falls back to the rendered DOM if the state variable is renamed, and parses schema.org JSON-LD on product pages. Keeps working when the site shifts.
- **Predictable cost** — `maxItems` stops the run at your limit.

***

### 📦 What you get per product

```json
{
    "id": 773358088,
    "name": "Kablosuz Kulaklık Bluetooth 5.3",
    "brand": "Apple",
    "url": "https://www.trendyol.com/apple/kablosuz-kulaklik-p-773358088?merchantId=968",
    "price": 2499.9,
    "originalPrice": 3999,
    "currency": "TL",
    "discountRatio": 37,
    "rating": 4.6,
    "ratingCount": 12840,
    "sellerName": "Apple Türkiye",
    "merchantId": 968,
    "categoryName": "Kulaklık",
    "sponsored": null,
    "imageUrl": "https://cdn.dsmcdn.com/ty1/product/media/images/...jpg",
    "scrapedAt": "2026-07-20T15:12:03.221Z"
}
```

With **Scrape full product details** enabled, each record also carries `description`, `availability`, `color`, `attributes` (pattern, material, audience), `variants[]` with per-variant price and stock, and the full `images[]` array.

***

### 🎯 Use cases

- **Price & competitor monitoring** — track competitor pricing and discount depth on a daily schedule, get alerted when someone undercuts you
- **Sellers & brands** — watch your own listings' rank, rating, stock and sponsored placement across categories
- **Market & product research** — category assortment, price distribution, best-sellers and demand signals before you source a product
- **Dropshipping & sourcing** — export catalogs with prices, ratings and seller data to find winning products
- **Data & AI** — feed a live Turkish e-commerce dataset into dashboards, models or a price-comparison app

***

### 🔌 Export & integrate

Results land in an Apify dataset you can:

- **Download** as JSON, CSV, Excel, XML or RSS
- **Pull via API** — one HTTPS call returns your data
- **Schedule** — run it every morning and only get fresh data
- **Connect** to Google Sheets, Make, Zapier, n8n or your own backend via Apify integrations and webhooks

***

### ⚙️ Input example

```json
{
    "search": "kablosuz kulaklık",
    "maxItems": 200,
    "scrapeProductDetails": false,
    "blockAssets": true,
    "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "TR" }
}
```

**Search vs Start URLs** — `search` is the quick path. Use `startUrls` for a specific category, brand page, or a fixed list of product URLs (search, category, brand and product URLs all work).

***

### ❓ FAQ

**How much does it cost?** `$0.003` per product scraped, plus a tiny start fee per run. No monthly subscription. About **$3 per 1,000 products**. `maxItems` caps every run.

**Do I need proxies?** Yes — Trendyol blocks datacenter IPs and redirects non-Turkish IPs to a country-selection page, so **Turkish residential proxies are required** (the default input is already set to `RESIDENTIAL` + `TR`). Keep `blockAssets` on to keep that traffic — and its cost — low.

**Can I export to Excel / Google Sheets?** Yes. Every run's dataset exports to CSV, Excel, JSON and more, and connects to Google Sheets, Make, Zapier and n8n.

**Can I run it on a schedule?** Yes — use Apify Schedules to run it daily/hourly for price tracking.

**Why is detail mode slower?** It opens each product page individually. For price tracking you usually don't need it — listing mode already carries price, discount, rating, review count and seller.

**Is this legal?** The actor reads publicly available product pages — the same data any shopper sees. No login, no personal data.

# Actor input Schema

## `search` (type: `string`):

Keyword to search on Trendyol (e.g. <b>laptop</b>, <b>bebek arabası</b>). Either this or Start URLs is required.

## `startUrls` (type: `array`):

Trendyol search, category, brand or product detail URLs.<br><b>https://www.trendyol.com/sr?q=laptop</b> (search)<br><b>https://www.trendyol.com/cep-telefonu-x-c103498</b> (category)<br><b>https://www.trendyol.com/apple/iphone-15-...-p-773358088</b> (product)

## `maxItems` (type: `integer`):

Maximum products to scrape. The run stops at this limit — this also caps your pay-per-result cost.

## `scrapeProductDetails` (type: `boolean`):

Visit each product page for description, attributes, variants and seller. Slower and uses more proxy traffic. Off = listing data only (much faster and cheaper).

## `blockAssets` (type: `boolean`):

Recommended. Product data comes from HTML/JSON, so dropping images, media, fonts and stylesheets cuts proxy bandwidth by roughly 70-80% with no data loss. Turn off only when debugging.

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

Turkish residential proxies are required: Trendyol blocks datacenter IPs with a Cloudflare challenge, and any non-Turkish IP is redirected to a country-selection page instead of the results. Keep the country set to TR.

## Actor input object example

```json
{
  "search": "kablosuz kulaklık",
  "startUrls": [],
  "maxItems": 100,
  "scrapeProductDetails": false,
  "blockAssets": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TR"
  }
}
```

# 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 = {
    "search": "kablosuz kulaklık",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "TR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("justfeel/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 = {
    "search": "kablosuz kulaklık",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "TR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("justfeel/trendyol-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "search": "kablosuz kulaklık",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TR"
  }
}' |
apify call justfeel/trendyol-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=justfeel/trendyol-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/bdevm5UnuzQ3hU35a/builds/0rhflmVuYLp0Bg87b/openapi.json
