# US Hardware & Power Tool Price Comparator (6 Stores) (`lonwabo/us-hardware-price-comparator`) Actor

Live multi-store price comparator and deal finder for power tools, hardware, and home improvement gear across The Home Depot, Lowe's, and Ace Hardware. Built-in tool model matching, kit vs. bare tool isolation, live price spread analytics, image previews, and direct purchase links.

- **URL**: https://apify.com/lonwabo/us-hardware-price-comparator.md
- **Developed by:** [Lonwabo Mfundisi](https://apify.com/lonwabo) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.90 / 1,000 results

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

## US Hardware & Power Tool Price Comparator (6 Stores)

A high-performance, multi-store price comparison and deal-finding Actor purpose-built for **Power Tools, Outdoor Equipment, Workshop Gear, and Hardware**.

Instead of manually checking multiple retailer websites and risking comparing a "Bare Tool" with an expensive "Battery Kit", this Actor simultaneously queries **Amazon**, **Walmart**, **The Tool Nut (Authorized Pro Dealer)**, **The Home Depot**, **Lowe's**, and **Ace Hardware**, normalizes tool specs with an **Intelligent Tool Resolution & Kit Partitioning Engine**, and reveals the lowest price, store spread, and direct purchase links.

***

### ⚡ What Does This Actor Do?

- 🔍 **Concurrent 6-Store Search:** Queries Amazon, Walmart, The Tool Nut, The Home Depot, Lowe's, and Ace Hardware in parallel to fetch live pricing, stock availability, and specs in seconds.
- 🌐 **Reliable Zero-Block Architecture:** Amazon, Walmart, and The Tool Nut deliver guaranteed live prices on standard proxies without getting geoblocked. Home Depot, Lowe's, and Ace Hardware seamlessly activate when residential proxies are enabled.
- 🧰 **Kit vs. Bare Tool Isolation Guard:** Power tool brands sell both "Tool Only" (bare tool) and "Combo Kits" (includes batteries, charger, carrying case). This comparator strictly isolates them so a $99 bare drill is never falsely compared against a $229 battery kit.
- 🛡️ **Manufacturer Part Number (MPN) Matcher:** Matches exact tool codes across stores (e.g. DeWalt `DCD777C2`, Milwaukee `2853-20`, Makita `XDT16Z`, Ryobi `PBLHM101B`).
- ⚡ **Voltage & Spec Alignment:** Distinguishes between `12V`, `18V`, `20V MAX`, `40V MAX`, and `60V MAX` platforms, plus brushless vs. brushed motor architectures.
- 💰 **Live Savings & Price Spread Analytics:** Calculates `lowestPrice`, `highestPrice`, `lowestStore`, and `potentialSavings` for every tool.
- 🖼️ **Direct Images & One-Click Buy Links:** Previews product thumbnails (`productImage`) and one-click purchase links (`bestDealUrl`) directly inside the Apify dataset table without digging through nested JSON.
- 🚦 **Unambiguous Stock Indicators:** Every retailer is clearly tagged as `In Stock ($price)` or `Not Available`—no blank or mysterious fields.

***

### 🎯 Supported Stores & Retail Networks

| Store | Catalog Focus | Accessibility |
| :--- | :--- | :---: |
| **Amazon US** | Full power tools catalog (DeWalt, Milwaukee, Makita, Bosch, Craftsman) | ✅ Global (Standard Proxy) |
| **Walmart US** | Extensive home improvement & power tool department | ✅ Global (Standard Proxy) |
| **The Tool Nut** | Authorized premier dealer for DeWalt, Milwaukee, Makita, Festool | ✅ Global (Standard Proxy) |
| **Ace Hardware** | National hardware chain & tool inventory | ✅ Global Access |
| **The Home Depot** | National hardware leader (Akamai protected) | 🛡️ US Residential Proxy (US Geofenced) |
| **Lowe's** | Home improvement giant (PerimeterX protected) | 🛡️ US Residential Proxy (US Geofenced) |

***

### 🛠️ How It Works

```
                               ┌─────────────┐
                               │ User Search │ (e.g. "DeWalt DCD777C2")
                               └──────┬──────┘
                                      │
          ┌─────────────┬─────────────┼─────────────┬─────────────┬─────────────┐
          ▼             ▼             ▼             ▼             ▼             ▼
     ┌─────────┐   ┌─────────┐   ┌──────────┐  ┌───────────┐  ┌─────────┐  ┌───────────┐
     │ Amazon  │   │ Walmart │   │ Tool Nut │  │Home Depot*│  │ Lowe's* │  │Ace Hdwre* │
     └────┬────┘   └────┬────┘   └────┬─────┘  └─────┬─────┘  └────┬────┘  └─────┬─────┘
          │             │             │              │             │             │
          └─────────────┴─────────────┼──────────────┴─────────────┴─────────────┘
                                      ▼
                      ┌───────────────────────────────┐
                      │    Strict Model Relevance     │ (Rejects mismatched tool generations)
                      └───────────────┬───────────────┘
                                      ▼
                      ┌───────────────────────────────┐
                      │ Kit vs. Bare Tool Partition   │ (Separates "Tool Only" from Kits)
                      └───────────────┬───────────────┘
                                      ▼
                      ┌───────────────────────────────┐
                      │    Entity Resolution Engine   │ (Aligns MPN, Voltage, Motor Type)
                      └───────────────┬───────────────┘
                                      ▼
                      ┌───────────────────────────────┐
                      │ Unified Comparison & Deal     │ (Lowest Price, Savings, Image, Buy Link)
                      └───────────────────────────────┘
```

*\*Home Depot, Lowe's, and Ace Hardware utilize strict bot mitigation and geoblocking requiring US Residential Proxies.*

***

### 🚀 How to Use

#### Method 1: Apify Console

1. Create a free or paid account on [Apify](https://apify.com).
2. Open **US Hardware Price Comparator** in the Console.
3. Enter your target tool model numbers or keywords in **Search keywords, tools, or model numbers** (e.g. `DeWalt DCD777C2`, `Milwaukee 2853-20`).
4. Select which stores to query.
5. Click **Start** and download your results in **Excel, CSV, JSON, or HTML**.

#### Method 2: Apify API (Python, Node.js, cURL)

```bash
curl --request POST \
  --url "https://api.apify.com/v2/actors/lonwabo~us-hardware-price-comparator/runs?token=YOUR_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "searchTerms": ["DeWalt DCD777C2", "Milwaukee 2853-20"],
    "stores": ["amazon", "walmart", "toolnut", "homedepot", "lowes", "acehardware"],
    "maxResultsPerStore": 5
  }'
```

***

### 🖥️ Interactive HTML Comparison Report (`report.html`)

In addition to exporting the structured Dataset in **JSON, CSV, Excel, or built-in HTML table (`format=html`)**, every run generates a standalone, self-contained **Interactive HTML Comparison Report (`report.html`)** directly inside the Apify Console **Output** tab (and via a shareable Key-Value Store link):

- **Horizontal View & Store Tabs** — Switch seamlessly between **Best Deals Cards**, **Side-by-Side Matrix**, and **6 dedicated individual store tabs** (**Amazon Tools**, **Walmart Tools**, **The Tool Nut**, **The Home Depot**, **Lowe's**, **Ace Hardware**), each displaying live matched item counts.
- **Deep-Linkable Tabs (`#tab=...`)** — Every tab updates the URL hash (e.g. `#tab=matrix`) so you can bookmark or share a specific merchant view directly.
- **Aligned Deal Cards & Specs** — Product thumbnails, uniform spec & brand badges, green cheapest-store highlights, spread savings pills, and clickable **View Best Deal** buttons.
- **Live Controls, Full Screen & Instant Exports** — Keyword search, multi-column sort (`Biggest Savings ($)`, `Lowest Price ($)`, `Highest Spread %`, `Most Stores Matched`), `2+ Stores Only` toggle, plus one-click **Download CSV**, **Download JSON**, **Print / PDF Quote**, and **Full Screen (`⛶`)** buttons.

![US Hardware & Power Tool Price Comparison Report — Interactive HTML View](https://api.apify.com/v2/key-value-stores/44gjIna4ipGc3tD78/records/us-hardware-price-comparator-v1.png?signature=sePJAdK6yC4UJlRpkaAS)

#### ⏰ Automated Schedules & Email / Slack Alerts (Apify Integrations)

Want daily or weekly price updates delivered automatically? Instead of storing credentials inside the Actor, use Apify's built-in **Schedules** and **Integrations**:

1. Save your preferred search terms and store toggles as a **Task**, then set a recurring **Schedule** (e.g., daily at 8:00 AM or every Monday morning).
2. Open the Actor/Task **Integrations** tab in Apify Console and connect **Send Email (`apify/send-mail`)**, **Slack (`apify/slack-alert`)**, **Google Sheets**, **Make**, **Zapier**, or a **Webhook** triggered on `Run succeeded`.
3. Include `{{links.apiDefaultKeyValueStoreUrl}}/records/report.html` or `{{links.apiDefaultDatasetUrl}}/items?format=csv` in your alert payload to receive the live HTML report or spreadsheet automatically after every scheduled run.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :---: | :--- | :--- |
| `searchTerms` | `array` | **Yes** | `["DeWalt DCD777C2", "Milwaukee 2853-20"]` | Products, model numbers, or tool keywords to compare. |
| `stores` | `array` | No | `["amazon", "walmart", "toolnut", "homedepot", "lowes", "acehardware"]` | Retailers to query. Uncheck any store you wish to exclude. |
| `maxResultsPerStore` | `integer` | No | `5` | Maximum number of candidate products to fetch per retailer. |
| `onlyMultiStoreMatches` | `boolean` | No | `false` | When set to `true`, filters out items found in only 1 store, focusing purely on direct price battles. |
| `minPrice` | `integer` | No | `5` | Minimum price filter in USD ($). |
| `maxPrice` | `integer` | No | `2000` | Maximum price filter in USD ($). |
| `includeFields` | `array` | No | `["productImage", "brand", "specs", "storeColumns", "dealVerdict"]` | Deselect optional dense fields to keep output lightweight. Core fields (Title, Lowest Price, Store, Spread, Link) are always included. |
| `proxyConfiguration` | `object` | No | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Apify Residential Proxy configuration (routed to US IPs). |

***

### 📤 Output Dataset Format

Every scraped product is stored as a clean, tabular dataset item in Apify:

```json
{
  "productImage": "https://m.media-amazon.com/images/I/71xyz.jpg",
  "productName": "DEWALT 20V MAX Cordless Brushless 1/2 in. Drill/Driver Kit (DCD777C2)",
  "searchTerm": "DeWalt DCD777C2",
  "storeCount": 3,
  "lowestPrice": 149.00,
  "highestPrice": 186.99,
  "potentialSavings": 37.99,
  "lowestStore": "Amazon",
  "bestDealUrl": "https://www.amazon.com/dp/B01M17UUS1",
  "amazonStatus": "$149.00 (In Stock)",
  "walmartStatus": "$154.99 (In Stock)",
  "toolNutStatus": "$186.99 (In Stock)",
  "homeDepotStatus": "Not Available",
  "lowesStatus": "Not Available",
  "aceHardwareStatus": "Not Available",
  "amazonPrice": 149.00,
  "amazonUrl": "https://www.amazon.com/dp/B01M17UUS1",
  "walmartPrice": 154.99,
  "walmartUrl": "https://www.walmart.com/ip/...",
  "toolNutPrice": 186.99,
  "toolNutUrl": "https://www.toolnut.com/products/dewalt-dcd777c2-...",
  "stores": {
    "amazon": { "price": 149.00, "inStock": true, "status": "In Stock" },
    "walmart": { "price": 154.99, "inStock": true, "status": "In Stock" },
    "toolnut": { "price": 186.99, "inStock": true, "status": "In Stock" }
  },
  "timestamp": "2026-11-09T12:00:00.000Z"
}
```

***

### 💼 Practical Use Cases

- **Contractor & Trade Procurement:** General contractors, electricians, and plumbers can paste their tool supply lists to discover where to buy job site equipment at the steepest discount.
- **Retail & Online Arbitrage:** Pinpoint massive price differences across Amazon, Walmart, and specialized tool suppliers for hardware reselling.
- **Tool Deal Sites & Affiliate Blogs:** Power real-time "Where to buy cheapest" comparison tables and price-drop alerts for DIY and woodworking audiences.
- **Competitor Price Intelligence:** Track promotional pricing and inventory across top US hardware retailers.

***

### ❓ Frequently Asked Questions (FAQ)

#### Do I need residential proxies to use this Actor?

No! **Amazon**, **Walmart**, and **The Tool Nut** work reliably on standard datacenter proxies and Apify free tier accounts without getting geoblocked. If you also want to pull data from **The Home Depot**, **Lowe's**, and **Ace Hardware**, you can enable Apify US Residential Proxies.

#### How does the Actor prevent mixing up bare tools and kits?

The internal matcher inspects product titles and model numbers for kit tokens (e.g. `Kit`, `with Battery`, `-21`, `-22`) versus bare tool indicators (e.g. `Bare Tool`, `Tool Only`, `-20`). Offers with conflicting packaging tiers are strictly partitioned into separate comparison rows.

***

### 💡 Tips for Best Results

- **Search by Model or MPN:** Entering exact manufacturer model numbers (e.g. `DCD800B`, `2904-20`, `DCF850P1`) gives 100% precise spec matching across retailers.
- **Keep Packaging Consistent:** Searching for specific kit configurations (e.g. `bare tool` or `2-battery kit`) prevents cross-tier price mismatches.
- **Filter Single-Store Noise:** Turn ON `onlyMultiStoreMatches` to isolate direct price battles between competing hardware stores.

***

### 🔌 Integrations & Export Formats

Apify datasets can be downloaded or synced automatically into your existing tech stack:

- **Spreadsheets:** Download structured records directly as **Excel (.xlsx)** or **CSV** for contractor job estimates.
- **Google Sheets:** Sync live pricing data continuously using `=IMPORTDATA(datasetUrl)`.
- **Workflow Automation (Make / Zapier):** Trigger automated inventory alerts or push notifications whenever a profitable price gap is found.
- **Developer API:** Query results via REST API in Python, Node.js, or cURL to power your custom procurement apps.

***

### 🎛️ Standardized Store Toggles, Filter Guards & Per-Store Tabs

This Actor includes unified comparison controls matching our full suite:

#### Individual Store Toggles (`ON` / `OFF`)

Turn any retailer on or off directly from the input form without editing JSON arrays:

- **Amazon Tools** (`includeAmazon`): Include Amazon US power tools & workshop gear.
- **Walmart Tools** (`includeWalmart`): Include Walmart US tools & hardware.
- **The Tool Nut** (`includeToolNut`): Include The Tool Nut — authorized pro tool dealer.
- **The Home Depot** (`includeHomeDepot`): Include The Home Depot (Requires US Residential Proxy).
- **Lowe's** (`includeLowes`): Include Lowe's (Requires US Residential Proxy).
- **Ace Hardware** (`includeAceHardware`): Include Ace Hardware national tool & hardware catalog.

#### Smart Filter & Sort Controls

- **`excludeAccessories` (Default: `true`):** Filters out cases, stands, chargers, cables, skins, and adapters when searching for main hardware/products.
- **`brandNewOnly` (Default: `true`):** Excludes used, second-hand, pre-owned, and refurbished listings from skewing the lowest retail price.
- **`inStockOnly` (Default: `true`):** Excludes out-of-stock offers so only purchasable listings are compared.
- **`onlyMultiStoreMatches` (Default: `false`):** Toggle ON to isolate products matched across 2 or more stores.
- **`sortBy`:** Sort results by **Biggest Savings ($)** (`priceSpreadDesc`), **Lowest Price ($)** (`bestPriceAsc`), **Most Stores Matched** (`storesComparedDesc`), or **Highest Discount %** (`savingsPercentDesc`).
- **`minSimilarityScore`:** Fine-tune fuzzy cross-store matching sensitivity (`0.2` – `0.9`).

#### 📊 Dataset Views (9 Organized Tabs)

| Tab Name | What You See |
| :--- | :--- |
| **Best Deals Overview** | Winning prices, brand/category specs, spreads, deal verdicts & best deal links |
| **Side-by-Side Store Matrix** | Parallel pricing and direct links across all 6 retailers side-by-side |
| **Amazon Tools** | Dedicated tab with Amazon Tools image, title, price, list price, discount %, rating, reviews, stock & link |
| **Walmart Tools** | Dedicated tab with Walmart Tools image, title, price, list price, discount %, rating, reviews, stock & link |
| **The Tool Nut** | Dedicated tab with The Tool Nut image, title, price, list price, discount %, rating, reviews, stock & link |
| **The Home Depot** | Dedicated tab with The Home Depot image, title, price, list price, discount %, rating, reviews, stock & link |
| **Lowe's** | Dedicated tab with Lowe's image, title, price, list price, discount %, rating, reviews, stock & link |
| **Ace Hardware** | Dedicated tab with Ace Hardware image, title, price, list price, discount %, rating, reviews, stock & link |
| **All Fields** | Complete raw dataset payload including nested offers for JSON/CSV/Excel export |

***

### 🔗 Related Price Comparators & Scrapers

Explore the complete multi-store price intelligence and retail arbitrage suite from [Lonwabo Mfundisi](https://apify.com/lonwabo):

- **[US Electronics & PC Price Comparator](https://apify.com/lonwabo/us-retail-price-comparator)** — Compare live prices across Amazon, Best Buy, Walmart, and Newegg.
- **[US Beauty & Cosmetics Price Comparator](https://apify.com/lonwabo/us-beauty-price-comparator)** — Compare live prices across Sephora, Ulta Beauty, Target, Amazon, and Walmart.
- **[US Outdoor Gear & Sporting Goods Comparator](https://apify.com/lonwabo/us-outdoor-gear-comparator)** — Real-time price battles across REI, Bass Pro Shops, Target, Amazon, Walmart, and Dick's.
- **[US Pet Supplies & Food Price Comparator](https://apify.com/lonwabo/us-pet-price-comparator)** — Track pet food and healthcare across Chewy, Petco, PetSmart, Amazon, and Walmart.
- **[US Book Price Comparator (6 Bookstores)](https://apify.com/lonwabo/us-book-price-comparator)** — Real-time book prices, formats, and remainder arbitrage across Amazon, Barnes & Noble, Bookshop.org, ThriftBooks, AbeBooks, and BookOutlet.
- **[US Retail Arbitrage & Deal Finder](https://apify.com/lonwabo/us-arbitrage-price-comparator)** — Cross-store arbitrage scanner finding high-spread margin opportunities for Amazon FBA & eBay sellers.
- **[US Beauty Arbitrage & Deal Alert Bot](https://apify.com/lonwabo/us-beauty-deal-alert-bot)** — Automated 24/7 watchdog sending instant Telegram & Discord push alerts for 20%+ beauty discounts.

* **[South Africa Retail Price Comparator (Takealot, Makro, Amazon ZA, Bob Shop, Game)](https://apify.com/lonwabo/south-africa-retail-price-comparator)** — Compare ZAR prices across South Africa's top 5 online retailers.

***

### 💬 Support & Feedback

Need a custom tool retailer added, feature request, or assistance?

- Use the **Issues** tab on this Actor's page in the Apify Console.
- Follow and contact [Lonwabo Mfundisi on Apify](https://apify.com/lonwabo).

# Actor input Schema

## `searchTerms` (type: `array`):

Power tools, hand tools, lawn equipment, or hardware keywords/model numbers to compare (e.g. 'DeWalt DCD777C2', 'Milwaukee 2853-20', 'Makita XDT16Z', 'Ryobi PBLHM101B').

## `includeAmazon` (type: `boolean`):

Include Amazon US power tools & workshop gear.

## `includeWalmart` (type: `boolean`):

Include Walmart US tools & hardware.

## `includeToolNut` (type: `boolean`):

Include The Tool Nut — authorized pro tool dealer.

## `includeHomeDepot` (type: `boolean`):

Include The Home Depot (Requires US Residential Proxy).

## `includeLowes` (type: `boolean`):

Include Lowe's (Requires US Residential Proxy).

## `includeAceHardware` (type: `boolean`):

Include Ace Hardware national tool & hardware catalog.

## `maxItemsPerStore` (type: `integer`):

Number of candidate products to fetch from each store per search term.

## `minPrice` (type: `integer`):

Ignore tools or hardware accessories priced lower than this threshold in USD.

## `maxPrice` (type: `integer`):

Ignore items priced higher than this threshold in USD.

## `excludeAccessories` (type: `boolean`):

Automatically filters out stands, chargers, cases, covers, skins, and cables when searching for main hardware/products.

## `brandNewOnly` (type: `boolean`):

Excludes second-hand, used, pre-owned, and refurbished listings from skewing the lowest price comparison.

## `inStockOnly` (type: `boolean`):

Only include store offers currently available in stock.

## `onlyMultiStoreMatches` (type: `boolean`):

When enabled, filters out products that only appear in a single store, focusing strictly on direct cross-store price comparisons.

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

Choose how the comparison dataset is ordered.

## `includeFields` (type: `array`):

Deselect optional dense fields to keep dataset lightweight. Core comparison fields (Product Name, Best Price, Lowest Store, Spread/Savings, Deal URL) are permanently included and cannot be removed.

## `minSimilarityScore` (type: `number`):

Similarity score (0.2 to 0.9) required to match products across different stores. Default 0.55 is calibrated for this category.

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

Proxy configuration. Using Apify Residential proxies (groups: \['RESIDENTIAL']) routed through the US is recommended for full 6-store coverage.

## Actor input object example

```json
{
  "searchTerms": [
    "DeWalt DCD777C2",
    "Milwaukee 2853-20"
  ],
  "includeAmazon": true,
  "includeWalmart": true,
  "includeToolNut": true,
  "includeHomeDepot": true,
  "includeLowes": true,
  "includeAceHardware": true,
  "maxItemsPerStore": 5,
  "minPrice": 5,
  "maxPrice": 2000,
  "excludeAccessories": true,
  "brandNewOnly": true,
  "inStockOnly": true,
  "onlyMultiStoreMatches": false,
  "sortBy": "priceSpreadDesc",
  "includeFields": [
    "productImage",
    "brand",
    "specs",
    "storeColumns",
    "dealVerdict"
  ],
  "minSimilarityScore": 0.55,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `htmlReport` (type: `string`):

Interactive side-by-side comparison cards, store tabs, matrix view, search/sort controls, Full Screen toggle, and CSV/JSON/Print export.

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

Structured dataset containing matched multi-store prices, spreads, store columns, stock status, and direct buy links.

# 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 = {
    "searchTerms": [
        "DeWalt DCD777C2",
        "Milwaukee 2853-20"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lonwabo/us-hardware-price-comparator").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 = { "searchTerms": [
        "DeWalt DCD777C2",
        "Milwaukee 2853-20",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lonwabo/us-hardware-price-comparator").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 '{
  "searchTerms": [
    "DeWalt DCD777C2",
    "Milwaukee 2853-20"
  ]
}' |
apify call lonwabo/us-hardware-price-comparator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lonwabo/us-hardware-price-comparator"
        }
    }
}
```

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/beH9puor4PdnJVifC/builds/GMtL4hY06WpPnSeoh/openapi.json
