# Trendyol Listings Scraper (`piotrv1001/trendyol-listings-scraper`) Actor

The Trendyol Listings Scraper extracts product listings and enriched product details from Trendyol.com — capturing names, brands, current and original prices, ratings, full-resolution images, category hierarchy, and merchant data — deal for price tracking, market research, and competitive analysis.

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

## Pricing

from $1.00 / 1,000 product listings

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Listings Scraper

Easily extract product data from **[Trendyol](https://www.trendyol.com)**, Turkey's largest e-commerce marketplace. The **Trendyol Listings Scraper** turns category, brand, search, and product URLs into clean, structured JSON — ready for price tracking, market research, competitive analysis, or product catalog building.

### ✨ Features

- 🏷️ **Comprehensive Product Data**: Names, brands, full image sets, current & original prices, discounts, ratings, free-cargo flags, merchant IDs, category hierarchy, and more.
- 🔗 **Four Input Modes**: Category pages, brand pages, product detail URLs, and free-text search queries — mix and match in a single run.
- 🌍 **TR Storefront Lock**: Pinned to the Turkish storefront via headers and cookies so you always get the full TR catalog, not the EN/PL/DE variants.
- 🧹 **Built-in Deduplication**: Automatic dedup of products that appear on multiple listing pages, plus optional sponsored-row filtering.
- 🖼️ **Full-Resolution Images**: Image URLs are normalized to remove the CDN thumbnail transform — you get the original-quality image.
- 💰 **Pay-Per-Event Pricing**: Pay $1 per 1,000 listing rows, $4 per 1,000 with full product detail. Only pay for what you scrape.

### 🛠️ How It Works

1. **Choose your input** — paste Trendyol category URLs (e.g. `https://www.trendyol.com/cep-telefonu-x-c103498`), brand URLs (e.g. `https://www.trendyol.com/apple-x-b101470`), product detail URLs, or search keywords.
2. **Set your limits** — pick how many pages per seed (Trendyol caps at ~126 pages = ~3,000 products per URL) and whether to enrich each row with full product detail.
3. **Run the scraper** — results stream into the dataset as structured JSON, downloadable as JSON, CSV, Excel, or HTML.

### ⚙️ Input

| Field | Type | Description |
|---|---|---|
| `categoryUrls` | array | Trendyol category listing URLs, e.g. `https://www.trendyol.com/cep-telefonu-x-c103498`. |
| `brandUrls` | array | Trendyol brand listing URLs, e.g. `https://www.trendyol.com/apple-x-b101470`. |
| `productUrls` | array | Direct product detail URLs (containing `-p-{productId}`). Skips listing pages, goes straight to full product data. |
| `searchQueries` | array | Free-text keyword queries (e.g. `"iphone 15"`). Search is gated on operator backend configuration; if unavailable, search queries are skipped. |
| `maxPagesPerSeed` | integer | Max listing pages to crawl per seed URL (24 products/page; Trendyol hard-caps at ~126). Default: `5`. |
| `maxItems` | integer | Global cap on total products extracted across all inputs. `0` means unlimited. Default: `50`. |
| `includeProductDetails` | boolean | If `true`, enqueue every product's detail page for the richer payload (description, attributes, sellers, full image set, review meta). Default: `false`. |
| `sort` | string | Listing sort order. One of `DEFAULT`, `BEST_SELLER`, `MOST_RATED`, `MOST_NEW`, `PRICE_BY_ASC`, `PRICE_BY_DESC`. Default: `BEST_SELLER` (cleaner, less personalized results). |
| `includeSponsored` | boolean | Keep sponsored ad slots in results. Filtered out by default. |
| `proxyConfiguration` | object | Optional proxy settings. Direct HTTP works without a proxy; Apify Residential pinned to `country=TR` is recommended for high-volume runs. |

### 📊 Sample Output Data

The scraper provides structured JSON output with full product details. Example listing row:

```json
{
    "productId": 1100212113,
    "name": "Galaxy S26 12GB/256GB Gök Mavisi Cep Telefonu",
    "brand": "Samsung",
    "brandId": 3228,
    "categoryId": 5474,
    "categoryName": "Android Cep Telefonu",
    "merchantId": 968,
    "url": "https://www.trendyol.com/samsung/galaxy-s26-12gb-256gb-gok-mavisi-cep-telefonu-p-1100212113",
    "image": "https://cdn.dsmcdn.com/ty1000323/product/media/images/prod/PIM/.../1_org_zoom.jpg",
    "images": ["...17 full-resolution images..."],
    "currentPrice": 58499,
    "originalPrice": 62570.32,
    "currency": "TL",
    "ratingScore": 4.7,
    "freeCargo": true,
    "isSponsored": false,
    "seedUrl": "https://www.trendyol.com/cep-telefonu-x-c103498",
    "page": 1,
    "position": 1,
    "scrapedAt": "2026-05-22T11:03:30.968Z"
}
````

With `includeProductDetails: true`, you additionally get rows containing the full category hierarchy, product attributes, seller data, and review counts.

### 💰 Pricing

This actor uses **Pay-Per-Event** pricing — you only pay for what you extract.

| Event | Price | When it fires |
|---|---|---|
| `product-listing` | **$0.001** ($1 per 1,000) | Per shallow product row from a category, brand, or search listing page. |
| `item-detail` | **$0.004** ($4 per 1,000) | Per detailed product page extraction (when `includeProductDetails: true` or via `productUrls`). |

**Example costs:**

| Run | Cost |
|---|---|
| 1,000 listing rows from a category page | **$1.00** |
| 5,000 listing rows across 3 brands | **$5.00** |
| 1,000 listing rows + full detail on each | **$5.00** ($1 listing + $4 detail) |
| 100 product URLs only (detail-only run) | **$0.40** |

No actor-start fee, no minimum spend.

Boost your Trendyol research with the **Trendyol Listings Scraper** today! 🚀

# Actor input Schema

## `categoryUrls` (type: `array`):

Trendyol category listing URLs, e.g. https://www.trendyol.com/cep-telefonu-x-c103498. Free path via direct HTTP.

## `brandUrls` (type: `array`):

Trendyol brand listing URLs, e.g. https://www.trendyol.com/apple-x-b101470. Free path via direct HTTP.

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

Trendyol product detail URLs (containing -p-{productId}). Free path via direct HTTP.

## `searchQueries` (type: `array`):

Free-text keyword queries to scrape (e.g. "iphone 15"). Search requires a TR-routed backend; if the operator has not configured one, search queries are skipped with a warning.

## `maxPagesPerSeed` (type: `integer`):

How many listing pages (24 products each) to crawl per category/brand/search URL. Trendyol hard-caps at ~126 pages.

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

Global cap on the total number of products extracted across all inputs. 0 means unlimited.

## `includeProductDetails` (type: `boolean`):

Enqueue each product's detail page to extract description, full image set, sellers, category hierarchy, and review meta. Adds the item-detail charge per row.

## `sort` (type: `string`):

Sort order applied to listing pages. Use BEST\_SELLER or PRICE\_BY\_ASC for less personalized ordering.

## `includeSponsored` (type: `boolean`):

Whether to keep sponsored/ad slots in results. By default they are filtered out to dedupe across pages.

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

Optional proxy. Direct HTTP works for category/brand/product pages without a proxy; using Apify Residential pinned to country=TR can help if you get routed to a non-TR storefront.

## Actor input object example

```json
{
  "categoryUrls": [
    {
      "url": "https://www.trendyol.com/cep-telefonu-x-c103498"
    }
  ],
  "brandUrls": [],
  "productUrls": [],
  "searchQueries": [],
  "maxPagesPerSeed": 5,
  "maxItems": 50,
  "includeProductDetails": false,
  "sort": "BEST_SELLER",
  "includeSponsored": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "categoryUrls": [
        {
            "url": "https://www.trendyol.com/cep-telefonu-x-c103498"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/trendyol-listings-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 = { "categoryUrls": [{ "url": "https://www.trendyol.com/cep-telefonu-x-c103498" }] }

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/trendyol-listings-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 '{
  "categoryUrls": [
    {
      "url": "https://www.trendyol.com/cep-telefonu-x-c103498"
    }
  ]
}' |
apify call piotrv1001/trendyol-listings-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Trendyol Listings Scraper",
        "description": "The Trendyol Listings Scraper extracts product listings and enriched product details from Trendyol.com — capturing names, brands, current and original prices, ratings, full-resolution images, category hierarchy, and merchant data — deal for price tracking, market research, and competitive analysis.",
        "version": "0.0",
        "x-build-id": "XhWZbriv71ntUXtOo"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/piotrv1001~trendyol-listings-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-piotrv1001-trendyol-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/piotrv1001~trendyol-listings-scraper/runs": {
            "post": {
                "operationId": "runs-sync-piotrv1001-trendyol-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/piotrv1001~trendyol-listings-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-piotrv1001-trendyol-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "categoryUrls": {
                        "title": "Category URLs",
                        "type": "array",
                        "description": "Trendyol category listing URLs, e.g. https://www.trendyol.com/cep-telefonu-x-c103498. Free path via direct HTTP.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "brandUrls": {
                        "title": "Brand URLs",
                        "type": "array",
                        "description": "Trendyol brand listing URLs, e.g. https://www.trendyol.com/apple-x-b101470. Free path via direct HTTP.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "productUrls": {
                        "title": "Product Detail URLs",
                        "type": "array",
                        "description": "Trendyol product detail URLs (containing -p-{productId}). Free path via direct HTTP.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "searchQueries": {
                        "title": "Search Queries",
                        "type": "array",
                        "description": "Free-text keyword queries to scrape (e.g. \"iphone 15\"). Search requires a TR-routed backend; if the operator has not configured one, search queries are skipped with a warning.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPagesPerSeed": {
                        "title": "Max Pages per Listing Seed",
                        "minimum": 1,
                        "maximum": 126,
                        "type": "integer",
                        "description": "How many listing pages (24 products each) to crawl per category/brand/search URL. Trendyol hard-caps at ~126 pages.",
                        "default": 5
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Global cap on the total number of products extracted across all inputs. 0 means unlimited.",
                        "default": 50
                    },
                    "includeProductDetails": {
                        "title": "Include Full Product Details",
                        "type": "boolean",
                        "description": "Enqueue each product's detail page to extract description, full image set, sellers, category hierarchy, and review meta. Adds the item-detail charge per row.",
                        "default": false
                    },
                    "sort": {
                        "title": "Sort Order",
                        "enum": [
                            "DEFAULT",
                            "BEST_SELLER",
                            "MOST_RATED",
                            "MOST_NEW",
                            "PRICE_BY_ASC",
                            "PRICE_BY_DESC"
                        ],
                        "type": "string",
                        "description": "Sort order applied to listing pages. Use BEST_SELLER or PRICE_BY_ASC for less personalized ordering.",
                        "default": "BEST_SELLER"
                    },
                    "includeSponsored": {
                        "title": "Include Sponsored Products",
                        "type": "boolean",
                        "description": "Whether to keep sponsored/ad slots in results. By default they are filtered out to dedupe across pages.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Optional proxy. Direct HTTP works for category/brand/product pages without a proxy; using Apify Residential pinned to country=TR can help if you get routed to a non-TR storefront.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
