# USPTO Patent Attorney & Agent Leads Scraper (`scrapesage/uspto-patent-practitioner-scraper`) Actor

Scrape every registered US patent practitioner from the official USPTO OED roster: name, registration number, type, firm, full address, phone & lead score. Filter by state, city, type or firm; monitor newly registered practitioners. B2B IP-law leads, no key or login.

- **URL**: https://apify.com/scrapesage/uspto-patent-practitioner-scraper.md
- **Developed by:** [Scrape Sage](https://apify.com/scrapesage) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 practitioner records

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## USPTO Patent Attorney & Agent Leads Scraper — Registered Practitioners, Firms, Phones & Lead Scores

Extract **every registered U.S. patent practitioner** from the official **USPTO Office of Enrollment & Discipline (OED) roster** — all ~53,000 active **patent attorneys, patent agents, limited-recognition and design-patent practitioners** — as clean, ready-to-use **B2B leads**: full name, registration number, practitioner type, firm/organization, complete mailing address, **phone number**, derived practice setting (law firm / in-house / solo / government / academic), region and a 0–100 lead score.

No login, no cookies, no browser, no API key — a fast, reliable read of the official government roster with **~99% phone coverage**.

### Why this USPTO practitioner scraper?

Most directory scrapers return a name and a registration number and stop there. This actor ships the **richest, most complete patent-practitioner dataset in the category**, straight from the federal source of truth, and turns every record into a contactable B2B lead — with **no start fee**.

| Data | Typical scrapers | This actor |
|---|---|---|
| Name + registration number | ✅ | ✅ |
| Practitioner **type** (attorney / agent / limited / design) | partial | ✅ |
| **Firm / organization** | ❌ | ✅ ~73% (rest are solo) |
| Full mailing **address** (street, city, state, ZIP) | partial | ✅ |
| **Phone number** | ❌ | ✅ ~99% |
| Derived **practice setting** (law firm / in-house / solo / gov / academic) | ❌ | ✅ |
| Region, state name, government-employee flag | ❌ | ✅ |
| **Lead score** (0–100) + lead signals | ❌ | ✅ |
| Filter by state, city, type, firm, ZIP, reg-number | ❌ | ✅ |
| **Monitor mode** — only newly-registered practitioners | ❌ | ✅ |
| Start fee | often $0.05–0.10 | ✅ **none** |

### Use cases

- **Lead generation** — registered patent practitioners are high-value buyers and partners. Score them by setting and contactability, then reach them by phone or mail for IP-docketing & management software, prior-art/search tools, patent-drawing & translation services, malpractice insurance, CLE, and legal marketing.
- **Recruiting & talent mapping** — find patent attorneys and agents by state, city, firm, or practice setting (law firm vs. corporate in-house), with registration number and firm for sourcing and verification.
- **Find-a-practitioner / referral** — inventors, startups and law firms can locate registered patent counsel by location and type, and confirm a practitioner is on the active roster.
- **Market & competitive intelligence** — map the IP-law landscape: practitioner counts by state, region, firm and setting; track which firms are growing their patent benches.
- **New-registrant monitoring** — schedule monitor mode to capture practitioners as they are newly added to the roster — a fresh, high-intent signal for onboarding offers.

### How to use

1. [Sign up for Apify](https://console.apify.com/sign-up) — the free plan is enough to try this actor.
2. Open the **USPTO Patent Attorney & Agent Leads Scraper**, choose your filters (e.g. `states: ["CA"]`, `practitionerTypes: ["attorney"]`), set **Max results**, and click **Start**.
3. Watch results stream into the dataset table.
4. **Export** as JSON, CSV, Excel, XML, or RSS — or pull results programmatically via the [Apify API](https://docs.apify.com/api/v2).

### Input

```json
{
    "states": ["CA"],
    "practitionerTypes": ["attorney"],
    "withPhoneOnly": true,
    "sortBy": "leadScore",
    "maxResults": 100
}
````

- **states** — USPS state/territory codes (`CA`, `NY`, `TX`, `DC`…). Empty = all states.
- **cities** — city names (case-insensitive, exact match), e.g. `Alexandria`, `San Francisco`.
- **practitionerTypes** — `attorney`, `agent`, `limited`, `design`. Empty = all types.
- **firmName** — keep only practitioners whose firm/organization contains this text (e.g. `Fish`, `Google`).
- **name / keyword** — match a name, or a keyword across name, firm, city, state.
- **practiceSettings** — `law_firm`, `corporate`, `solo`, `government`, `academic`, `other`.
- **registrationNumbers** — direct lookup of specific practitioners by USPTO registration number.
- **zipCodes / countries** — filter by 5-digit ZIP or country code.
- **withPhoneOnly / withFirmOnly** — keep only practitioners with a phone, or with a firm.
- **minLeadScore** — keep only practitioners at or above a lead score (0–100).
- **sortBy** — `leadScore` (default), `name`, `state`, `firm`, `registrationNumber` (newest registered first), `source`.
- **maxResults** *(default 100)* — cap the number of records. The full roster has ~53,000 active practitioners.
- **monitorMode** *(default false)* — remember practitioners seen on previous runs (by registration number) and emit only **newly-registered** or changed practitioners. Perfect on a schedule.
- **monitorKey** — name a monitor so different saved searches track new practitioners separately.
- **proxyConfiguration** — the roster is a public US government download that works without a proxy; enable Apify Proxy only as a retry fallback.

### Output

One clean record per practitioner (`recordType: "patentPractitioner"`):

```json
{
    "recordType": "patentPractitioner",
    "registrationNumber": "43454",
    "fullName": "Anders T Aannestad",
    "firstName": "Anders",
    "lastName": "Aannestad",
    "practitionerType": "ATTORNEY",
    "practitionerTypeLabel": "Patent Attorney",
    "isPatentAttorney": true,
    "isPatentAgent": false,
    "firmName": "Morrison & Foerster LLP",
    "practiceSetting": "law_firm",
    "practiceSettingLabel": "Law Firm",
    "isSoloPractitioner": false,
    "isInHouseCounsel": false,
    "addressLine1": "12531 High Bluff Drive",
    "addressLine2": "Suite 100",
    "streetAddress": "12531 High Bluff Drive, Suite 100",
    "city": "San Diego",
    "state": "CA",
    "stateName": "California",
    "zipCode": "92130",
    "country": "US",
    "region": "West",
    "fullAddress": "Morrison & Foerster LLP, 12531 High Bluff Drive, Suite 100, San Diego, CA 92130",
    "phone": "(858) 720-5159",
    "hasPhone": true,
    "hasFirm": true,
    "hasFullAddress": true,
    "leadScore": 90,
    "leadSignals": [
        "Firm: Morrison & Foerster LLP",
        "Patent attorney (can litigate & give legal advice)",
        "Law-firm practitioner"
    ],
    "source": "USPTO Office of Enrollment & Discipline — Active Roster",
    "scrapedAt": "2026-06-26T16:19:31.725Z"
}
```

### Automate & schedule

Run this actor on autopilot and pull results into your own stack:

- **[Apify API](https://docs.apify.com/api/v2)** — start runs, fetch datasets, and manage schedules over REST.
- **[apify-client for JavaScript](https://docs.apify.com/api/client/js/)** and **[apify-client for Python](https://docs.apify.com/api/client/python/)** — official SDKs.
- **[Schedules](https://docs.apify.com/platform/schedules)** — run it daily/weekly with **monitor mode** on to capture newly-registered practitioners as they appear; perfect for a fresh-leads pipeline.
- **[Webhooks](https://docs.apify.com/platform/integrations/webhooks)** — trigger downstream actions (CRM import, Slack alert, email sequence) the moment a run finishes.

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'MY_APIFY_TOKEN' });

const run = await client.actor('scrapesage/uspto-patent-practitioner-scraper').call({
    states: ['CA', 'NY'],
    practitionerTypes: ['attorney'],
    withPhoneOnly: true,
    maxResults: 500,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Got ${items.length} patent practitioner leads`);
```

> **Monitor mode vs. Apify Schedules.** They work together. *Schedules* decide **when** the actor runs; *monitor mode* decides **what** it returns — only practitioners that are new or changed since the last run. Turn both on for an automatic, deduplicated new-registrant feed.

### Integrate with any app

Connect the dataset to 5,000+ apps — no code required:

- **[Make](https://docs.apify.com/platform/integrations/make)** — multi-step automation scenarios.
- **[Zapier](https://docs.apify.com/platform/integrations/zapier)** — push new practitioner leads straight into your CRM.
- **[Slack](https://docs.apify.com/platform/integrations/slack)** — get notified when a monitored search finds new practitioners.
- **[Google Drive / Sheets](https://docs.apify.com/platform/integrations/drive)** — auto-export every run to a spreadsheet.
- **[Airbyte](https://docs.apify.com/platform/integrations/airbyte)** — pipe results into your data warehouse.
- **[GitHub](https://docs.apify.com/platform/integrations/github)** — trigger runs from commits or releases.

### Use with AI assistants (MCP)

The output is clean, LLM-ready JSON. Call this actor from Claude, ChatGPT, or any agent framework through the **[Apify MCP server](https://docs.apify.com/platform/integrations/mcp)** — ask your assistant to "find patent attorneys at boutique IP firms in California with phone numbers" and let it run this scraper for you.

### Agent-ready: autonomous payments (x402 & Skyfire)

This actor is **agent-ready** — AI agents can discover it, run it, and **pay for it autonomously**, with no Apify account and no human in the loop. It uses [pay-per-event](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event) pricing and [limited permissions](https://docs.apify.com/platform/actors/development/permissions), so it qualifies for Apify's agentic-payment standards:

- **[x402](https://docs.apify.com/platform/integrations/x402)** — an open, HTTP-native payment protocol. Agents pay per run in USDC on the Base network directly through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) — no account, no API key.
- **[Skyfire](https://docs.apify.com/platform/integrations/skyfire)** — agent-to-service payments for fully autonomous AI-agent workflows.

Building an AI agent, MCP tool, or autonomous data pipeline? This scraper is ready to plug in and pay as it goes.

### More scrapers from scrapesage

Build a complete **IP, legal & B2B lead-gen stack**:

- **[USPTO Trademark Scraper](https://apify.com/scrapesage/uspto-trademark-scraper)** — trademarks by keyword, owner or class, with brand-owner and filing-attorney leads.
- **[Google Patents Scraper](https://apify.com/scrapesage/google-patents-scraper)** — patents, assignees, inventors, claims and citations.
- **[FindLaw Scraper](https://apify.com/scrapesage/findlaw-scraper)** — attorney & law-firm leads across every practice area.
- **[Avvo Scraper](https://apify.com/scrapesage/avvo-scraper)** — lawyer profiles, ratings, reviews and contact leads.
- **[Martindale-Hubbell Scraper](https://apify.com/scrapesage/martindale-scraper)** — attorney & firm leads with ratings.
- **[LinkedIn Company Scraper](https://apify.com/scrapesage/linkedin-company-scraper)** — firmographics & B2B company leads.
- **[Website Contact Scraper](https://apify.com/scrapesage/website-contact-scraper)** — enrich any firm's website for emails, phones and socials.
- **[SEC EDGAR Scraper](https://apify.com/scrapesage/sec-edgar-scraper)** — company filings, financials and corporate data.
- **[SAM.gov Scraper](https://apify.com/scrapesage/sam-gov-scraper)** — registered federal contractors and entities.

### Tips

- **Exhaust a big state**: set `states: ["CA"]` and raise `maxResults` — California alone has ~6,500 practitioners. To export the entire roster, leave filters empty and set a high `maxResults`.
- **Highest-quality leads first**: keep `sortBy: "leadScore"` and add `withPhoneOnly: true` and a `minLeadScore`.
- **Boutique & solo targeting**: set `practiceSettings: ["solo", "law_firm"]` for direct decision-makers, or `["corporate"]` for in-house IP counsel.
- **Recurring new-registrant feed**: turn on `monitorMode` and a [Schedule](https://docs.apify.com/platform/schedules) to receive only newly-added practitioners.

### FAQ

**Where does the data come from?** The official **USPTO Office of Enrollment & Discipline (OED) active roster** — the federal register of every practitioner authorized to practice patent matters before the USPTO. It is the same data behind the public OED practitioner search.

**Is an email address included?** No. The OED roster publishes name, firm, mailing address, phone, registration number and type — but not email. Phone is present on ~99% of records. To add emails, pair this with the [Website Contact Scraper](https://apify.com/scrapesage/website-contact-scraper) on each practitioner's firm domain.

**What's the difference between a patent attorney and a patent agent?** Both have passed the USPTO patent bar and can prepare and prosecute patent applications. A **patent attorney** is also a licensed attorney (can give legal advice and litigate); a **patent agent** is not. This actor labels both and lets you filter by type.

**Can I export to Google Sheets, CSV, or Excel?** Yes — one click in the dataset view, or automatically on every run via the [Google Drive integration](https://docs.apify.com/platform/integrations/drive).

**How do I get only newly-registered practitioners?** Turn on `monitorMode` and run on a [Schedule](https://docs.apify.com/platform/schedules). The actor remembers practitioners by registration number and emits only new or changed ones.

**A field is empty — why?** Some practitioners are solo (no firm), have no suffix, or have a single-line address. Fields are `null` only when the roster doesn't publish them, not because the scraper skipped them.

**Is this legal?** This actor reads publicly available U.S. government roster data. You are responsible for using the data in compliance with applicable laws and the USPTO's terms.

### Need help?

Open an issue on the actor's **Issues** tab, or visit the [Apify help center](https://help.apify.com/). Feature requests are welcome — this actor is actively maintained.

# Actor input Schema

## `states` (type: `array`):

Filter practitioners by USPS state/territory code (e.g. CA, NY, TX, DC). Leave empty for all states. Combine with city or firm filters to narrow further.

## `cities` (type: `array`):

Filter by city name (case-insensitive, exact match), e.g. "San Francisco", "Alexandria". Leave empty for all cities.

## `practitionerTypes` (type: `array`):

Filter by practitioner type. Accepts: attorney (patent attorney), agent (patent agent), limited (limited recognition), design (design patent practitioner). Leave empty for all types.

## `firmName` (type: `string`):

Keep only practitioners whose firm or organization name contains this text (case-insensitive), e.g. "Fish", "Google", "Intellectual Property".

## `name` (type: `string`):

Keep only practitioners whose full name contains this text (case-insensitive).

## `keyword` (type: `string`):

Free-text keyword matched across name, firm, city, state and attention line.

## `practiceSettings` (type: `array`):

Filter by derived practice setting: law\_firm, corporate (in-house), solo, government, academic, other.

## `registrationNumbers` (type: `array`):

Look up specific practitioners by USPTO registration number (e.g. 40478). When set, location/type filters are ignored.

## `zipCodes` (type: `array`):

Filter by 5-digit ZIP code.

## `countries` (type: `array`):

Filter by country code (e.g. US, CA, GB, JP). Most practitioners are US; limited-recognition practitioners are often abroad.

## `withPhoneOnly` (type: `boolean`):

Keep only practitioners that have a phone number on the roster (≈99% do).

## `withFirmOnly` (type: `boolean`):

Keep only practitioners affiliated with a firm or organization (drops solo / unaffiliated practitioners).

## `minLeadScore` (type: `integer`):

Keep only practitioners with a lead score (0-100) at or above this value.

## `sortBy` (type: `string`):

How to order results before applying the limit.

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

Maximum number of practitioner records to return. The full roster has ~53,000 active practitioners; set 0-style limits via a high number only when you intend to export many.

## `monitorMode` (type: `boolean`):

Remember practitioners seen on previous runs (by registration number) and emit only NEWLY-registered practitioners or those whose firm/city/phone changed. Ideal on a schedule for a fresh-leads feed. Works independently of Apify Schedules.

## `monitorKey` (type: `string`):

Name this monitor's memory so different saved searches track new practitioners separately (e.g. "ca-attorneys").

## `includeRawFields` (type: `boolean`):

Append the raw roster columns as a sourceFields array on each record (for auditing / debugging).

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

The roster is a public US government download that works without a proxy. Enable Apify Proxy only if you hit a transient block — it is used as a retry fallback.

## Actor input object example

```json
{
  "states": [
    "CA",
    "NY",
    "TX"
  ],
  "practitionerTypes": [
    "attorney"
  ],
  "practiceSettings": [
    "law_firm",
    "solo"
  ],
  "withPhoneOnly": false,
  "withFirmOnly": false,
  "sortBy": "leadScore",
  "maxResults": 100,
  "monitorMode": false,
  "monitorKey": "default",
  "includeRawFields": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped patent practitioner lead records as JSON items in the default dataset.

# 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 = {
    "states": [
        "CA"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesage/uspto-patent-practitioner-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 = {
    "states": ["CA"],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapesage/uspto-patent-practitioner-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "states": [
    "CA"
  ],
  "maxResults": 100
}' |
apify call scrapesage/uspto-patent-practitioner-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapesage/uspto-patent-practitioner-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USPTO Patent Attorney & Agent Leads Scraper",
        "description": "Scrape every registered US patent practitioner from the official USPTO OED roster: name, registration number, type, firm, full address, phone & lead score. Filter by state, city, type or firm; monitor newly registered practitioners. B2B IP-law leads, no key or login.",
        "version": "0.1",
        "x-build-id": "TBMOfkzf9TncZ62uj"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapesage~uspto-patent-practitioner-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapesage-uspto-patent-practitioner-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapesage~uspto-patent-practitioner-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapesage-uspto-patent-practitioner-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapesage~uspto-patent-practitioner-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapesage-uspto-patent-practitioner-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "states": {
                        "title": "States / territories",
                        "type": "array",
                        "description": "Filter practitioners by USPS state/territory code (e.g. CA, NY, TX, DC). Leave empty for all states. Combine with city or firm filters to narrow further.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cities": {
                        "title": "Cities",
                        "type": "array",
                        "description": "Filter by city name (case-insensitive, exact match), e.g. \"San Francisco\", \"Alexandria\". Leave empty for all cities.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "practitionerTypes": {
                        "title": "Practitioner type",
                        "type": "array",
                        "description": "Filter by practitioner type. Accepts: attorney (patent attorney), agent (patent agent), limited (limited recognition), design (design patent practitioner). Leave empty for all types.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "firmName": {
                        "title": "Firm / organization contains",
                        "type": "string",
                        "description": "Keep only practitioners whose firm or organization name contains this text (case-insensitive), e.g. \"Fish\", \"Google\", \"Intellectual Property\"."
                    },
                    "name": {
                        "title": "Name contains",
                        "type": "string",
                        "description": "Keep only practitioners whose full name contains this text (case-insensitive)."
                    },
                    "keyword": {
                        "title": "Keyword (any field)",
                        "type": "string",
                        "description": "Free-text keyword matched across name, firm, city, state and attention line."
                    },
                    "practiceSettings": {
                        "title": "Practice setting",
                        "type": "array",
                        "description": "Filter by derived practice setting: law_firm, corporate (in-house), solo, government, academic, other.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "registrationNumbers": {
                        "title": "Registration numbers (direct lookup)",
                        "type": "array",
                        "description": "Look up specific practitioners by USPTO registration number (e.g. 40478). When set, location/type filters are ignored.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "zipCodes": {
                        "title": "ZIP codes",
                        "type": "array",
                        "description": "Filter by 5-digit ZIP code.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "countries": {
                        "title": "Countries",
                        "type": "array",
                        "description": "Filter by country code (e.g. US, CA, GB, JP). Most practitioners are US; limited-recognition practitioners are often abroad.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "withPhoneOnly": {
                        "title": "Only with phone",
                        "type": "boolean",
                        "description": "Keep only practitioners that have a phone number on the roster (≈99% do).",
                        "default": false
                    },
                    "withFirmOnly": {
                        "title": "Only with a firm / organization",
                        "type": "boolean",
                        "description": "Keep only practitioners affiliated with a firm or organization (drops solo / unaffiliated practitioners).",
                        "default": false
                    },
                    "minLeadScore": {
                        "title": "Minimum lead score",
                        "minimum": 0,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Keep only practitioners with a lead score (0-100) at or above this value."
                    },
                    "sortBy": {
                        "title": "Sort by",
                        "enum": [
                            "leadScore",
                            "name",
                            "state",
                            "firm",
                            "registrationNumber",
                            "source"
                        ],
                        "type": "string",
                        "description": "How to order results before applying the limit.",
                        "default": "leadScore"
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of practitioner records to return. The full roster has ~53,000 active practitioners; set 0-style limits via a high number only when you intend to export many.",
                        "default": 100
                    },
                    "monitorMode": {
                        "title": "Monitor mode (only new / changed)",
                        "type": "boolean",
                        "description": "Remember practitioners seen on previous runs (by registration number) and emit only NEWLY-registered practitioners or those whose firm/city/phone changed. Ideal on a schedule for a fresh-leads feed. Works independently of Apify Schedules.",
                        "default": false
                    },
                    "monitorKey": {
                        "title": "Monitor key",
                        "type": "string",
                        "description": "Name this monitor's memory so different saved searches track new practitioners separately (e.g. \"ca-attorneys\").",
                        "default": "default"
                    },
                    "includeRawFields": {
                        "title": "Include raw source columns",
                        "type": "boolean",
                        "description": "Append the raw roster columns as a sourceFields array on each record (for auditing / debugging).",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "The roster is a public US government download that works without a proxy. Enable Apify Proxy only if you hit a transient block — it is used as a retry fallback.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
