# Seattle Restaurant Inspections Scraper (`parseforge/seattle-restaurant-inspections-scraper`) Actor

Collects food establishment inspection records from the King County public health database. Returns each inspection as a flat row with business name, address, date, result, and violation details.

- **URL**: https://apify.com/parseforge/seattle-restaurant-inspections-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### Seattle Restaurant Inspections Scraper

**Scrape Seattle and King County restaurant inspection records, up to a million per run.** Every record includes the business name, address, inspection date, result, and violation details. No API key or login required. Export to CSV, JSON, Excel, or XML.

King County's food safety portal lets you look up one restaurant at a time, but there is no bulk export. This Actor reads the public inspection database directly, so you can pull thousands of records filtered by city or inspection result in a single run. It returns a clean, flat dataset ready for analysis, lead generation, or compliance tracking.

| Who uses it | What they scrape King County Public Health for |
|---|---|
| Restaurant technology vendors | Build a prospecting list of establishments with recent unsatisfactory inspections. |
| Local health and safety researchers | Analyze violation trends across Seattle neighborhoods over time. |
| Food safety consultants | Identify potential clients who need help correcting repeat violations. |
| Journalists and newsrooms | Investigate food safety patterns at popular restaurant chains. |

### What it does

This Actor collects restaurant and food establishment inspection records from the King County public health database and returns each inspection as a flat row.

- 🏙️ **City filter:** Narrow results to a single city like SEATTLE, BELLEVUE, or KIRKLAND.
- 📋 **Result filter:** Pull only inspections with a specific outcome, such as Unsatisfactory or Complete.
- 📊 **Bulk collection:** Set a high maximum and collect up to a million inspection records per run.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with King County Public Health data

**📈 Generate restaurant sales leads.**

A point-of-sale vendor filters for Seattle restaurants with recent Unsatisfactory inspections and uses the address list for a direct mail campaign.

**🗺️ Map food safety in a neighborhood.**

A public health researcher pulls all Capitol Hill inspections for the last year, geocodes the addresses, and visualizes violation clusters.

**📰 Investigate a restaurant chain.**

A reporter collects every inspection for a fast-food franchise across King County and compares violation patterns by location.

**📋 Monitor compliance for a portfolio.**

A restaurant group's operations manager scrapes weekly to catch new inspection results for all their locations in one dataset.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Reads the public inspection portal directly with no registration. |
| **Fixed schema** | Every record arrives with the same columns, ready for spreadsheets. |
| **City filter** | Target one municipality instead of downloading the whole county. |
| **Result filter** | Focus on Unsatisfactory reports for lead generation. |

### How it compares

Two other actors also scrape King County inspection data, while a third covers multiple US cities including Seattle. Here is how they compare on the features buyers ask about.

| Feature | ParseForge | Seattle Restaurant Inspections Scraper | US Restaurant Inspections Scraper | Crime Data Scraper (US Cities) |
|---|---|---|---|---|
| King County inspection records | Yes | Yes | Yes | Not listed |
| Filter by city | Yes | Not listed | Not listed | Not listed |
| Filter by inspection result | Yes | Not listed | Not listed | Not listed |
| No API key required | Yes | Not listed | Yes | Not listed |
| Violation details in output | Yes | Not listed | Not listed | Not listed |
| Phone numbers in output | Not listed | Yes | Not listed | Not listed |

### Configure the run

Drive the Actor by setting a maximum number of records, and optionally filter by city or inspection result so only matching inspections reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Seattle Restaurant Inspections Scraper](https://apify.com/parseforge/seattle-restaurant-inspections-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to King County Public Health through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/seattle-restaurant-inspections-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check your filter settings. A narrow city filter combined with a rare inspection result can return zero matches. Try broadening the city or setting the result filter to 'Any result'.

**The run stopped before reaching my maxItems.**

The Actor stops when it has read all available records matching your filters. If the county database has fewer matching inspections than your limit, the run ends early.

**Some records are missing violation details.**

Not every inspection includes violations. A Satisfactory result often has no violation data attached. This reflects the source data.

**The city filter is not returning the neighborhood I want.**

The filter matches the city field in the county database. Neighborhoods within Seattle are all listed under SEATTLE. Use the full address field in your exported data to filter by neighborhood afterward.

**Can I filter by date range?**

The current input schema does not include a date filter. Collect the full dataset and filter by the inspection date column in your spreadsheet or script after export.

### FAQ

| Question | Answer |
|---|---|
| What area does this scraper cover? | It covers all of King County, Washington, which includes Seattle, Bellevue, Kirkland, Redmond, and other cities. The data comes from the King County Public Health food safety inspection database. |
| Can I filter by a specific city? | Yes. Use the City input field to restrict results to one municipality, such as SEATTLE or BELLEVUE. Leave it blank to collect records from the entire county. |
| What inspection results can I filter by? | You can filter by Satisfactory, Unsatisfactory, Complete, or Incomplete. Choose 'Any result' to collect all outcomes. |
| Does this include violation details? | Yes. Each inspection record includes the violation type, description, and points deducted, when available from the source. |
| How many records can I collect in one run? | You can set the maximum up to 1,000,000 records per run. The Actor stops when it reaches your limit or exhausts the available data. |
| Do I need an API key or login? | No. The Actor reads the public King County inspection portal directly. No registration, API key, or OAuth is required. |
| What format does the data export to? | You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform. |
| How often is the inspection data updated? | The Actor pulls live data from the King County database on each run, so you always get the latest available inspections. |
| Can I schedule this to run automatically? | Yes. Apify's scheduler lets you run the Actor daily, weekly, or on any custom interval to keep your dataset current. |
| Does this include restaurant phone numbers or coordinates? | The dataset includes the business name and address. Phone numbers and coordinates are not consistently available from the source. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by King County, Washington. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

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

How many inspections to collect per run.

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

Filter to a single city (e.g. SEATTLE, BELLEVUE).

## `inspectionResult` (type: `string`):

Filter to a specific outcome.

## Actor input object example

```json
{
  "maxItems": 10
}
```

# Actor output Schema

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

Scraped King County Food Inspections records

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/seattle-restaurant-inspections-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parseforge/seattle-restaurant-inspections-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 '{
  "maxItems": 10
}' |
apify call parseforge/seattle-restaurant-inspections-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/seattle-restaurant-inspections-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/IToSxsANPca5oI2Ju/builds/PxnalS3bwqT9xJdbk/openapi.json
