# Electronyat Qatar Product Facts (`vixendata/electronyat-qatar-product-facts`) Actor

Bounded clean-URL product facts from public Electronyat Qatar pages.

- **URL**: https://apify.com/vixendata/electronyat-qatar-product-facts.md
- **Developed by:** [Vixendata](https://apify.com/vixendata) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 successfully parsed product rows

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/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

## Electronyat Qatar Product Facts

Apify Actor for bounded public product facts. It reads English clean HTTPS product URLs or discovers a small sample from the English homepage's server-rendered product data. It does not claim full-catalog coverage, use search/pagination query URLs, log in, call private APIs, or bypass access controls.

### Inputs

An explicit `mode` is required, with no default or injected product URL:

- `direct`: supply a nonempty `productUrls` string array. `smoke/direct.json` requests the one verified TP-Link page.
- `discover`: leave `productUrls` empty or omit it. Reads only `https://electronyat.qa/en`, takes at most `min(maxRequests, maxProducts * 3)` unique structured product links, and visits them serially. No recursive category crawling.
- `maxProducts`: 1–50, default 3; output record bound.
- `maxRequests`: 2–100, default 10; all HTTP requests including robots and redirects count. Discovery needs at least 3 for one product.

Explicit mode makes console serialization safe: losing an empty array does not switch discovery into direct mode; losing mode fails clearly. All query strings, query delimiters, fragments, encoded paths, non-English paths, credentials, ports, and foreign hosts are rejected.

### Output

One row per verified product URL: SKU, title, brand, explicitly supplied model (otherwise null), exact QAR decimal strings, integer hundredths (`priceMinor`), low/high price range, stock, store-pickup flag, URL, extraction timestamp, and evidence type. Price is null if the offer is a range. Missing stock is null, never implicitly in stock. Unknown model is not guessed from the product name. Store pickup is the site's product-level indication, not a reservation or stock at a named branch.

Only URL-matched JSON-LD Product records are accepted. Next RSC product details must match both SKU and URL key before stock/pickup enrichment. Related products cannot supply the requested product's facts. JSON-LD without exact identity is skipped and reported. Factual data only: no descriptions, images, reviews, contact information, or copied marketing content.

`OUTPUT` in the default key-value store reports mode, record/request counts, stop reason, parse errors and bounded coverage. An input or URL safety error fails the Actor rather than silently proceeding. Valid earlier rows can be retained when a subsequent safe-stop condition occurs.

### Access policy

The current robots fixture forbids **all query URLs** (`Disallow: /*?`). The Actor additionally rejects queries before any network request. It checks live robots before pages, fails closed when robots is missing/invalid/blocked, honors `Crawl-delay` and `Request-rate`, and serially spaces requests by at least 3 seconds. A 5 MB response bound and 30-second timeout apply. Redirect targets are checked before following; off-host, query, robots redirects, excessive redirects, and product identity changes fail closed.

HTTP 401, 403, 429, recognizable CAPTCHA/challenge pages, and request budget exhaustion stop the entire run without retries, proxies or browser fallback. A detector cannot promise recognition of every future challenge format; no bypass logic is present. Changes to source structure are surfaced through parse errors instead of substituting recommendation data.

Research on 2026-10-07 observed public HTTP 200 product HTML and matching QAR 45 / in-stock / store-pickup facts. The terms page reviewed contained warranty/returns terms; no public automation ban was found in the reviewed material. This is not permission from the merchant or a legal conclusion. Recheck terms/robots for operational use.

### Local verification

Python 3.12 is the container target. Runtime dependencies are pinned in `requirements.txt` (Apify 4.0.2, Crawlee 1.10.4, Pydantic 2.13.5, Protego 0.7.0).

```
python -m venv .venv
.venv/bin/pip install -r requirements.txt -r requirements-dev.txt
.venv/bin/python -m unittest discover -s tests -v
.venv/bin/pip check
```

The suite is self-contained and offline. It validates official Apify input/dataset metaschemas and every sample row against the dataset field schema; tests exact QAR precision, source identity, recommendations, challenge true/false cases, robots and redirect controls; and exercises the real installed Apify SDK entrypoint with mocked extraction and temporary local dataset storage. These offline checks do not establish hosted build or run behavior.

Sanitized fixtures retain factual captured values and equivalent Next Flight structure, omitting the source's descriptions/media. The parser was additionally checked against the full original captured product and homepage outside the shipping package. Flight length-prefixed text records and split records have regression coverage. `review/fixture-provenance.json` records original capture hashes. `sample-output.json` is the one genuine captured product, not synthetic catalog rows; timestamp marks extraction from the captured response.

For an authorized tiny live smoke, use the files in `smoke/`; keep the strict budgets. After any access denial or challenge, stop and investigate rather than retrying with another identity.

### Packaging

`.actor/actor.json` wires the input, dataset and Dockerfile. `upload-map.json` maps each relative upload path to its UTF-8 source content; exclude `.venv`, caches, local storage and research raw HTML. `source-manifest.json` is the release checksum list. The local runtime and test evidence under `review/` are included for review; raw retailer captures are not.

### Pricing

The price is $3 per 1,000 product rows saved to the default dataset, plus $0.00005 per run start, with usage included; check the Store pricing panel for the price applying to your run.

# Actor input Schema

## `mode` (type: `string`):

Explicit mode required. Direct requires nonempty URLs. Discovery accepts omitted or empty URLs.

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

English HTTPS electronyat.qa product paths only. No query strings.

## `maxProducts` (type: `integer`):

Maximum output rows.

## `maxRequests` (type: `integer`):

Total includes robots, homepage and redirects.

## Actor input object example

```json
{
  "maxProducts": 3,
  "maxRequests": 10
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vixendata/electronyat-qatar-product-facts").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("vixendata/electronyat-qatar-product-facts").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 '{}' |
apify call vixendata/electronyat-qatar-product-facts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vixendata/electronyat-qatar-product-facts"
        }
    }
}
```

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/k7a2aRR55XGDINklW/builds/yQtzJ9ebamGtbUFMe/openapi.json
