# Washington Pre-Foreclosure & Lien Leads (11 Counties) (`dataji/washington-pre-foreclosure-leads`) Actor

Daily pre-foreclosure and lien leads from 11 Washington county recorders: trustee appointments, notices of trustee sale, liens, judgments and lis pendens. Paid-off loans removed. Each lead joined to owner, mailing address, value and tax owed.

- **URL**: https://apify.com/dataji/washington-pre-foreclosure-leads.md
- **Developed by:** [Dataji.io](https://apify.com/dataji) (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

from $70.00 / 1,000 pre-foreclosure leads

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

## Washington Pre-Foreclosure & Lien Leads (11 Counties)

Find actionable **Washington pre-foreclosure leads** and lien leads across 11 counties. Every lead is a public
recorder filing (an **appointment of successor trustee**, a **notice of trustee sale**, a **tax lien**, a judgment or a
**lis pendens**) matched to its deed of trust and enriched with county assessor data: owner, mailing address,
absentee flag, value and property tax owed.

**Paid-off loans are filtered out automatically.** Most trustee appointments in Washington are filed when a loan is
paid off, not for a foreclosure. We check each loan and drop the payoffs, so you spend your time on owners who are
actually in trouble.

**Price:** $0.10 per pre-foreclosure lead on the Free plan (from $0.07 on Gold), $0.04 per lien or court lead,
$0.005 per other filing. Paid-off loans are never charged. See [How much does it cost?](#how-much-does-it-cost)

### What does this actor do?

In Washington, the notice of default is normally mailed to the borrower and not recorded, so the first public
signs of a foreclosure are usually the appointment of successor trustee and the notice of trustee sale. The few
notices of default that do get recorded are included. Most trustee appointments are
filed to pay a loan off, not to foreclose. This actor finds those filings, checks whether the loan was already paid
off, and drops the payoffs. What is left is a short list of real leads.

- Searches the official recorder sites of **King County, Pierce County, Spokane** and 8 more Washington counties.
- Delivers **pre-foreclosure** filings, labelled by stage in the `lifecycle` field:
  - **Early signals** (`lifecycle: opens`): trustee appointments, recorded notices of default, notices of trustee
    sale. The auction has not happened yet.
  - **After the sale** (`lifecycle: completes`): trustee's deeds. The property was already sold at auction, which is
    useful for tracking new bank-owned or investor-bought properties, but it is no longer a pre-foreclosure lead.
- Delivers **liens and court** filings: tax liens, government and DSHS liens, utility and HOA liens, judgments,
  lis pendens.
- Links each foreclosure filing to its **deed of trust**: borrowers, lender, and loan status (open, paid off or
  unknown).
- Adds **property data** from the county assessor: owner, mailing address, absentee-owner flag, building details,
  values, tax owed, years of tax delinquency and last sale.
- Gives every row the recording date, instrument number and a link back to the county record, so you can check it.

### Who is it for?

- Real estate investors and wholesalers looking for **motivated sellers** in Washington.
- Real estate agents who work with distressed or absentee owners.
- Note buyers and lenders who track loans in default.
- Real estate attorneys, title researchers and housing counselors.
- Data teams that need a daily or weekly Washington distress feed by API.

### What data do you get?

One row per filing. Here are the key fields. The full field list is in the **Output** tab.

| Field | What it means |
|---|---|
| `county`, `state` | Where the filing was recorded |
| `signalCategory` | `pre_foreclosure`, `liens_court`, or another category you chose |
| `lifecycle` | Stage of the filing: `opens` (early signal, e.g. notice of trustee sale), `completes` (sale done, e.g. trustee's deed), `closes` (paid off or released) |
| `standardType` | Filing type in plain terms, e.g. `notice_of_trustee_sale`, `trustee_appointment`, `lis_pendens`, `federal_tax_lien`, `hoa_lien`, `judgment` |
| `documentType` | The filing type as the county names it |
| `recordedDate`, `instrumentNumber`, `documentUrl` | When it was recorded, its county number, and a link to the record (where the county allows it) |
| `grantors`, `grantees` | The parties named on the filing |
| `amount` | Amount on the filing, when the county shows one |
| `parcelNumber`, `legalDescription` | The property the filing is about |
| `deedOfTrustInstrument`, `deedOfTrustDate` | The linked deed of trust |
| `borrowers`, `lender`, `deedOfTrustTrustee` | Parties on the deed of trust |
| `loanStatus` | `open`, `paid_off` or `unknown` (foreclosure filings only) |
| `propertyAddress`, `propertyCity`, `propertyZip` | Property address |
| `ownerName`, `mailingAddress`, `mailingCity`, `mailingState`, `mailingZip` | Owner and where the tax bill is mailed |
| `absenteeOwner` | `true` when the owner's mailing address is somewhere else |
| `propertyUse`, `yearBuilt`, `livingSqft`, `bedrooms`, `bathrooms`, `lotAcres` | Building and lot |
| `assessedValue`, `landValue`, `improvementValue` | County values |
| `taxOwed`, `yearsTaxDelinquent` | Property tax owed and how many years are unpaid |
| `lastSaleDate`, `lastSalePrice` | Last recorded sale |
| `indexPending` | `true` when the county has recorded the filing but not finished indexing it yet |
| `enrichmentStatus` | Whether property data was found (`ok`, `no_parcel`, `not_found`, and so on) |
| `chargeEvent` | What this row was charged as: `preforeclosure-lead`, `lien-court-lead`, `filing` or `free` |

Each run also writes a short status for every county to the `OUTPUT` record in the key-value store. It shows how
many filings the county site reported and how many the actor found, so you can see that nothing was missed.

### Which counties are covered?

| County | Notes and known gaps |
|---|---|
| King | Full coverage. Runs are slower because the county limits how fast its tax data can be read. |
| Pierce | No property tax data: `taxOwed` and `yearsTaxDelinquent` stay empty. |
| Spokane | Runs are slower because the county site limits request speed. Trustee's deeds are included. |
| Kitsap | Trustee's deeds are not searched yet. Parcel numbers cut short by the county site are completed from the statewide parcel layer. |
| Thurston | Trustee's deeds are not searched yet. |
| Lewis | Trustee's deeds are not searched yet. |
| Mason | The county indexes filings late, so recent days may show `indexPending` rows. Trustee's deeds are not searched yet. |
| Skagit | Full coverage. |
| Whatcom | Full coverage. |
| Grays Harbor | Full coverage. |
| Cowlitz | The county does not publish sale prices, so `lastSalePrice` stays empty. |

Some fields are empty when a county does not publish that data. Snohomish County is not offered.

### How does it work?

```text
County recorder search  ->  Classify each filing  ->  Check the loan (drop payoffs)  ->  Add assessor data  ->  Leads
   (11 county sites)        (standard type, stage)     (deed of trust, reconveyance)    (owner, value, tax)    (one row each)
```

1. **Search the county recorder.** For each county you pick, the actor searches the recorder site for the filing
   types in your chosen categories, over your date range.
2. **Link the loan and drop payoffs.** For foreclosure filings, it finds the deed of trust and checks whether it was
   reconveyed (paid off). Paid-off loans are dropped unless you ask to keep them.
3. **Add property data.** It looks up each parcel at the county assessor and adds owner, mailing address, values,
   taxes and last sale. Where the assessor has no street address, it fills it from the Washington statewide parcel
   layer.
4. **Deliver rows.** You get one row per filing in the dataset, newest first, ready to export as JSON, CSV or Excel.

### Input

| Field | What it does | Default |
|---|---|---|
| `counties` | Counties to search: `kitsap`, `thurston`, `spokane`, `lewis`, `mason`, `king`, `pierce`, `skagit`, `whatcom`, `grays_harbor`, `cowlitz` | `["kitsap"]` |
| `signalCategories` | Kinds of filings to deliver. `pre_foreclosure` and `liens_court` are the lead categories. You can also add `lead_closed` (reconveyances, releases), `sales_transfers`, `financing`, `inheritance`, `divorce`, `business` | `["pre_foreclosure", "liens_court"]` |
| `includePaidOffLoans` | Keep foreclosure filings whose loan is already paid off. These rows are free. | `false` |
| `lastNDays` | Number of days to search, ending on `dateTo`. Ignored when `dateFrom` is set. 1 to 365. | `7` |
| `dateFrom` | Start date, `YYYY-MM-DD` | none |
| `dateTo` | End date, `YYYY-MM-DD` | yesterday (Pacific time) |
| `addPropertyDetails` | Add owner, mailing address, values and tax data from the county assessor | `true` |
| `maxResults` | Most rows per county, newest first. It is applied after the whole date range is searched. | `200` |
| `proxyConfiguration` | Proxy for the county sites. Not needed for most runs. | no proxy |

**Important:** by default the actor searches **Kitsap County only**, for a quick, cheap first run. Pick more
counties in the **Counties** field (or list them in `counties`) to cover more of Washington.

The date range always ends on a full Pacific-time day, so you never get half of today.

**Example: one past month in two counties**

```json
{
  "counties": ["king", "pierce"],
  "signalCategories": ["pre_foreclosure"],
  "dateFrom": "2026-10-01",
  "dateTo": "2026-10-31"
}
```

**Example: a daily schedule for five counties** (searches yesterday every day)

```json
{
  "counties": ["king", "pierce", "spokane", "kitsap", "thurston"],
  "signalCategories": ["pre_foreclosure", "liens_court"],
  "lastNDays": 1,
  "addPropertyDetails": true,
  "includePaidOffLoans": false,
  "maxResults": 200
}
```

Tip: Mason and some other counties index filings a few days late. If you use a longer window to catch late
filings, keep in mind that overlapping windows return (and charge for) the same filings again.

### Sample output

This is an **example row with invented names, addresses and numbers**, showing the most useful fields. Every
field is described in the **Output** tab.

```json
{
  "county": "Thurston",
  "standardType": "notice_of_trustee_sale",
  "lifecycle": "opens",
  "recordedDate": "2026-11-04",
  "instrumentNumber": "5100001",
  "borrowers": ["SAMPLE, JANE A"],
  "lender": ["EXAMPLE HOME LOANS LLC"],
  "loanStatus": "open",
  "propertyAddress": "123 EXAMPLE ST NW",
  "propertyCity": "OLYMPIA",
  "ownerName": "JANE A SAMPLE",
  "mailingAddress": "456 OTHER AVE, PHOENIX, AZ",
  "absenteeOwner": true,
  "assessedValue": 400000,
  "taxOwed": 3200,
  "yearsTaxDelinquent": 1,
  "chargeEvent": "preforeclosure-lead"
}
```

### How much does it cost?

You pay per result (pay per event). Prices below are for the Apify FREE plan. Bronze, Silver and Gold plans pay
about 10%, 20% and 30% less.

| Event (`chargeEvent`) | When it is charged | Price |
|---|---|---|
| `preforeclosure-lead` | Early-stage pre-foreclosure filing (trustee appointment, notice of default or notice of trustee sale) whose loan is **not** paid off, with property data joined | $0.10 |
| `lien-court-lead` | Lien or court filing with property data joined | $0.04 |
| `filing` | Any other row, including leads without property data and trustee's deeds (sale already done) | $0.005 |
| `free` | **Paid-off loans** (only delivered if you turn on `includePaidOffLoans`) | free |

**Cost examples.** These are **estimates only**. They use one real week of 5 counties (455 filings, of which 219
were leads) and assume half the leads are pre-foreclosure and half are lien or court leads. Your numbers will vary
by county and by week.

- **Five counties, one week:** 219 leads: about 110 × $0.10 + 109 × $0.04 = $15.36, plus 236 other rows ×
  $0.005 = $1.18. **Total about $16.54.**
- **One county, one week** (one fifth of the above, about 91 filings and 44 leads): about 22 × $0.10 + 22 × $0.04
  \= $3.08, plus 47 other rows × $0.005 = $0.24. **Total about $3.32.**
- **One county, daily run** (about 13 filings and 6 leads a day): about 3 × $0.10 + 3 × $0.04 = $0.42, plus 7 other
  rows × $0.005 = $0.04. **Total about $0.46 a day.**
- **Try it cheaply:** set **Max results per county** to 10 for a first run. That costs at most about $1 per county.

You only pay for the results, at the prices above. Platform usage for the run is included.

### Scheduling and integrations

- **Schedules:** use Apify Schedules to run the actor every morning (`lastNDays: 1`) or every week (`lastNDays: 7`).
- **Google Sheets:** send each run's dataset to a Google Sheet with an Apify integration.
- **Webhooks:** call your own URL, Zapier, Make or n8n when a run finishes, and push new leads into your CRM.
- **API:** start runs and download results with the Apify API or client libraries, in JSON, CSV or Excel.
- **Skip tracing:** owner name and mailing address are split into their own fields, so you can pass them to a
  skip-trace actor from the Apify Store. Do that at your own responsibility (see Compliance below).

### FAQ

**How fresh is the data?**
The actor reads the county recorder sites live, at the time of the run. By default it searches up to yesterday
(Pacific time). Some counties, like Mason, index filings a few days late. Rows with `indexPending: true` are recorded
but not fully indexed yet; run that day again later.

**Why do some rows have no address?**
Liens and judgments against a person (not a property) have no parcel, so there is no property data. Some filings
do not list a parcel, and some counties do not publish every field. These rows show why in `enrichmentStatus` and
are charged as `filing` ($0.005), not as leads.

**Why are paid-off loans removed?**
In Washington, most trustee appointments are filed to pay a loan off, not to foreclose. In one Kitsap month, 109 of
113 trustee appointments were for loans already reconveyed. Removing them saves you from chasing owners who are not
in distress. Turn on `includePaidOffLoans` to keep them. They are free.

**How accurate is the data?**
Every county's found count matched the site's own count in our tests, and each run's `OUTPUT` record shows this per
county. But county records can be incomplete, indexed late or corrected later. Always check the official county
record (linked in `documentUrl`) before you act.

**Can I get phone numbers or emails?**
No. This actor only delivers public county records. You can pass owner names and mailing addresses to a skip-trace
actor, at your own responsibility. You must follow all calling, texting and email laws (see Compliance below).

**Why are King and Spokane runs slower?**
Those county sites limit how fast data can be read. The actor slows down to respect those limits.

**Can I search other states or counties?**
Not in this actor yet. It covers the 11 Washington counties listed above. If you need another county or state, tell
us through the [contact form](https://dataji.io/contact-us/). Requests help us decide what to add next.

### Compliance and acceptable use

#### Where the data comes from

This actor reads **public records** from Washington county recorder and assessor websites: recorded documents
(trustee appointments, notices of trustee sale, liens, judgments, lis pendens and similar) and property tax and
assessment records. Each row links back to the county record it came from (recording date, instrument number and,
where the county allows it, a link to the document).

- Dataji is **not affiliated with, endorsed by or acting for** any county, auditor, assessor or treasurer.
- County records can be incomplete, indexed late or corrected later. **Always verify against the official county
  record before you act on any row.** Rows marked `indexPending` are not fully indexed by the county yet.
- Data is provided as is, without any warranty of accuracy, completeness or fitness for a purpose.

#### What you may not use this data for

- **No credit, insurance, employment or housing decisions.** Dataji is **not a consumer reporting agency**, and this
  data is not a consumer report. You may not use it, in whole or in part, as a factor in establishing a person's
  eligibility for credit, insurance, employment, housing or any other purpose covered by the Fair Credit Reporting
  Act (FCRA).
- **No unlawful, deceptive or harassing contact.** Do not use the data to harass, threaten or mislead anyone.
- **No foreclosure-rescue schemes.** Do not use it for equity skimming, "stop your foreclosure" offers, leaseback
  or buy-back schemes, or misleading surplus-funds recovery offers.
- **No voter data.** Do not combine this data with Washington voter records. Commercial use of voter data is a crime
  in Washington (RCW 29A.08.740).

#### Your responsibilities when you contact property owners

You alone are responsible for how you use the data and for following every law that applies to you, including:

- **Calls:** the federal Telephone Consumer Protection Act (TCPA), the National Do Not Call Registry, and
  Washington's calling rules (RCW 80.36.390: calls only between 8 a.m. and 8 p.m., identify yourself and your purpose
  within the first 30 seconds, keep and honor your own do-not-call list).
- **Text messages:** Washington bans commercial text messages to Washington cell phones without the recipient's
  clear prior consent (RCW 19.190.060).
- **Email:** CAN-SPAM, and Washington's Commercial Electronic Mail Act (RCW 19.190), which prohibits false or
  misleading subject lines and sender information.
- **Homeowners at risk of foreclosure or tax foreclosure:** Washington's Distressed Property Conveyances Act
  (RCW 61.34) applies to people who systematically contact owners found in foreclosure or tax records. It requires
  written contracts, a cancellation period and fair terms, and treats equity skimming as a crime. Violations are also
  unfair practices under the Consumer Protection Act. Get legal advice before you make offers to distressed owners.
- **Fair housing and other federal, state and local laws** that apply to your business.

#### Help for homeowners

If you are a homeowner in Washington facing foreclosure, free help is available:

- **Washington Homeownership Hotline:** 1-877-894-HOME (1-877-894-4663)
- **Foreclosure mediation:** a housing counselor or attorney can refer you to the Washington Foreclosure Fairness Act
  mediation program, usually up to 90 days before the trustee sale date.
- **Washington Department of Commerce** foreclosure-help resources and HUD-approved housing counselors.

#### County website terms

Each county website has its own terms of use. Some of them say their data may not be used for commercial purposes
or collected by automated tools. **You are responsible for making sure your use of the data complies with the
terms of the county sources you select and with the law.**

| County | What its website terms say |
|---|---|
| King | The recorder search terms forbid high-volume, automated, electronic processes and mass downloading. The assessor site asks users to agree not to use lists of individuals for commercial purposes (RCW 42.56.070). |
| Pierce | The recorder search terms forbid high-volume, automated, electronic processes and mass downloading. |
| Spokane | The property site states that RCW 42.56.070 prohibits releasing or using lists of individuals gathered from it for commercial purposes. |
| Kitsap | The assessor's disclaimer restricts commercial use of lists of individuals and resale without a written agreement. |
| Skagit | The county website's terms restrict commercial use of lists of individuals. |
| Thurston, Lewis, Mason, Whatcom, Grays Harbor, Cowlitz | No-warranty notices: verify against the official record. |

If a county asks us to stop collecting from its website, we remove it from the actor. Snohomish County is not
offered.

#### Privacy and data removal

These are public records, but you can ask us to stop including your information in our output:

- **Removal and privacy requests:** privacy@dataji.io
- **Questions and support:** support@dataji.io
- **Report misuse:** abuse@dataji.io

We aim to answer requests within 30 days.

#### How the actor treats county websites

- It only reads pages that are open to the public without an account.
- It keeps request rates low and backs off when a site asks it to slow down.
- If a county asks us to stop collecting from its website, we will remove that county.

### Need something custom?

This actor is one of many data tools we build at Dataji. If you need something different, we can build it for you,
whether that's a change to this actor or a scraper for any other website or data source.

Popular requests include:

- more Washington counties or other states
- extra fields or filters, such as equity estimates, owner type or specific filing types
- historical data for past months or years
- delivery straight to Google Sheets, your CRM or a webhook

These are only examples. If the data is online, we can most likely collect it for you. Tell us what you're trying to
build through the [contact form](https://dataji.io/contact-us/) or email support@dataji.io. For bugs or questions
about this actor, please use the **Issues** tab.

### Support and contact

- **Help, bugs and feature requests:** open an issue in the **Issues** tab, or email support@dataji.io.
- **Custom data and new counties:** [dataji.io/contact-us](https://dataji.io/contact-us/)
- **Removal and privacy requests:** privacy@dataji.io
- **Report misuse:** abuse@dataji.io

# Actor input Schema

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

Washington counties to search. Pick one or more.

## `signalCategories` (type: `array`):

Pre-foreclosure (trustee appointments, notices of trustee sale, trustee deeds) and liens & court filings (tax, government, utility and HOA liens, judgments, lis pendens) are on by default. Other types are optional.

## `lastNDays` (type: `integer`):

Filings recorded in the last N days, ending yesterday (Pacific time). Ignored when 'Recorded from' is set.

## `dateFrom` (type: `string`):

First recording date to include (YYYY-MM-DD). Overrides "Last N days".

## `dateTo` (type: `string`):

Last recording date to include (YYYY-MM-DD). Default: yesterday.

## `addPropertyDetails` (type: `boolean`):

Adds the property address, owner, mailing address, absentee flag, building details, assessed value, property tax owed and last sale from the county assessor. Rows with property data joined are charged as leads; without it they are charged as plain filings.

## `includePaidOffLoans` (type: `boolean`):

About 9 in 10 trustee appointments are filed when a loan is paid off, not for a foreclosure. These are removed by default and are never charged. Turn this on to keep them (marked loanStatus: paid_off).

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

Keeps the newest N filings per county after the whole date window is searched. Use it to cap cost.

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

Not needed for these counties. Leave it off unless a county starts blocking.

## `debug` (type: `boolean`):

Saves the first results, related and detail page of each county to the key-value store. Only useful when reporting a problem.

## Actor input object example

```json
{
  "counties": [
    "kitsap"
  ],
  "signalCategories": [
    "pre_foreclosure",
    "liens_court"
  ],
  "lastNDays": 7,
  "addPropertyDetails": true,
  "includePaidOffLoans": false,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debug": false
}
```

# Actor output Schema

## `leads` (type: `string`):

All filings found in the run: one row per filing with its standard type, loan status and property/owner data. Use the 'Leads overview' view for the main columns.

## `allFields` (type: `string`):

The same rows with every field.

## `countyReport` (type: `string`):

Per-county status: filings the county site reports vs found, paid-off loans removed, rows delivered, charge events, property-data coverage and any 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": [
        "kitsap"
    ],
    "signalCategories": [
        "pre_foreclosure",
        "liens_court"
    ],
    "lastNDays": 7,
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataji/washington-pre-foreclosure-leads").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": ["kitsap"],
    "signalCategories": [
        "pre_foreclosure",
        "liens_court",
    ],
    "lastNDays": 7,
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataji/washington-pre-foreclosure-leads").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": [
    "kitsap"
  ],
  "signalCategories": [
    "pre_foreclosure",
    "liens_court"
  ],
  "lastNDays": 7,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataji/washington-pre-foreclosure-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataji/washington-pre-foreclosure-leads"
        }
    }
}
```

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/v96rZaYlAy88hjBjI/builds/KK9fEJwVM5AGThO5E/openapi.json
