# Trendyol Products Scraper (`neuro-scraper/trendyol-products-scraper`) Actor

Trendyol Products Scraper SD - Trendyol Products Scraper is a Turkish e-commerce data tool that extracts public Trendyol products from searches, categories, brands, stores and product URLs: price, discount, rating, reviews, seller, badges, stock and images.

- **URL**: https://apify.com/neuro-scraper/trendyol-products-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

./README.md

# Actor input Schema

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

Keywords searched on trendyol.com, one per line (Turkish works best), e.g. laptop / spor ayakkabı / elbise. Each keyword is one source.

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

Pages copied from trendyol.com, one per line: a search result (https://www.trendyol.com/sr?q=laptop\&fc=true - its filters are kept), a category (https://www.trendyol.com/laptop-x-c103108), a brand (https://www.trendyol.com/acer-x-b102324), a store (https://www.trendyol.com/magaza/x-m-106740 or https://www.trendyol.com/sr?mid=106740) or a product page (...-p-921524970 - one row with full details).

## `maxProductsPerSource` (type: `integer`):

How many products to take from each search term or URL. Trendyol pages hold 36 products; the Actor follows Trendyol's own next-page link until this number or the end of the results.

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

Stop the whole run after this many products (all sources together). 0 = no total limit.

## `maxPages` (type: `integer`):

Optional cap on result pages (36 products each) per source. 0 = no page cap (the product limits above still apply).

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

Trendyol's own sort order (checked against the sort options the page offers on every run). Applies to search terms and listing URLs.

## `minPrice` (type: `integer`):

Trendyol's price filter, lower bound in Turkish lira (0 = none), e.g. 10000.

## `maxPrice` (type: `integer`):

Trendyol's price filter, upper bound in Turkish lira (0 = none), e.g. 20000.

## `minRating` (type: `string`):

Trendyol's product-rating filter (pr): only products rated at least this many stars.

## `maxRating` (type: `number`):

Keep only products rated at or below this value, e.g. 3.5 (applied by the Actor to Trendyol's average rating; 0 = no limit). Unrated products are dropped when set.

## `freeShippingOnly` (type: `boolean`):

Trendyol's 'Kargo Bedava' filter (fc=true).

## `fastDeliveryOnly` (type: `boolean`):

Trendyol's 'Hızlı Teslimat' filter (rd=true).

## `couponsOnly` (type: `boolean`):

Trendyol's 'Kuponlu Ürünler' filter (cc=true): products with a collectable coupon.

## `newReleaseOnly` (type: `boolean`):

Trendyol's 'Yeni Ürünler' filter (np=true).

## `influencerOnly` (type: `boolean`):

Trendyol's 'Fenomenlerin Seçtikleri' filter (pbi=true).

## `flashSaleOnly` (type: `boolean`):

Trendyol's 'Flaş Ürünler' filter (fp=true).

## `lowestPriceDays` (type: `string`):

Trendyol's 'Fiyat Geçmişi' filter (lpd): products now at their lowest price of that period.

## `discountedOnly` (type: `boolean`):

Keep only products shown with a crossed-out old price (applied by the Actor to Trendyol's price data).

## `inStockOnly` (type: `boolean`):

Drop products Trendyol marks as sold out (applied by the Actor).

## `officialSellerOnly` (type: `boolean`):

Keep only products carrying Trendyol's official-seller badge (applied by the Actor).

## `fetchDetails` (type: `boolean`):

Also open every product page to add seller name / score / city, other sellers, full category path, attributes, variants with barcode and stock, comment count and exact favourites. One extra request per product (slower). Product URLs in the input always get these details.

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

Keep RESIDENTIAL in Turkey: visitors from other countries are sent to Trendyol's country picker (measured). An Apify proxy without a country gets TR added.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "maxProductsPerSource": 40,
  "maxItems": 200,
  "maxPages": 0,
  "sort": "SCORE",
  "minPrice": 0,
  "maxPrice": 0,
  "minRating": "0",
  "maxRating": 0,
  "freeShippingOnly": false,
  "fastDeliveryOnly": false,
  "couponsOnly": false,
  "newReleaseOnly": false,
  "influencerOnly": false,
  "flashSaleOnly": false,
  "lowestPriceDays": "",
  "discountedOnly": false,
  "inStockOnly": false,
  "officialSellerOnly": false,
  "fetchDetails": false,
  "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 = {
    "searchQueries": [
        "laptop"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "TR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/trendyol-products-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 = {
    "searchQueries": ["laptop"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "TR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/trendyol-products-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 '{
  "searchQueries": [
    "laptop"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TR"
  }
}' |
apify call neuro-scraper/trendyol-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/trendyol-products-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/6A68a8Zlro7bg2zzM/builds/SxBUwa2XFHPFXYtZp/openapi.json
