# Hnak هناك Scraper - Saudi Arabia Prices & Products (`boring_internet_explorer/hnak-scraper`) Actor

Extract Hnak (hnak.com) product data from Saudi Arabia: prices, discounts, brands, stock status, categories and images for perfumes, watches, bags and accessories. Category, brand and search URLs in English and Arabic.

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

## Pricing

from $0.50 / 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

## 🏪 Hnak Scraper — Saudi Arabia

[Hnak](https://www.hnak.com) (هناك) is a Saudi online department store selling perfumes and fragrances, watches, bags, luggage, accessories and gifts from international and local brands. This scraper extracts product data from Hnak's English and Arabic storefronts in Saudi Arabia (SAR): prices, discounts, brands, stock status, categories, labels and images. Use it for price monitoring, competitor research, catalogue enrichment and market analysis of the KSA fragrance and fashion-accessories market.

### Why use this scraper?

- 💰 **Price monitoring** — track Hnak prices and discounts for perfumes, watches and bags over time
- 🏷️ **Competitor benchmarking** — compare Hnak pricing and promotions against other Saudi retailers
- 🌸 **Fragrance market research** — analyse brands, categories and price ladders across thousands of perfumes
- 📦 **Catalogue enrichment** — collect titles, SKUs, brands, categories and images for your own product database
- 📉 **Sale and promotion tracking** — find products with the deepest discounts and active promo labels
- 🔎 **Keyword search export** — pull every product matching a brand or keyword in English or Arabic
- 🇸🇦 **Bilingual data** — get English or Arabic titles, brands and categories by choosing the URL language

### Supported URL types

| Type                            | Example                                                                                                           |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Category page                   | `https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes`                                             |
| Brand page                      | `https://www.hnak.com/en-sa/brand/seiko`                                                                          |
| Filtered listing (brand, price) | `https://www.hnak.com/en-sa/bags?filters%5Bglobal_brand%5D%5Bin%5D%5B0%5D=125917`                                 |
| Sorted listing                  | `https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes?product_sort=price_lth&product_sort_dir=ASC` |
| Search results                  | `https://www.hnak.com/en-sa/search?query=perfume`                                                                 |
| Arabic category page            | `https://www.hnak.com/ar-sa/beauty-fragrance/fragrance/mens-perfumes`                                             |
| Arabic search results           | `https://www.hnak.com/ar-sa/search?query=عطر`                                                                     |

Copy the URL from your browser after applying filters or sorting on hnak.com. Search pages support price sorting (`product_sort=price_lth` or `price_htl`).

### Input fields

| Field                | Type    | Default                    | Description                                                         |
| -------------------- | ------- | -------------------------- | ------------------------------------------------------------------- |
| `startUrls`          | array   | Men's perfumes category    | Hnak listing or search URLs (English `/en-sa/` or Arabic `/ar-sa/`) |
| `maxItems`           | integer | `5`                        | Maximum number of items to fetch per start URL                      |
| `proxyConfiguration` | object  | `{"useApifyProxy": false}` | Apify proxy settings (not required)                                 |

### Example input

```json
{
  "startUrls": [{ "url": "https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes" }],
  "maxItems": 5,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output

Each scraped item is stored as one record in the default dataset. You can download results as JSON, CSV, Excel or via the Apify API.

### Example output

```json
{
  "scrapedAt": "2026-10-15T16:22:24.308Z",
  "country": "Saudi Arabia",
  "market": "sa",
  "url": "https://www.hnak.com/en-sa/lalique-le-parfum-women-perfume-edp-100-ml",
  "title": "Lalique Le Parfum Women Perfume EDP 100 ml",
  "price": 149,
  "currency": "SAR",
  "sku": "11104105305151",
  "productId": "78754",
  "brand": "Lalique",
  "regularPrice": 650,
  "discountPercent": 77.08,
  "discountAmount": 501,
  "inStock": true,
  "categories": [
    "Fragrance Offers",
    "Offers",
    "Beauty & Fragrances",
    "Fragrances",
    "white november perfumes offers",
    "Perfume New Year Sale",
    "71% to 80% OFF on PERFUMES",
    "Summer Fragrances",
    "Perfume Offers on White Friday",
    "Notes",
    "Upto 90% Off on Perfumes",
    "Women's Premium",
    "Fragrance Mega Sale",
    "Warm & Inviting",
    "Affordable Luxury Under 299",
    "Viral Best Sellers",
    "Women Perfumes",
    "Ramadan Vibes in Every Scent",
    "Shop All Perfumes",
    "International Perfumes",
    "Perfumes Sale",
    "Orientel"
  ],
  "labels": ["Mega Sale"],
  "imageUrl": "https://mcprod.hnak.com/media/catalog/product/s/m/sm7q68-large.jpeg"
}
```

### Field reference

| Field             | Type            | Description                                            |
| ----------------- | --------------- | ------------------------------------------------------ |
| `scrapedAt`       | string          | ISO 8601 timestamp of when the item was scraped        |
| `url`             | string          | Full product URL                                       |
| `title`           | string          | Product title (English or Arabic depending on the URL) |
| `price`           | number          | Current selling price                                  |
| `currency`        | string          | Currency code (`SAR`)                                  |
| `country`         | string          | Country (`Saudi Arabia`)                               |
| `market`          | string          | Market code (`sa`)                                     |
| `sku`             | string | null  | Product SKU                                            |
| `productId`       | string | null  | Hnak product identifier                                |
| `brand`           | string | null  | Brand name                                             |
| `regularPrice`    | number | null  | Price before discount                                  |
| `discountPercent` | number | null  | Discount percentage                                    |
| `discountAmount`  | number | null  | Discount amount in SAR                                 |
| `inStock`         | boolean | null | Whether the product is in stock                        |
| `categories`      | array           | Category names the product belongs to                  |
| `labels`          | array           | Promotional labels such as "Mega Sale"                 |
| `imageUrl`        | string | null  | Main product image URL                                 |

### ❓ FAQ

**Which Hnak URLs can I scrape?**
Category pages, brand pages, filtered or sorted listing pages and search result pages on `hnak.com/en-sa` and `hnak.com/ar-sa`. Individual product pages are not supported as start URLs.

**Why does a category URL return no products?**
Some top-level pages (for example `/en-sa/mobiles-and-electronics` or `/en-sa/beauty-fragrance`) are landing pages made of banners and links, not product lists. The scraper skips them with a warning. Open a sub-category, brand or search page instead and use that URL.

**Can I scrape in Arabic?**
Yes. Use `/ar-sa/` URLs and the titles, brands and categories come back in Arabic.

**How do I apply filters?**
Set the filters on hnak.com (brand, price, sort), then copy the resulting URL into `startUrls`.

**How does `maxItems` work?**
It limits the number of items per start URL. The scraper moves through pages automatically until the limit is reached or there are no more products.

**How fresh is the data?**
Every run reads live data from Hnak, so prices and stock reflect the site at the time of the run.

**Do I need a proxy?**
No. The scraper works without a proxy by default.

### 🔗 Want More Data?

- [Namshi نمشي Scraper](https://apify.com/boring_internet_explorer/namshi-scraper) — fashion products, prices and brands
- [Centrepoint سنتربوينت Scraper](https://apify.com/boring_internet_explorer/centerpoint-scraper) — GCC fashion products and prices
- [Nahdi Online نهدي Pharmacy Scraper](https://apify.com/boring_internet_explorer/nahdi-scraper) — Saudi pharmacy and beauty prices, stock and discounts
- [Jarir جرير Product Scraper](https://apify.com/boring_internet_explorer/jarir-scraper) — Saudi electronics and stationery products
- [eXtra اكسترا Product Scraper](https://apify.com/boring_internet_explorer/extra-scraper) — Saudi electronics and home appliances

### 🛠️ Need a custom scraper?

Need this scraper adapted to your use case — extra fields, additional filters, a different output format, or a new website? Reach out at boringinternetexplorer@gmail.com and we'll make it happen.

# Actor input Schema

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

Hnak listing or search URLs, e.g. https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes or https://www.hnak.com/en-sa/search?query=perfume. Use /ar-sa/ URLs for Arabic data.

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

The maximum number of items to fetch per start URL

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

Your proxy configuration from Apify

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("boring_internet_explorer/hnak-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 = { "startUrls": [{ "url": "https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes" }] }

# Run the Actor and wait for it to finish
run = client.actor("boring_internet_explorer/hnak-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 '{
  "startUrls": [
    {
      "url": "https://www.hnak.com/en-sa/beauty-fragrance/fragrance/mens-perfumes"
    }
  ]
}' |
apify call boring_internet_explorer/hnak-scraper --silent --output-dataset

```

## MCP server setup

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