# HAR.com Scraper (`datascrapers/har-com-scraper`) Actor

Scrape Texas real estate listings from HAR.com, with optional listing details and seller profiles on the same row.

- **URL**: https://apify.com/datascrapers/har-com-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 listings

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

**HAR.com Scraper** creates a structured dataset of property listings collected from HAR.com. Each dataset item can include the HAR id, address, price, beds, size, and status. Query the source with a city and a listing type, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![HAR.com Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/har-com-scraper/har-com-scraper-value-demo.gif)](https://apify.com/datascrapers/har-com-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | har.com |
| Record unit | One property listing |
| Input methods | searchQueries, listingType |
| Main identifiers | harId, listingId |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 listings on the free plan |

### Coverage and available records

A city search returns for-sale or other listing types you set. The stored Houston search includes 6826 Larkstone St, Houston, TX 77028, price 72329, 3 beds, status Coming Soon. harId is 3168126.

Set scrapeListingDetails to charge listing-details. Set scrapeSellerDetails to charge seller-details. The example does not copy a seller name. maxItems limits listings. The Actor does not contact a seller.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| harId | string | no | HAR id. Use this field to deduplicate. | 3168126 |
| listingId | string | yes | Listing id. | 11336581 |
| mlsNumber | string | yes | MLS number. | 54756769 |
| url | string | yes | Listing URL. | https://www.har.com/homedetail/6826-larkstone-st-houston-tx-77028/3168126 |
| address | string | yes | Street address. | 6826 Larkstone St |
| city | string | yes | City. | Houston |
| state | string | yes | State. | TX |
| zip | string | yes | Postal code. | 77028 |
| price | number | yes | List price. | 72329 |
| beds | number | yes | Bedroom count. | 3 |
| statusLabel | string | yes | Status text. | Coming Soon |
| forSale | boolean | yes | For-sale flag. | true |

### Example dataset record

```json
{
  "harId": 3168126,
  "listingId": 11336581,
  "address": "6826 Larkstone St",
  "city": "Houston",
  "state": "TX",
  "zip": "77028",
  "price": 72329,
  "beds": 3,
  "statusLabel": "Coming Soon",
  "forSale": true
}
```

This is a stored Houston listing. Seller names are not copied into this example.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | city names | Cities to search. |
| listingType | string | no | schema default | forSale and other codes | Listing type. |
| scrapeListingDetails | boolean | no | false | true or false | Charge listing-details. |
| scrapeSellerDetails | boolean | no | false | true or false | Charge seller-details. |
| maxItems | integer | no | schema default | integer | Listing cap. |
| maxConcurrency | integer | no | schema default | positive integer | Parallel reads. |
| proxyConfiguration | object | no | Apify residential | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["Houston"], "listingType": "forSale", "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/har-com-scraper").call(run_input={
    "searchQueries": ["Houston"],
    "listingType": "forSale",
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("harId"), item.get("price"))
```

### Data quality and record handling

Deduplicate on harId. price is the list price at request time. statusLabel is the text on the listing. A later run can show a new price or status for the same id.

### Pricing and cost examples

Pay per event. listing and listing-details are $1.50 per 1,000 on Free, $1.40 on Bronze, $1.30 on Silver, and $1.20 on Gold. seller-details is $2.00, $1.90, $1.80, and $1.70 per 1,000. Platinum and Diamond use the Gold price. Apify platform usage is billed separately. Saving 1,000 listings without extras costs $1.50 on Free, plus platform usage.

### Limitations and responsible data use

The Actor reads public listings. It does not contact a seller. HAR can change a price or withhold a search. Use the data in line with HAR terms.

### Dataset questions

#### What is one record?

One listing, keyed by harId.

#### Which field should I use to deduplicate?

harId.

#### When is seller-details charged?

When scrapeSellerDetails is true and that enrichment is saved.

### Related datasets from Data Scrapers

- [Trulia Scraper](https://apify.com/datascrapers/trulia-scraper)
- [Daft Scraper](https://apify.com/datascrapers/daft-ie-scraper)
- [Hemnet Scraper](https://apify.com/datascrapers/hemnet-se-scraper)
- [Bayut Scraper](https://apify.com/datascrapers/bayut-sa-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `searchQueries` (type: `array`):

Cities, ZIP codes, or HAR.com search/listing URLs. Example: Houston, 77002, or a full search URL.

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

HAR.com search result URLs or listing detail URLs. Query-string filters on search URLs are kept.

## `listingType` (type: `string`):

Market status to search.

## `city` (type: `string`):

City name applied to every search (overridden by city values inside start URLs).

## `zipCode` (type: `string`):

5-digit Texas ZIP code filter.

## `subdivision` (type: `string`):

Subdivision or neighborhood name.

## `keywords` (type: `string`):

Additional keywords passed to the HAR search form.

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

Minimum list price in USD.

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

Maximum list price in USD.

## `minBeds` (type: `integer`):

Minimum bedroom count.

## `minBaths` (type: `integer`):

Minimum full bathroom count.

## `minSqft` (type: `integer`):

Minimum building square footage.

## `maxSqft` (type: `integer`):

Maximum building square footage.

## `minYearBuilt` (type: `integer`):

Minimum year built.

## `propertyClass` (type: `string`):

HAR property class filter.

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

Sort order for search results.

## `scrapeListingDetails` (type: `boolean`):

When enabled, open each listing page and attach extra facts, photos, and description in the listingDetails column. Uses rotating proxies and runs concurrently. Charges the listing-details event.

## `scrapeSellerDetails` (type: `boolean`):

When enabled, open the listing agent profile and attach sellerDetails on the same row. Uses rotating proxies and runs concurrently. Charges the seller-details event.

## `maxConcurrency` (type: `integer`):

Parallel listing-detail and seller-detail requests when those options are enabled.

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

Maximum number of listings to scrape (0 = unlimited).

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

Apify proxy settings. Residential proxies are recommended.

## Actor input object example

```json
{
  "searchQueries": [
    "Houston"
  ],
  "startUrls": [
    {
      "url": "https://www.har.com/search/dosearch?for_sale=1&city=Houston"
    }
  ],
  "listingType": "forSale",
  "city": "Houston",
  "propertyClass": "any",
  "sortBy": "newest",
  "scrapeListingDetails": false,
  "scrapeSellerDetails": false,
  "maxConcurrency": 8,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset of HAR.com listings. Each row is one listing; listingDetails and sellerDetails are extra columns when enabled.

## `runStats` (type: `string`):

Record counts and timestamps for this run

# 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 = {
    "searchQueries": [
        "Houston"
    ],
    "startUrls": [
        {
            "url": "https://www.har.com/search/dosearch?for_sale=1&city=Houston"
        }
    ],
    "city": "Houston",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/har-com-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 = {
    "searchQueries": ["Houston"],
    "startUrls": [{ "url": "https://www.har.com/search/dosearch?for_sale=1&city=Houston" }],
    "city": "Houston",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/har-com-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 '{
  "searchQueries": [
    "Houston"
  ],
  "startUrls": [
    {
      "url": "https://www.har.com/search/dosearch?for_sale=1&city=Houston"
    }
  ],
  "city": "Houston",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/har-com-scraper --silent --output-dataset

```

## MCP server setup

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