# Hepsiburada Scraper — Search Prices & Sellers (`crawloop/hepsiburada-scraper`) Actor

Scrape Hepsiburada search results for Turkey price monitoring. Each row includes TRY price, brand, rating, review count, merchant, and SKU. Export JSON from Python, Node.js, or MCP.

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

## Pricing

from $0.70 / 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.
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 Scraper

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Hepsiburada (D-Market Elektronik Hizmetler ve Ticaret A.Ş.) or its affiliates. Data is read from publicly accessible search and category pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

**Hepsiburada Scraper** pulls search cards into JSON for Turkey price monitoring. Each row is one product from a search or category page: TRY price, brand, rating, review count, merchant, and SKU. Run it from Python, Node.js, cURL, or an AI assistant over MCP.

Hepsiburada Scraper ◄── you are here

| Actor | What it collects |
| :--- | :--- |
| Hepsiburada Scraper ◄── you are here | Hepsiburada search cards: price, brand, rating, merchant |
| [Trendyol Scraper](https://apify.com/crawloop/trendyol-scraper) | Trendyol search cards: price, brand, rating, seller |
| [Sahibinden Scraper](https://apify.com/crawloop/sahibinden-scraper) | Turkey classifieds: real estate, cars, shopping |

### When to use this Actor

- Track a keyword’s prices, discounts, and ratings.
- See which merchant wins the card and whether the placement is promoted.
- Export a search or category URL you already filtered in the browser.
- Feed a sheet, warehouse, or MCP agent with one JSON row per product.

### When not to use this Actor

- You need the full description, every variant, or review text. This Actor reads the search page only.
- You need a seller’s email or phone.
- You need classifieds (homes, cars, second-hand). Use Sahibinden for that.

### Key features

- **Search pages.** Keywords and search or category URLs. The next page is the same document with `sayfa`.
- **Search-card fields.** TRY price, original price, brand, rating, review count, merchant, SKU, and a sponsored flag.
- **HTTP.** No browser. A direct connection is the default.
- **Empty searches stay empty.** A blocked or zero-result page finishes with no rows.

### Input

| Field | Type | Default | What it does |
| :--- | :--- | :--- | :--- |
| `searchQueries` | string\[] | `telefon` | Keywords. Each one opens search pages. |
| `startUrls` | URL\[] | — | Search or category URLs. Product pages are skipped. |
| `minPrice` / `maxPrice` | number | — | Drop cards outside this TRY range. |
| `includeSponsored` | boolean | `true` | Keep promoted cards, flagged on the row. |
| `maxItems` | integer | `50` | Cap across all keywords and URLs. |
| `maxPagesPerQuery` | integer | `2` | Search pages per keyword or URL. |
| `proxyConfiguration` | object | — | Optional Apify proxy if a direct run returns no rows. |

```json
{
  "searchQueries": ["telefon"],
  "maxItems": 30,
  "maxPagesPerQuery": 1,
  "includeSponsored": true
}
```

A pasted search URL:

```json
{
  "startUrls": [{ "url": "https://www.hepsiburada.com/ara?q=telefon" }],
  "maxItems": 20,
  "maxPagesPerQuery": 1
}
```

### Output

One dataset row per product.

| Field | Meaning |
| :--- | :--- |
| `productId` | Product id |
| `sku` | Default variant SKU |
| `title` | Card title |
| `brand` | Brand name |
| `price` | Current amount in TRY |
| `originalPrice` | Price before discount |
| `discountPercent` | Percent off the original price |
| `currency` | TRY |
| `rating` / `reviewCount` | Average rating and review count |
| `merchantName` / `merchantId` | Seller on the card |
| `sponsored` | Promoted placement |
| `inStock` | Default variant is procurable |
| `url` | Product URL |
| `image` | Main image |
| `page` / `position` | Where the card sat on the search page |
| `searchQuery` | Keyword that produced the row |

```json
{
  "productId": "HBC0000835BOA",
  "sku": "HBCV0000835BOB",
  "title": "Magsafe Telefon Tutucu",
  "brand": "M.TK Moveteck",
  "price": 199,
  "originalPrice": 199,
  "currency": "TRY",
  "rating": 4.3,
  "reviewCount": 3684,
  "merchantName": "Casestore",
  "sponsored": false,
  "url": "https://www.hepsiburada.com/m-tk-moveteck-magsafe-telefon-tutucu-pm-HBC0000835BOA",
  "searchQuery": "telefon",
  "page": 1,
  "position": 1
}
```

### Use cases

| Job | What you run | What you keep |
| :--- | :--- | :--- |
| **Price watch** | One keyword, a few pages | `price`, `originalPrice`, `brand`, `scrapedAt` |
| **Seller share** | The same keyword | `merchantName` on each card |
| **Assortment check** | A filtered search or category URL | Only the slice you already narrowed |
| **Turkey comps** | Catalog prices here, then the other big catalog | Pair with Trendyol for the same keyword |

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/hepsiburada-scraper').call({
  searchQueries: ['telefon'],
  maxItems: 30,
  maxPagesPerQuery: 1
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 5));
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token)
run = client.actor("crawloop/hepsiburada-scraper").call(
    run_input={
        "searchQueries": ["telefon"],
        "maxItems": 30,
        "maxPagesPerQuery": 1,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("sku"), item.get("title"), item.get("price"), item.get("brand"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~hepsiburada-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries":["telefon"],"maxItems":30,"maxPagesPerQuery":1}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call this Actor by Store ID `crawloop/hepsiburada-scraper`.

Example prompts:

- "Run Hepsiburada Scraper for telefon, one page, and return title, brand, price, currency, and merchantName."
- "Scrape Hepsiburada search for iphone 15 and list the 20 cheapest cards with rating and review count."
- "After Hepsiburada catalog prices, run Trendyol Scraper for the same keyword and compare prices."

### Next step

For the other large Turkey catalog, run [Trendyol Scraper](https://apify.com/crawloop/trendyol-scraper). For classifieds (homes, cars, second-hand), run [Sahibinden Scraper](https://apify.com/crawloop/sahibinden-scraper).

### FAQ

**What do I need to start?**\
A keyword in `searchQueries`, or a search or category URL in `startUrls`.

**Does a zero-result search fail the run?**\
No. The run finishes and the dataset stays empty.

**Can I paste a product URL?**\
Product pages are skipped. Use a search URL (`/ara?q=`) or a category URL.

**How many cards are on a page?**\
About 36. `maxItems` stops early. `maxPagesPerQuery` caps how many search pages open.

### Related Actors

- [Trendyol Scraper](https://apify.com/crawloop/trendyol-scraper) — Turkey catalog search
- [Sahibinden Scraper](https://apify.com/crawloop/sahibinden-scraper) — Turkey classifieds

# Actor input Schema

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

Keywords to search on Hepsiburada. Each keyword loads search pages and saves product cards.

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

Hepsiburada search or category URLs. Product pages are skipped.

## `minPrice` (type: `number`):

Drop cards cheaper than this amount.

## `maxPrice` (type: `number`):

Drop cards more expensive than this amount.

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

Keep promoted placements. They stay flagged on the row.

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

Maximum product rows across all keywords and search URLs.

## `maxPagesPerQuery` (type: `integer`):

How many search pages to open per keyword or URL. A page holds about 36 cards.

## `requestDelayMs` (type: `integer`):

Pause before a retry or the next search page.

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

Optional Apify proxy. Leave unused for a direct connection. Add a proxy only if a run returns no rows.

## Actor input object example

```json
{
  "searchQueries": [
    "telefon"
  ],
  "startUrls": [],
  "includeSponsored": true,
  "maxItems": 50,
  "maxPagesPerQuery": 2,
  "requestDelayMs": 0
}
```

# Actor output Schema

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

Default dataset items — one Hepsiburada product per row.

# 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": [
        "telefon"
    ],
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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 = {
    "searchQueries": ["telefon"],
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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 '{
  "searchQueries": [
    "telefon"
  ],
  "startUrls": []
}' |
apify call crawloop/hepsiburada-scraper --silent --output-dataset

```

## MCP server setup

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