# Michigan Tax-Foreclosure & Surplus Land Lots (Tax-Sale.info) (`second_byte_surplus_llc/michigan-tax-foreclosure-lots`) Actor

Every live Michigan county tax-foreclosure / surplus land catalog on Tax-Sale.info in one normalized feed: parcel ID, address, minimum bid, SEV, legal description, coordinates. Filter by county, bid and SEV; only-new mode for scheduled runs.

- **URL**: https://apify.com/second_byte_surplus_llc/michigan-tax-foreclosure-lots.md
- **Developed by:** [Second Byte Surplus](https://apify.com/second_byte_surplus_llc) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 lot returneds

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

## Michigan Tax-Foreclosure & Surplus Land Lots (Tax-Sale.info)

Get every **live Michigan county tax-foreclosure / surplus land catalog** published on
[Tax-Sale.info](https://www.tax-sale.info) in one clean, normalized dataset: parcel ID,
address, minimum bid, SEV, legal description and map coordinates. Filter by county,
price and SEV, and schedule it with **only-new mode** to get just the lots that appeared
since your last run.

No login, no API key, no proxy. The Actor reads the public CSV catalogs that Tax-Sale.info
publishes for each county.

### Who it's for

- Land and lot investors, wholesalers and flippers watching Michigan tax-foreclosed parcels
- Adjacent-owner outreach (surplus lots often go to neighbors, some at a discount)
- Agents, title companies and analysts tracking what counties are offloading

### What you get (one row per lot)

| Field | Example |
|---|---|
| `county` | `Jackson` |
| `catalog_name` / `sale_type` / `catalog_year` | `Jackson Surplus 2026` / `surplus` / `2026` |
| `county_auction_date` | `2026-08-28` (that county's main auction date as listed on /auctions; surplus lots are sold first-come after it) |
| `lot_number`, `parcel_id` | `380419`, `000-19-24-481-031-62` |
| `address`, `city`, `zip`, `local_unit` | `124 ST CLAIR CIR BROOKLYN MI`, `Brooklyn`, `null`, `BROOKLYN VILLAGE` |
| `minimum_bid`, `current_taxes`, `sev` | `1000.0`, `null` (county shows "TBA"), `5000.0` |
| `legal_description`, `comment` | as published by the county |
| `lat`, `lon` | `42.1016`, `-84.2533` |
| `section`, `township`, `range` | PLSS location |
| `lot_id` | `1308:380419` (catalog id + lot number, stable key used by only-new mode) |
| `source_url`, `catalog_page_url`, `scraped_at` | provenance for every row |

Values are as published by the county. Fields a county leaves blank stay `null`; nothing is
guessed. `city` is best-effort parsing because counties format addresses inconsistently.

### Input

| Field | Meaning |
|---|---|
| `counties` | e.g. `["Montcalm","Bay"]`. Empty = all live catalogs |
| `minMinimumBid` / `maxMinimumBid` | price window on the minimum bid |
| `minSev` | SEV floor (SEV is roughly half of market value in Michigan) |
| `onlyNewLots` | output only lots not delivered by a previous run (state kept in the named key-value store `mi-foreclosure-state`) |
| `maxResults` | cost cap (default 1000) |
| `requestDelaySecs` | politeness delay, default 2 s |

### Seasonality (read this)

Michigan tax foreclosures happen in spring; Tax-Sale.info posts auction catalogs in
June-July and runs auctions **August-October**. Outside that window only **surplus**
catalogs (lots that failed to sell) are live, so volume is small. On 2026-11-20 the
Actor found 8 live catalogs and 57 lots. Schedule it weekly with `onlyNewLots` so you
catch new catalogs as soon as they go live.

### Pricing

Pay per result: **$0.008 per lot** ($8 / 1,000). A full statewide pull in the off-season
was 57 lots, about $0.46.

### Politeness and data source

- Identifies itself with a descriptive User-Agent, waits 2 s between requests and checks
  `robots.txt` before every fetch (it currently allows all paths).
- One request for the catalog list, one for the auction calendar, then one per catalog CSV.
- Data are public records published by Michigan foreclosing governmental units via
  Tax-Sale.info. Not affiliated with Tax-Sale.info / Title Check, LLC or any county.
  Verify every parcel with the county before buying.

### Not included yet

**Wayne County** (Detroit) publishes its foreclosure list as a ~12 MB PDF, not on
Tax-Sale.info. From the dev environment both the Wayne County page and the PDF returned
HTTP 403 "Access Denied" from the county's CDN (even `robots.txt`), so the parser was not
built or tested. See `TODO.md`.

### Local development

```bash
python -m venv .venv && .venv/bin/pip install -r requirements.txt pytest
.venv/bin/python -m pytest -q tests          # offline unit tests (real fixtures)
bash scripts/smoke_test.sh                  # live end-to-end incl. only-new mode
.venv/bin/python scripts/run_local.py --out-prefix sample_output   # CSV + JSON + stats
.venv/bin/python -m src                     # run through the Apify SDK (input: storage/key_value_stores/default/INPUT.json)
```

Locally, only-new state is kept in `.state/seen_lots.json`; on Apify it is kept in a named key-value store.

# Actor input Schema

## `counties` (type: `array`):

County names to include, e.g. \["Montcalm", "Bay"]. Leave empty for every live catalog.

## `minMinimumBid` (type: `integer`):

Skip lots whose minimum bid is below this.

## `maxMinimumBid` (type: `integer`):

Skip lots whose minimum bid is above this.

## `minSev` (type: `integer`):

State Equalized Value floor (SEV is ~50% of assessed market value in Michigan). Lots with no SEV are excluded when set.

## `onlyNewLots` (type: `boolean`):

Remember lot IDs already delivered (in a named key-value store) and output only lots not seen before. Use with a schedule.

## `maxResults` (type: `integer`):

Cap on lots returned (cost cap). 0 or empty = no cap.

## `requestDelaySecs` (type: `integer`):

Politeness delay between HTTP requests to Tax-Sale.info.

## Actor input object example

```json
{
  "counties": [],
  "onlyNewLots": false,
  "maxResults": 1000,
  "requestDelaySecs": 2
}
```

# Actor output Schema

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

All records in the default dataset, Overview view.

## `runSummary` (type: `string`):

RUN_SUMMARY record: counts per county/type, errors.

# 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 = {
    "counties": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("second_byte_surplus_llc/michigan-tax-foreclosure-lots").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 = { "counties": [] }

# Run the Actor and wait for it to finish
run = client.actor("second_byte_surplus_llc/michigan-tax-foreclosure-lots").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 '{
  "counties": []
}' |
apify call second_byte_surplus_llc/michigan-tax-foreclosure-lots --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,second_byte_surplus_llc/michigan-tax-foreclosure-lots"
        }
    }
}
```

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/dapmtIapTI31VG2Qc/builds/yUjI3Rn8n8ww6r2bv/openapi.json
