# HAW Generic Product Page Extractor (`martinhida/haw-generic-product-page-extractor`) Actor

Extract visible product facts from supplied product pages.

- **URL**: https://apify.com/martinhida/haw-generic-product-page-extractor.md
- **Developed by:** [Hidalgo Martin](https://apify.com/martinhida) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$15.00 / 1,000 product-extracteds

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

## HAW Generic Product Page Extractor

Extract visible product facts from supplied product pages. The Actor uses bounded deterministic processing and returns traceable evidence rather than unsupported claims.

### Use cases

- AI-agent and RAG workflows
- scheduled site quality monitoring
- SEO and content operations
- developer automation pipelines
- auditable data exports

### Input

Supply public/authorized URLs or bounded data shown in `example-input.json`. Inputs expose conservative limits for items, concurrency, timeout, response bytes, and total charge.

### Output

Results are written to the default dataset with timestamps, extraction methods, source references where applicable, and explicit error records. See `fixtures/sample-output.json` for shape.

### Pricing

PAY\_PER\_EVENT: **$0.015 per `product-extracted`**. Failed records are never charged. The buyer-controlled total-charge cap stops further billable output.

### API and automation

Run from Apify Console, API, schedules, webhooks, MCP-capable clients, or agent workflows. The default dataset exposes JSON, JSONL, CSV, and other standard Apify exports.

### Limits and responsible use

Use only public or explicitly authorized inputs. Robots.txt is respected by default for crawling; override only for sites you own or are authorized to test. SSRF defenses block localhost, private networks, and metadata services. There is no CAPTCHA, login, paywall, access-control, or anti-bot bypass. No credentials are collected, no forms are submitted, and no paid third-party API is used. Results are automated evidence, not legal certification.

### FAQ

**Does it require a paid API key?** No. Hidden external paid services are not used.

**When am I charged?** Only after a successful value record is stored; error records are free.

**Can it access private or gated sites?** No. Private networks, authentication barriers, and gated content are out of scope.

**Can I automate it?** Yes, through standard Apify APIs, schedules, webhooks, and integrations.

Keywords: HAW Tools, ecommerce, automation, haw generic product page extractor, deterministic automation, public data.

# Actor input Schema

## `urls` (type: `array`):

Public HTTP(S) URLs supplied by the user for bounded processing.

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

Hard cap on output records for this run.

## `concurrency` (type: `integer`):

Maximum parallel public network requests.

## `timeoutMs` (type: `integer`):

Hard timeout for each network request or browser navigation.

## `maxResponseBytes` (type: `integer`):

Maximum accepted bytes for any network response.

## `respectRobots` (type: `boolean`):

Honor robots.txt directives for public crawling.

## `authorizedRobotsOverride` (type: `boolean`):

Enable only for a site you own or are explicitly authorized to test.

## `maxTotalChargeUsd` (type: `number`):

Buyer protection cap in US dollars for successful value events.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/"
  ],
  "maxItems": 10,
  "concurrency": 5,
  "timeoutMs": 30000,
  "maxResponseBytes": 5000000,
  "respectRobots": true,
  "authorizedRobotsOverride": false,
  "maxTotalChargeUsd": 1
}
```

# Actor output Schema

## `datasetUrl` (type: `string`):

No description

## `datasetItemsUrl` (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 = {
    "urls": [
        "https://example.com/"
    ],
    "maxItems": 10,
    "respectRobots": true,
    "maxTotalChargeUsd": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("martinhida/haw-generic-product-page-extractor").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 = {
    "urls": ["https://example.com/"],
    "maxItems": 10,
    "respectRobots": True,
    "maxTotalChargeUsd": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("martinhida/haw-generic-product-page-extractor").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 '{
  "urls": [
    "https://example.com/"
  ],
  "maxItems": 10,
  "respectRobots": true,
  "maxTotalChargeUsd": 1
}' |
apify call martinhida/haw-generic-product-page-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martinhida/haw-generic-product-page-extractor"
        }
    }
}
```

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/eDicY03NMZRoR6OxM/builds/ArM1AHDbNaXiaxINj/openapi.json
