# Hepsiburada Search Scraper (products, prices, ratings) (`tamnt67/hepsiburada-scraper`) Actor

Scrape Hepsiburada search results and category pages: product name, price, original price, discount, rating, review count, brand, merchant, variants, images and URL as clean JSON or CSV. No login, Turkish market.

- **URL**: https://apify.com/tamnt67/hepsiburada-scraper.md
- **Developed by:** [Tam Ng.](https://apify.com/tamnt67) (community)
- **Categories:** E-commerce
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Hepsiburada Search Scraper (products, prices, ratings)

Extract products from **Hepsiburada search results and category pages**, Turkey's largest marketplace. Enter keywords or paste Hepsiburada listing URLs (filters included) and get every product with price, original price, discount rate, rating, review count, brand, merchant, stock, variants, images and URL.

Use it for price monitoring, competitor and brand research, finding best sellers in a category, marketplace sourcing or feeding product data into your own tools.

### What you get for each product

| Field | Example |
|-------|---------|
| `productId` / `sku` / `listingId` | HBC00007BZNDY / HBCV000072PXK3 / 104b2b80-... |
| `name` / `brand` | Redmi Buds 6 Play - Siyah Kulakiçi Kulaklık TWS / Xiaomi |
| `price` / `originalPrice` / `discountRate` / `currency` | 679 / 679 / 0 / TRY |
| `rating` / `ratingScore` / `reviewCount` | 4.4 / 4 / 8347 |
| `merchantName` / `merchantId` / `isMultiSeller` | Hepsiburada / e750130c-... / true |
| `inStock` / `isPreOrder` / `isSponsored` | true / false / false |
| `variantCount` / `colorVariantCount` / `category` | 3 / 3 / Kulaklık |
| `shipmentDay` / `tags` | 0 / \["BT/YT Ürünleri"] |
| `image` / `images` / `url` | main image, all images, product URL |
| `page` / `query` / `scrapedAt` | 1 / keyword "bluetooth kulaklık" / ISO timestamp |

Download as JSON, CSV, Excel or XML, or read through the API.

### How to use

1. Enter **keywords**, or paste **Hepsiburada URLs**: a search page such as `https://www.hepsiburada.com/ara?q=laptop` or a category page such as `https://www.hepsiburada.com/kulaklik-c-60001142`. Filters you applied on the website (brand, price range, rating, seller) stay in the URL and are respected.
2. Choose a **sort order**: recommended, best sellers, newest, price or highest rated.
3. Set **max products per keyword or URL**. Hepsiburada returns 36 products per page and up to 50 pages per search.
4. Run. Results appear in the dataset as pages are scraped.

#### Example input

```json
{
  "keywords": ["bluetooth kulaklık", "akıllı saat"],
  "startUrls": [{ "url": "https://www.hepsiburada.com/kulaklik-c-60001142?siralama=coklusatis" }],
  "sortBy": "coklusatis",
  "maxItemsPerQuery": 180
}
```

### Pricing

You pay per product record. Platform usage and residential proxy traffic are included in the price. Set a maximum total charge per run in the run options for a hard cap.

### Tips

- **Best sellers** sort plus a category URL is the fastest way to see what sells in a niche.
- Apply filters on hepsiburada.com first, then paste the resulting URL here to scrape exactly that view.
- Schedule daily runs and connect to Google Sheets to build a price tracker.
- Keep the default **residential proxy in Turkey**. Hepsiburada blocks datacenter and foreign IPs.

### Limitations

- Listing data only. Product detail pages (full specifications, all reviews, all sellers) are not scraped.
- Hepsiburada can change its site at any time. If the Actor stops returning data, report an issue and it will be fixed quickly.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

# Actor input Schema

## `keywords` (type: `array`):

Search terms in Turkish or English, e.g. "bluetooth kulaklık". Each keyword is searched separately.

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

Optional. Paste Hepsiburada listing URLs: a search page (https://www.hepsiburada.com/ara?q=laptop) or a category page (https://www.hepsiburada.com/kulaklik-c-60001142). Filters in the URL are kept.

## `sortBy` (type: `string`):

Order of results, same options as the Hepsiburada website.

## `maxItemsPerQuery` (type: `integer`):

Hepsiburada returns 36 products per page and up to 50 pages per search.

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

Keep the default: Apify residential proxy located in Turkey. Hepsiburada blocks datacenter and foreign IPs.

## Actor input object example

```json
{
  "keywords": [
    "bluetooth kulaklık"
  ],
  "startUrls": [],
  "sortBy": "default",
  "maxItemsPerQuery": 108,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TR"
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset with one record per product: name, brand, price, original price, discount, rating, review count, merchant, variants, images, URL.

## `productsCsv` (type: `string`):

The same dataset exported as CSV.

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

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

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/hepsiburada-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 '{
  "keywords": [
    "bluetooth kulaklık"
  ],
  "maxItemsPerQuery": 108,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "TR"
  }
}' |
apify call tamnt67/hepsiburada-scraper --silent --output-dataset

```

## MCP server setup

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