# Cook County Assessed Values Scraper (`b2b_lead_generation/cook-county-assessed-values-scraper`) Actor

Pull Cook County assessed values directly from the open data portal. Filter by township or year, export PIN, building, land, and HIE values easily to JSON, CSV, or Excel for seamless property research and audits.

- **URL**: https://apify.com/b2b_lead_generation/cook-county-assessed-values-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (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 Assessed Values Scraper

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

Collect Cook County property assessment records in a structured dataset. Filter records by year, township, neighborhood, or other available fields, or run a full export. Retrieve property identification numbers, assessment classifications, and mailed and certified building, land, total, and HIE values. Export results in JSON, CSV, Excel, and other supported formats.

### What It Does

This actor collects publicly available assessed value records published by the Cook County Assessor. Each property record includes available assessment details and location classifications.

Choose query mode to retrieve matching records or full export mode to collect records across the dataset. Additional source columns are preserved when available, while reserved fields such as `id` and `url` are excluded to maintain a valid dataset schema.

### Modes

- **Dataset Query (`query`)**: Filter records using a SoQL `where` condition or full-text `search`.
- **Full Export (`full_export`)**: Collect records across the dataset, subject to the configured `maxItems` value.

### Input Examples

**Dataset query by year:**

```json
{
  "mode": "query",
  "where": "year = '2020'",
  "maxItems": 50,
  "orderBy": ":id",
  "requestDelayMs": 1000
}
```

**Search by keyword:**

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

**Full export:**

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

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `query` | Select `query` or `full_export`. |
| `where` | string | Not specified | Filter records using a SoQL condition. |
| `search` | string | Not specified | Search records using full-text matching. |
| `orderBy` | string | `:id` | Set the ordering used when collecting records. |
| `maxItems` | integer | `100` | Maximum number of successful records to return. |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds. |
| `userAgent` | string | `ActorResearch/1.0` | HTTP User-Agent value. |
| `timeoutSecs` | integer | `300` | Overall run timeout in seconds. |
| `requestTimeoutSecs` | integer | `30` | Individual request timeout in seconds. |
| `proxyConfiguration` | object | Proxy off | Optional proxy configuration. |

### Output Example

```json
{
  "pin": "32213210090000",
  "year": "2020",
  "class": "202",
  "township_code": "12",
  "township_name": "Bloom",
  "nbhd": "12111",
  "mailed_bldg": "2287",
  "mailed_land": "1007",
  "mailed_tot": "3294",
  "mailed_hie": "0",
  "certified_bldg": "2287",
  "certified_land": "1007",
  "certified_tot": "3294",
  "certified_hie": "0",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `pin` | Property identification number. |
| `year` | Assessment year. |
| `class` | Property classification value. |
| `township_code` | Township code. |
| `township_name` | Township name. |
| `nbhd` | Neighborhood identifier. |
| `mailed_bldg` | Mailed building assessment value. |
| `mailed_land` | Mailed land assessment value. |
| `mailed_tot` | Mailed total assessment value. |
| `mailed_hie` | Mailed HIE value. |
| `certified_bldg` | Certified building assessment value. |
| `certified_land` | Certified land assessment value. |
| `certified_tot` | Certified total assessment value. |
| `certified_hie` | Certified HIE value. |
| `scrapedAt` | Date and time the record was collected. |

### Use Cases

- **Assessment Audits:** Compare mailed and certified assessment values for selected years or townships.
- **Neighborhood Research:** Analyze property assessment records by neighborhood or township.
- **Yearly Comparisons:** Export assessment records for specific years or property classes.
- **Property Appeal Preparation:** Gather building and land assessment values for selected property identification numbers.
- **Scheduled Data Refresh:** Run recurring collections and maintain updated CSV or Excel datasets.

### Frequently Asked Questions

**Who can use this actor?**

It is useful for property researchers, analysts, developers, and professionals working with Cook County assessment records.

**Can I filter records by year or township?**

Yes. Use query mode with a `where` condition, such as `year = '2020'` or `township_name = 'Bloom'`. You can also use `search` for full-text matching.

**What is the difference between query and full export mode?**

Query mode collects records matching your selected filters. Full export mode collects records across the dataset, subject to `maxItems`.

**What assessment information is included?**

Records can include property identification numbers, year, classification, township, neighborhood, and mailed and certified building, land, total, and HIE values.

**Can I run the actor on a schedule?**

Yes. Configure an Apify schedule to refresh the dataset periodically.

**Which export formats are supported?**

You can export the dataset as JSON, CSV, Excel, and other supported Apify dataset formats.

### Trademark Notice

Cook County Assessor and related names are mentioned only to identify the source of the collected information. Their names and trademarks belong to their respective owners. This actor is independent and is not affiliated with or endorsed by Cook County.

### Is Web Scraping Legal?

This actor collects publicly accessible Cook County property assessment data without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Property records may contain information that could be associated with individuals. Handle such data responsibly and consider applicable privacy laws, including GDPR and CCPA.
- **Copyright and Licensing:** Public assessment facts and records may have different legal protections from creative content or database arrangements. Check applicable data licences and attribution requirements before redistributing collected information.
- **Platform Terms and Rate Limits:** Respect Cook County's policies, applicable terms, and request limits. Keep collection activity reasonable.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional if you need advice about your intended use.

For more information, read [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. year = '2020'.

## `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": "year = '2020'",
  "search": "Bloom",
  "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("b2b_lead_generation/cook-county-assessed-values-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("b2b_lead_generation/cook-county-assessed-values-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 b2b_lead_generation/cook-county-assessed-values-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/cook-county-assessed-values-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/mLaL7ra8QtmAYRnr6/builds/uReeAAPtHru3FCNaV/openapi.json
