# Cook County Parcel Sales Scraper (`real-estate-api/cook-county-parcel-sales-scraper`) Actor

Cook County Parcel Sales Scraper is a Python tool to extract parcel identification numbers (PINs), sale prices, transaction dates, deed types, and buyer and seller names from the Cook County Open Data porta. It exports real estate sales histories into clean CSV or JSON format

- **URL**: https://apify.com/real-estate-api/cook-county-parcel-sales-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.
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

### Cook County Parcel Sales Scraper — Illinois Property Sales Records

![Cook County Parcel Sales Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/cook-county-parcel-sales-scraper-cover.png)

Cook County Parcel Sales Scraper collects publicly available property sales records from the Cook County, Illinois, open data portal. Search and filter parcel sales, explore transaction details, and export the collected records in JSON, CSV, or Excel format.

### What It Does

The actor collects property sales information, including parcel identification numbers (PINs), sale dates, sale prices, township and neighborhood details, property classifications, deed information, and seller names.

You can filter records using search terms or custom conditions, or collect a larger dataset using full export mode. Additional available dataset fields are retained in the output.

### Scraping Modes

| Mode | Description |
|---|---|
| `query` | Collects property sales records using optional search terms and filter conditions. |
| `full_export` | Collects records across the dataset, up to the configured maximum. |

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `query` | Selects `query` or `full_export` mode. |
| `where` | string | — | Filters records using a custom condition, such as a sale price or date. |
| `search` | string | — | Searches records using a full-text search term. |
| `orderBy` | string | `:id` | Controls the record ordering. |
| `maxItems` | integer | `100` | Maximum number of records to collect per run. Maximum: 1,000. |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds. |

### Example Input

**1. Filter by sale price**

```json
{
  "mode": "query",
  "where": "sale_price > '500000'",
  "maxItems": 50,
  "orderBy": ":id",
  "requestDelayMs": 1000
}
```

**2. Search by deed-related keyword**

```json
{
  "mode": "query",
  "search": "WARRANTY",
  "maxItems": 25,
  "requestDelayMs": 1000
}
```

**3. Collect a larger dataset**

```json
{
  "mode": "full_export",
  "maxItems": 100,
  "orderBy": ":id",
  "requestDelayMs": 1000
}
```

### Output Data

Each dataset record contains property sale and transaction information.

| Field | Type | Description |
|---|---|---|
| `pin` | string | Property identification number (PIN). |
| `year` | string | Year associated with the sales record. |
| `township_code` | string | Township identification code. |
| `nbhd` | string | Neighborhood code. |
| `class` | string | Property classification code. |
| `sale_date` | string | Recorded property sale date. |
| `is_mydec_date` | boolean | Indicates whether the sale date is associated with the MyDec date field. |
| `sale_price` | string | Recorded property sale price. |
| `doc_no` | string | Transaction document number. |
| `deed_type` | string | Deed classification. |
| `mydec_deed_type` | string | Deed type recorded in the MyDec field. |
| `seller_name` | string | Seller name associated with the transaction. |
| `is_multisale` | boolean | Indicates whether the transaction is identified as a multi-parcel sale. |
| `num_parcels_sale` | string | Number of parcels included in the sale. |
| `scrapedAt` | string | Timestamp indicating when the record was collected. |

Additional dataset fields may also be included when available.

#### Example Output

```json
{
  "pin": "20223260160000",
  "year": "2023",
  "township_code": "70",
  "nbhd": "70030",
  "class": "318",
  "sale_date": "2023-01-12T00:00:00.000",
  "is_mydec_date": true,
  "sale_price": "1000000",
  "doc_no": "2302546301",
  "deed_type": "Other",
  "mydec_deed_type": "Deed in Trust",
  "seller_name": "FALCON CALUMET AVE RENTAL LLC, AN ILLINOIS LIMITED LIABILITY COMPANY",
  "is_multisale": false,
  "num_parcels_sale": "1",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

Some fields may be unavailable or empty depending on the published sales record.

### Use Cases

- **Comparable Sales Research:** Find property transactions within a particular township or neighborhood.
- **Property Market Analysis:** Study sale prices across different years and property classifications.
- **Deed Type Research:** Compare transactions by deed type and identify relevant sale records.
- **Seller Research:** Review seller names and transaction document numbers.
- **Investment Research:** Explore historical property sales and identify potential market trends.
- **Scheduled Data Collection:** Refresh property sales datasets periodically for ongoing analysis.

### Frequently Asked Questions

**Who can use this actor?**

Real estate professionals, property researchers, analysts, developers, and investors interested in Cook County property sales.

**How can I filter records by price?**

Use `query` mode with a `where` condition, for example `sale_price > '500000'`.

**Can I search for a specific deed type?**

Yes. You can use the `search` parameter for full-text searches or apply a suitable `where` condition.

**How many records can I collect?**

The default limit is 100 records per run. You can increase `maxItems` up to 1,000.

**What export formats are supported?**

You can export the collected dataset in JSON, CSV, Excel, and other supported dataset formats.

**Can I collect the full dataset?**

Select `full_export` mode and configure `maxItems` to control how many records are collected.

**Are these records complete property valuations?**

No. This actor collects property sales records. Sale prices and transaction details should not be treated as a complete property assessment or valuation.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or otherwise officially associated with Cook County Assessor or its owners. It collects publicly available information. Users are responsible for ensuring that their use of the collected data complies with applicable terms and licensing requirements.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to scrape. Query applies SoQL filters; full export pages the whole dataset.

## `where` (type: `string`):

SoQL $where clause, e.g. sale_price > '500000'.

## `search` (type: `string`):

Full-text $q search across text columns.

## `orderBy` (type: `string`):

SoQL $order. Keep :id for stable paging.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds. Default is about 1 request per second.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "query",
  "where": "sale_price > '500000'",
  "search": "WARRANTY",
  "orderBy": ":id",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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("real-estate-api/cook-county-parcel-sales-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/cook-county-parcel-sales-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 '{}' |
apify call real-estate-api/cook-county-parcel-sales-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/cook-county-parcel-sales-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/xnF8kkjavtD4GWlIn/builds/IEHr8iOuleT2ACEeP/openapi.json
