# Harbor Freight Scraper: Tool Prices, Sales & Coupons (`superslowsloth/harborfreight-products`) Actor

Harbor Freight scraper: category page addresses to one row per tool with USD price, regular price, sale and clearance codes, Compare-to competitor price, Inside Track Club coupon price and expiry, rating, review count and in-store-only flag. For tool price-drop and coupon watching.

- **URL**: https://apify.com/superslowsloth/harborfreight-products.md
- **Developed by:** [Superslow Sloth](https://apify.com/superslowsloth) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 product scrapeds

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

## Harbor Freight scraper: tool price, sale and coupon tracker (USA)

This Harbor Freight scraper reads [Harbor Freight Tools](https://www.harborfreight.com)
category pages and returns one flat row per product: the current price in **USD**,
the regular price, the sale or clearance event the product is in and when it ends,
the "Compare to" competitor price Harbor Freight prints on the tile, the
**Inside Track Club coupon** price with its expiry, the star rating and review count,
the item number, the product link and the photo. Run it on a schedule and diff the
dataset to get a **Harbor Freight price-drop, sale and coupon watch** per category:
which air compressors went on sale since last week, what an impact wrench costs
today, which coupon expires on which day.

No account, no API key, no login, no browser. One request returns up to 36 products.

### Input

| Field | Notes |
|---|---|
| `categories` | Harbor Freight category pages, one per line: the page address (`https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html`) or its path (`/air-tools-compressors/air-compressors-tanks.html`). Copy it from your browser; a query string is ignored. A category page lists every product under it. A **department page** such as `/air-tools-compressors.html` lists no products: the run reports it and names the category pages under it. |
| `maxItems` | Products to read per category (default 100, up to 2,000). 36 per page. |
| `sort` | The site's own sort: `best-match`, `top-rated`, `price-low`, `price-high`. It decides which products a `maxItems` cut-off keeps. |
| `onlyDeals` | Return only products that are marked down (`on_sale`), sit in a sale or clearance event (`sale_code`) or carry a coupon (`coupon_price`). Others are read, not returned and not charged, and do not count toward `maxItems`. |
| `proxyConfiguration` | Apify datacenter proxy by default. |

At least one category is required. A product that two categories both list is
returned once, under the first, and charged once.

Example input:

```json
{
  "categories": [
    "https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html",
    "/air-tools-compressors/air-compressor-accessories.html"
  ],
  "maxItems": 100,
  "sort": "price-low",
  "onlyDeals": true
}
```

### Output

Prices are numbers in US dollars; `currency` is `USD`.

| Field | Notes |
|---|---|
| `category_id`, `category_name`, `category_url` | The category the product was listed under: Harbor Freight's id (1999), its name, and the page address. |
| `position` | The product's place in Harbor Freight's own order for that category in the `sort` asked for (1 is first), counted over every product of the pages read. Counted before duplicates and the `onlyDeals` filter. |
| `sku` | Harbor Freight's **item number** (`57572`), as printed on the page. A string, unique per row. |
| `name`, `brand`, `url`, `image_url` | As the page shows them. `brand` is the capitalised brand on the tile (`PITTSBURGH`, `FORTRESS`); `name` does not repeat it. |
| `badge` | The tile's text sticker, e.g. `NEW`. Null when none. A Clearance sticker is an image, see `sale_code`. |
| `currency` | `USD`. |
| `price` | What a shopper pays without a coupon, as the tile shows it (the sale price while a sale runs). |
| `regular_price` | The regular price. Equals `price` when nothing is marked down. |
| `on_sale` | True when `price` is below `regular_price`. Worked out from the two. |
| `discount_amount`, `percent_off` | Dollars off and whole percent off. **Null unless on sale**, never 0. |
| `sale_code` | The sale event the product is in, as the site sends it: `CLR` is the Clearance sticker, `EBF` the early Black Friday deals sticker. Null when the product is in no event. A product can carry `CLR` at its regular price, so this does not imply `on_sale`. |
| `sale_savings`, `sale_ends` | The event's own savings text (`22%`) and its end, as sent (`2026-11-25 23:59:59`, the site's own clock, no time zone). Null with no event, and `sale_savings` is also null where the site sends `0`. |
| `compare_price`, `compare_brand`, `compare_model`, `compare_savings` | Harbor Freight's "Compare to" line: what a comparable product from `compare_brand` costs elsewhere, and the saving against it as the site words it (`$91.83` or `37%`). **Null when the site names no comparison** (it sends 0.00 for those, which is not a price). |
| `coupon_price` | The price with the coupon the site promotes on the tile. Null when the tile promotes none. |
| `coupon_savings`, `coupon_expires`, `coupon_code`, `coupon_limit` | The coupon's saving (`$30`, `22%`), last day (`2026-12-03`), number as printed on the coupon, and how many it allows per customer. Null with `coupon_price`. |
| `coupon_member_only` | True for an Inside Track Club member coupon. Null with `coupon_price`. |
| `availability` | The sales channel the site lists the product for: `online and in store`, or `in-store only` (the tile shows an In-Store Only link, no Add to Cart). **This is the channel flag, not stock**: stock is per store and the page loads it in the browser. |
| `rating`, `review_count` | The average star rating (0 to 5) and how many ratings it is from. **Variants of one product share the product's rating** (three hose lengths of one hose carry the same 4.6 from 1,149). Null when the ratings call did not list the product; `rating` is null for a product with no ratings. |

Example row (real values, 2026-11-11):

```json
{
  "category_id": 2006,
  "category_name": "Air Compressor Accessories",
  "category_url": "https://www.harborfreight.com/air-tools-compressors/air-compressor-accessories.html",
  "position": 1,
  "sku": "58540",
  "name": "1/4 in. x 100 ft. Polyurethane Air Hose, 1/4 in. NPT Fittings",
  "brand": "MERLIN",
  "url": "https://www.harborfreight.com/14-in-x-100-ft-polyurethane-air-hose-14-in-npt-fittings-58540.html",
  "image_url": "https://www.harborfreight.com/media/catalog/product/cache/87bb6fe55719635edbf9f739e6fd104e/5/8/58540_W3.jpg",
  "badge": null,
  "currency": "USD",
  "price": 34.99,
  "regular_price": 44.99,
  "on_sale": true,
  "discount_amount": 10.0,
  "percent_off": 22,
  "sale_code": "EBF",
  "sale_savings": "22%",
  "sale_ends": "2026-11-25 23:59:59",
  "compare_price": 55.98,
  "compare_brand": "KOBALT",
  "compare_model": "SGY-AIR263",
  "compare_savings": "37%",
  "coupon_price": null,
  "coupon_savings": null,
  "coupon_expires": null,
  "coupon_code": null,
  "coupon_member_only": null,
  "coupon_limit": null,
  "availability": "online and in store",
  "rating": 4.6,
  "review_count": 1149
}
```

#### Honest nulls

A field the site did not send is `null`, never `0` or `""`.

- **No stock counts and no store-level stock.** `availability` is the channel flag.
  Results are the site's online view with no store selected.
- **Only the one coupon the tile promotes.** Harbor Freight also prints coupons in
  its weekly flyer and in the app; those are not on the category page and are not here.
- **No product descriptions, specifications or per-variant options.** This is the
  category listing, one row per item number.

### Pricing

Pay per event:

- **$0.002** per run (`actor-start`), charged only after your input is
  validated, so a run that fails on bad input costs nothing.
- **$0.0021** per product row written (`product-scraped`), i.e. $2.10 per
  1,000 products. A row that is not written is not charged: rows filtered by
  `onlyDeals`, and repeats of a product another category already returned, are free.

### How it fetches

It reads the category page that harborfreight.com serves, which carries the product
list the site paints its own grid from (`window.__APOLLO_STATE__`), and one call to
the site's own ratings query per page of up to 36 products, because the page loads
star ratings in the browser. Measured 2026-11-11: HTTP 200 and the same page from
every Firefox and Safari browser profile tried (nine) from a plain connection with no proxy, and a
PerimeterX "Access to this page has been denied" page (HTTP 403) for the Chrome
profile on that connection; from Apify datacenter addresses the Chrome profile was answered 10 of
10 times, from residential addresses 6 of 10. A refusal (403, 429, 5xx), a 200 that
is not the category page, or a dropped connection is treated as the address or the
browser profile being blocked, and the actor moves to a fresh address and the next
browser profile and retries.

Things worth knowing, all measured:

- **Paging uses `current`** (`?current=2`), 36 products a page. `?page=2` is ignored by
  the site and returns page 1, so it is not used. A page past the last one answers 200
  with no products, which is how a walk ends. A 105-product category is three pages
  (36, 36 and 33).
- **A department page lists no products.** `/air-tools-compressors.html` (499 products
  across its categories) is a menu of category pages; the run fails that entry with a
  message naming eight of the category pages under it. Category pages one level down
  (`/air-tools-compressors/air-compressors-tanks.html`) and deeper list products, and a
  category with sub-categories lists everything under it.
- **An address the site does not know is answered 200**, not 404. The actor reads the
  page's own "no route" marker and reports it, rather than returning nothing.
- **The ratings call can fail while the page worked.** Then the page's rows are still
  returned, with `rating` and `review_count` null, and the run log names the page.
- **Sorting works and is validated.** The three sorts the site offers are sent as
  `order`; the site silently ignores an unknown one, so the actor refuses it.
- **Totals drift** with stock and price changes during a long walk (a product that
  moves between two pages can be read twice or missed); a product read twice is
  returned once.

If Harbor Freight changes its page, the run fails with a message instead of
returning empty rows.

# Actor input Schema

## `categories` (type: `array`):

Harbor Freight category pages to list, one per line: the page address (for example https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html) or just its path (/air-tools-compressors/air-compressors-tanks.html). Use a category page, the kind with a product grid, not a department page such as /air-tools-compressors.html, which lists no products: the run reports it and names the category pages under it. A category page lists every product under it, 36 per page. Copy the address from your browser; a query string is ignored.

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

Read at most this many products for each category page. Harbor Freight lists 36 per page, so 100 reads three pages. The form starts at 30, one page. Up to 2,000 are accepted.

## `sort` (type: `string`):

The order the site lists products in, which decides which ones a Max products cut-off keeps. Best match is the site's default. Price low to high puts the cheapest first (the site's own sort).

## `onlyDeals` (type: `boolean`):

Return only products that are marked down (price below regular_price), sit in a sale or clearance event (sale_code is set) or carry a coupon (coupon_price is set). Other products are read but not returned and not charged, and do not count toward Max products. A category with few deals reads many pages to find them.

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

Use Apify's automatic datacenter proxy (the default). harborfreight.com sits behind PerimeterX: from the platform's datacenter addresses the page answered 10 of 10 when this actor was built, from residential addresses 6 of 10 (403 on the rest), so the datacenter group is both cheaper and better. A refused request is retried from a fresh address and a different browser profile.

## Actor input object example

```json
{
  "categories": [
    "https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html"
  ],
  "maxItems": 30,
  "sort": "best-match",
  "onlyDeals": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (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 = {
    "categories": [
        "https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html"
    ],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("superslowsloth/harborfreight-products").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 = {
    "categories": ["https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html"],
    "maxItems": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("superslowsloth/harborfreight-products").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 '{
  "categories": [
    "https://www.harborfreight.com/air-tools-compressors/air-compressors-tanks.html"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call superslowsloth/harborfreight-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superslowsloth/harborfreight-products"
        }
    }
}
```

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/CXwjDAvH5nG5jKrUH/builds/5u5G3ID0VPIr4cv0j/openapi.json
