# Texas State Licensed Contractor Scraper — TDLR License Data (`muhammadafzal/tdlr-texas-scraper`) Actor

Scrape Texas Department of Licensing & Regulation (TDLR) public license records: license number, type, class, business & contact info, status, bond, insurance, discipline, sponsor. Returns CRM-ready structured JSON for contractor lead-gen and compliance verification.

- **URL**: https://apify.com/muhammadafzal/tdlr-texas-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 tdlr license 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

## Texas State Licensed Contractor Scraper — TDLR License Data

> Scrapes the **Texas Department of Licensing and Regulation (TDLR)** public license database and returns complete, structured licensee records — license number, type, class, business name, contact details, status, issue/expiration dates, **bond amount**, **insurance amount**, **sponsor**, and **discipline/violations**.

Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

---

### Why use this actor

- **Full license detail** — not just the search-results row. Every record carries the detail-page data: bond, insurance, sponsor, discipline, and violations.
- **80+ license program types** — Electricians, Air Conditioning Contractors, Elevator Contractors, Cosmetologists, Barbers, Massage Therapists, Mold Remediation, and every other TDLR program.
- **Flexible filtering** — by license type, license number, business name, owner name, city, county, ZIP code, or technician tier (Registered / Certified).
- **Contractor lead-gen ready** — Electrician and Elevator Contractor records include address, phone, and email. Drop straight into HubSpot/Salesforce.
- **Compliance / verification** — verify a contractor's license status, bond, and insurance before hiring. Perfect for insurance underwriters, HOAs, and GCs.
- **MCP/AI-agent friendly** — semantic field names, field-level output schema, predictable `maxResults`, and a per-record pricing model an agent can budget.

### What it outputs

One dataset item per TDLR license:

| Field | Type | Example |
|------|------|---------|
| `licenseNumber` | string | `80019` |
| `licenseType` | string | `Electricians` |
| `licenseClass` | string | `Master` |
| `licenseDescription` | string | `Master Electrician` |
| `businessName` | string | `Acme Electric LLC` |
| `contactName` | string | `John Smith` |
| `address` | string | `123 Main St` |
| `city` | string | `Austin` |
| `state` | string | `TX` |
| `zipCode` | string | `78701` |
| `county` | string | `Travis` |
| `phone` | string | `(512) 555-0100` |
| `email` | string | `info@acmeelectric.com` |
| `status` | string | `Active` |
| `issueDate` | string | `2021-01-15` |
| `expirationDate` | string | `2026-01-15` |
| `renewalDate` | string | `2024-01-15` |
| `bondAmount` | string | `$10,000` |
| `insuranceAmount` | string | `$500,000` |
| `sponsor` | string | `Acme Electric LLC` |
| `sponsorLicenseNumber` | string | `80019` |
| `sponsorExpiration` | string | `2026-01-15` |
| `discipline` | string | `None` |
| `violations` | string | `None` |
| `detailUrl` | string | `https://www.tdlr.texas.gov/LicenseSearch/Detail/80019` |
| `scraped_at` | string | `2026-07-01T20:35:00.000Z` |
| `source_url` | string | `https://www.tdlr.texas.gov/LicenseSearch/` |

> **Note:** `phone`, `email`, `bondAmount`, `insuranceAmount`, `sponsor*` are published by TDLR only for license programs that collect them (Electricians, Elevator Contractors, Air Conditioning Contractors). For other programs these fields will be `null`.

### Input parameters

| Field | Type | Required | Description |
|------|------|---------|-------------|
| `licenseType` | enum | recommended | TDLR license program (e.g. `Electricians`). |
| `licenseNumber` | string | no | Look up a specific license number. |
| `businessName` | string | no | Full/partial business name. |
| `ownerName` | string | no | Individual/owner license holder name. |
| `city` | string | no | Texas city (free text). |
| `county` | enum | no | Texas county (official list, incl. `Out Of State`). |
| `zipCode` | string | no | 5-digit ZIP. |
| `technicianType` | enum | no | `All` / `Registered` / `Certified` (Electricians and A/C only). |
| `maxResults` | integer | no | Max records to return. Default `50`. |

At least **one** filter is required. `licenseType` alone is the most common entry point.

### Pricing

| Event | Price | When charged |
|------|------|--------------|
| `result-item` | **$0.025** | Per TDLR license record saved to the dataset |
| `apify-actor-start` | $0.00005 | Once per run |

A typical small pull of 100 licensed-electrician leads costs ≈ **$2.50** + a few cents compute. There is **no charge for runs that return 0 results**.

### Quickstart

```bash
## 1. Install + run locally against the live TDLR site
cd tdlr-texas-scraper
npm install
apify login
apify run --input '{"licenseType":"Electricians","city":"Austin","maxResults":5}'

## 2. Push to your Apify account
apify push -f -w 120

## 3. Set PPE pricing + SEO (one-time, after first push)
````

Run via API:

```bash
curl -X POST "https://api.apify.com/v2/acts/USERNAME~tdlr-texas-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"licenseType":"Electricians","county":"Harris","maxResults":100}'
```

### How it works

1. **GET** the TDLR search page and harvest the ASP.NET hidden fields (`__VIEWSTATE`, `__EVENTVALIDATION`).
2. **POST** the search form with your filters.
3. Parse the results grid and enqueue each license's detail-page URL.
4. **GET** each detail page, extract the full record, and **push it to the dataset immediately** (never batched across requests — a single detail-page timeout can't lose other records).
5. Stop when `maxResults` is reached. Each successful record triggers a `result-item` charge.

### Limitations & transparency

- **Selectors may need a one-time calibration run.** TDLR's public search HTML occasionally shifts class names. The actor uses multiple fallback selectors per field. If a run returns `0` items with a `No detail links parsed from results page` warning, run it once locally and adjust the selectors/constants at the top of `src/main.ts` (search form field names + the `RESULTS`/`DETAIL` parsers). This is the only brittle layer; the rest of the pipeline is durable.
- **Single results page.** The current build enqueues detail links from the first results page (TDLR shows up to a few hundred rows per search). For exhaustive lists, run multiple county/city filters and merge the datasets.
- **Contact info (`phone`/`email`) is only published by TDLR for Electricians and Elevator Contractors** — it will be `null` for other programs by design, not a bug.
- **No login, no anti-bot** — TDLR's public search is open. The actor uses US datacenter proxies (fast + cheap) by default.

### Use cases

- **Home-services lead generation** — pull every licensed electrician / A/C / elevator contractor in a county with phone + email for cold outreach.
- **Compliance & verification** — bulk-verify that subcontractors hold an active license, valid bond, and current insurance before signing a contract.
- **Insurance underwriting** — feed bond + insurance amounts into risk models.
- **Market research** — count active licensees by program, county, or city for TAM sizing.

### Troubleshooting

| Symptom | Fix |
|--------|-----|
| 0 results, `No detail links parsed` warning | Do one local `apify run`, open the saved HTML, and update the `RESULTS`/`DETAIL` selectors in `src/main.ts`. |
| `phone`/`email` are `null` | Expected for non-Electrician/non-Elevator license programs — TDLR doesn't publish contact info for them. |
| `__VIEWSTATE` missing | TDLR may have changed the search URL. Confirm `SEARCH_PAGE_URL`/`SEARCH_RESULTS_URL` at the top of `src/main.ts`. |
| Charge shows but no rows | Ensure at least one filter is set and spelled exactly as TDLR uses it (case-insensitive for `businessName`). |

***

**Source:** `https://www.tdlr.texas.gov/LicenseSearch/` — Texas Department of Licensing and Regulation public license search. This actor only reads publicly available licensee data.

# Actor input Schema

## `licenseType` (type: `string`):

The TDLR license program to search. Use this when the user asks for a specific trade or occupation — e.g. 'Air Conditioning Contractors', 'Electricians', 'Elevator Contractors', 'Cosmetologists', 'Massage Therapist'. Do NOT combine with licenseNumber unless you want to narrow further. Electricians and Elevator Contractors license types are the ones that publish contact info (address, phone, email).

## `licenseNumber` (type: `string`):

A specific TDLR license number to look up (e.g. '80019'). Use this for single-license verification. Leave empty when browsing all licenses of a given program type.

## `businessName` (type: `string`):

Full or partial contractor business name to search (e.g. 'Acme Electric'). Case-insensitive substring match on TDLR's business name field. Leave empty to search all businesses.

## `ownerName` (type: `string`):

License holder (individual/owner) name to search (e.g. 'John Smith'). Use for sole proprietors and individual licensees. Leave empty to match all owners.

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

Texas city name filter (e.g. 'Austin', 'Houston', 'Dallas'). Type the exact city spelling as TDLR uses it; not a dropdown — any city string works. Leave empty for statewide results.

## `county` (type: `string`):

Texas county filter (e.g. 'Travis', 'Harris', 'Dallas'). Select from the official TDLR county list. 'Out Of State' matches licensees located outside Texas. Leave empty for statewide results.

## `zipCode` (type: `string`):

Texas ZIP code filter (e.g. '78701'). Use a 5-digit ZIP for the most precise geographic filter. Leave empty for statewide results.

## `technicianType` (type: `string`):

Filter A/C and electrical license results by technician classification. 'All' returns every technician. 'Registered' and 'Certified' narrow to the two TDLR technician tiers. Only meaningful for license programs that have technicians (Electricians, Air Conditioning Contractors).

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

Maximum number of license records to return. Use a small value (5) to verify fields quickly, then scale to 100–1000 for production lead-gen lists. TDLR may cap a single search export; run multiple county/city filters to build larger datasets.

## Actor input object example

```json
{
  "licenseType": "Electricians",
  "technicianType": "All",
  "maxResults": 5
}
```

# Actor output Schema

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

Link to the dataset containing all extracted TDLR license 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 = {
    "licenseType": "Electricians",
    "licenseNumber": "",
    "businessName": "",
    "ownerName": "",
    "city": "",
    "county": "",
    "zipCode": "",
    "technicianType": "All",
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/tdlr-texas-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 = {
    "licenseType": "Electricians",
    "licenseNumber": "",
    "businessName": "",
    "ownerName": "",
    "city": "",
    "county": "",
    "zipCode": "",
    "technicianType": "All",
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/tdlr-texas-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 '{
  "licenseType": "Electricians",
  "licenseNumber": "",
  "businessName": "",
  "ownerName": "",
  "city": "",
  "county": "",
  "zipCode": "",
  "technicianType": "All",
  "maxResults": 5
}' |
apify call muhammadafzal/tdlr-texas-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Texas State Licensed Contractor Scraper — TDLR License Data",
        "description": "Scrape Texas Department of Licensing & Regulation (TDLR) public license records: license number, type, class, business & contact info, status, bond, insurance, discipline, sponsor. Returns CRM-ready structured JSON for contractor lead-gen and compliance verification.",
        "version": "1.0",
        "x-build-id": "ZcOCshPFKDLaOFQEy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/muhammadafzal~tdlr-texas-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-muhammadafzal-tdlr-texas-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/muhammadafzal~tdlr-texas-scraper/runs": {
            "post": {
                "operationId": "runs-sync-muhammadafzal-tdlr-texas-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/muhammadafzal~tdlr-texas-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-muhammadafzal-tdlr-texas-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": {
                    "licenseType": {
                        "title": "License Program Type",
                        "enum": [
                            "A/C Technicians",
                            "ACR Certification Training Program",
                            "Air Conditioning Contractors",
                            "Associate Auctioneers",
                            "Athletic Trainers",
                            "ATV Instructor",
                            "Auctioneers",
                            "Audiologist",
                            "Audiologist - Assistant",
                            "Barber Schools",
                            "Barber Shops",
                            "Barber Shops - Dual",
                            "Barber Shops - Mini",
                            "Barber Shops - Mini Dual",
                            "Barber Shops - Mobile",
                            "Barbers",
                            "Behavior Analysts",
                            "Behavior Analysts Assistants",
                            "Boiler Authorized Inspection Agencies",
                            "Boiler Inspectors",
                            "Code Enforcement Officer",
                            "Combative Sports Amateur Promotors",
                            "Combative Sports Contestants",
                            "Combative Sports Event Coordinators",
                            "Combative Sports Judges",
                            "Combative Sports Managers",
                            "Combative Sports Matchmakers",
                            "Combative Sports Promoters",
                            "Combative Sports Referees",
                            "Combative Sports Seconds",
                            "Continuing Education Providers",
                            "Cosmetologists",
                            "Cosmetology Salons",
                            "Cosmetology Salons - Dual",
                            "Cosmetology Salons - Mini",
                            "Cosmetology Salons - Mini Dual",
                            "Cosmetology Salons - Mobile",
                            "Cosmetology Schools",
                            "Court-Ordered Program Instructors",
                            "Court-Ordered Programs",
                            "Dietitians",
                            "Driver Education and Safety",
                            "Driver Education Instructor",
                            "Driver Education Provider – Branch",
                            "Driver Education Provider – Primary",
                            "Driving Safety Provider",
                            "Dyslexia Practitioner",
                            "Dyslexia Therapist",
                            "Electric Vehicle Charging Stations",
                            "Electrician Apprenticeship Programs",
                            "Electricians",
                            "Elevator Contractors",
                            "Elevator Inspectors",
                            "Elevator Responsible Party",
                            "Hearing Instrument CE Provider",
                            "Hearing Instrument FD Training permit",
                            "Hearing Instrument Fitter / Dispenser",
                            "Identity Recovery Service Contract",
                            "Laser Hair Removal Facility",
                            "Laser Hair Removal Professions",
                            "Laser Hair Removal Training Providers",
                            "Licensed Breeders",
                            "Massage Therapist",
                            "Massage Therapist Instructor",
                            "Massage Therapy Establishment",
                            "Massage Therapy School",
                            "Midwife",
                            "Midwife Course provider",
                            "Mobile Dual Shop",
                            "Mold Analysis Laboratory",
                            "Mold Assessment Company",
                            "Mold Assessment Consultant",
                            "Mold Assessment Technician",
                            "Mold Remediation Company",
                            "Mold Remediation Contractor",
                            "Mold Remediation Worker",
                            "Mold Training Provider",
                            "Motor Fuel Metering & Quality Device",
                            "Motor Fuel Metering & Quality Distrib/Wholesaler",
                            "Motor Fuel Metering & Quality Service Technician",
                            "Motor Fuel Metering & Quality Supplier",
                            "Motor Fuel Metering and Quality Service Company",
                            "Motorcycle Instructor",
                            "Podiatrists",
                            "Professional Employer Organization",
                            "Property Tax Consultants",
                            "Property Tax Professional Core Education Providers",
                            "Property Tax Professionals",
                            "Prosthetist/Orthotist – Accredited Facility",
                            "Prosthetist/Orthotist - Licensed",
                            "Prosthetist/Orthotist – Licensed Assistant",
                            "Prosthetist/Orthotist - Technician",
                            "Registered Accessibility Specialists",
                            "Sanitarian",
                            "Service Contract Providers",
                            "Speech Language Pathologist",
                            "Speech Language Pathologist – Assistant",
                            "Tow Companies",
                            "Tow Truck Operators",
                            "Transportation Network Company",
                            "Used Auto Parts Recycler",
                            "Vehicle Storage Facilities",
                            "Vehicle Storage Facility Employees",
                            "Water Well Drillers, Pump Installers",
                            "Water Well/Pump Installers Apprentices",
                            "Weather Modification"
                        ],
                        "type": "string",
                        "description": "The TDLR license program to search. Use this when the user asks for a specific trade or occupation — e.g. 'Air Conditioning Contractors', 'Electricians', 'Elevator Contractors', 'Cosmetologists', 'Massage Therapist'. Do NOT combine with licenseNumber unless you want to narrow further. Electricians and Elevator Contractors license types are the ones that publish contact info (address, phone, email).",
                        "default": "Electricians"
                    },
                    "licenseNumber": {
                        "title": "License Number",
                        "type": "string",
                        "description": "A specific TDLR license number to look up (e.g. '80019'). Use this for single-license verification. Leave empty when browsing all licenses of a given program type."
                    },
                    "businessName": {
                        "title": "Business Name",
                        "type": "string",
                        "description": "Full or partial contractor business name to search (e.g. 'Acme Electric'). Case-insensitive substring match on TDLR's business name field. Leave empty to search all businesses."
                    },
                    "ownerName": {
                        "title": "Owner / Individual Name",
                        "type": "string",
                        "description": "License holder (individual/owner) name to search (e.g. 'John Smith'). Use for sole proprietors and individual licensees. Leave empty to match all owners."
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "Texas city name filter (e.g. 'Austin', 'Houston', 'Dallas'). Type the exact city spelling as TDLR uses it; not a dropdown — any city string works. Leave empty for statewide results."
                    },
                    "county": {
                        "title": "County",
                        "enum": [
                            "Anderson",
                            "Andrews",
                            "Angelina",
                            "Aransas",
                            "Archer",
                            "Armstrong",
                            "Atascosa",
                            "Austin",
                            "Bailey",
                            "Bandera",
                            "Bastrop",
                            "Baylor",
                            "Bee",
                            "Bell",
                            "Bexar",
                            "Blanco",
                            "Borden",
                            "Bosque",
                            "Bowie",
                            "Brazoria",
                            "Brazos",
                            "Brewster",
                            "Briscoe",
                            "Brooks",
                            "Brown",
                            "Burleson",
                            "Burnet",
                            "Caldwell",
                            "Calhoun",
                            "Callahan",
                            "Cameron",
                            "Camp",
                            "Carson",
                            "Cass",
                            "Castro",
                            "Chambers",
                            "Cherokee",
                            "Childress",
                            "Clay",
                            "Cochran",
                            "Coke",
                            "Coleman",
                            "Collin",
                            "Collingsworth",
                            "Colorado",
                            "Comal",
                            "Comanche",
                            "Concho",
                            "Cooke",
                            "Coryell",
                            "Cottle",
                            "Crane",
                            "Crockett",
                            "Crosby",
                            "Culberson",
                            "Dallam",
                            "Dallas",
                            "Dawson",
                            "Deaf Smith",
                            "Delta",
                            "Denton",
                            "Dewitt",
                            "Dickens",
                            "Dimmit",
                            "Donley",
                            "Duval",
                            "Eastland",
                            "Ector",
                            "Edwards",
                            "Ellis",
                            "El Paso",
                            "Erath",
                            "Falls",
                            "Fannin",
                            "Fayette",
                            "Fisher",
                            "Floyd",
                            "Foard",
                            "Fort Bend",
                            "Franklin",
                            "Freestone",
                            "Frio",
                            "Gaines",
                            "Galveston",
                            "Garza",
                            "Gillespie",
                            "Glasscock",
                            "Goliad",
                            "Gonzales",
                            "Gray",
                            "Grayson",
                            "Gregg",
                            "Grimes",
                            "Guadalupe",
                            "Hale",
                            "Hall",
                            "Hamilton",
                            "Hansford",
                            "Hardeman",
                            "Hardin",
                            "Harris",
                            "Harrison",
                            "Hartley",
                            "Haskell",
                            "Hays",
                            "Hemphill",
                            "Henderson",
                            "Hidalgo",
                            "Hill",
                            "Hockley",
                            "Hood",
                            "Hopkins",
                            "Houston",
                            "Howard",
                            "Hudspeth",
                            "Hunt",
                            "Hutchinson",
                            "Irion",
                            "Jack",
                            "Jackson",
                            "Jasper",
                            "Jeff Davis",
                            "Jefferson",
                            "Jim Hogg",
                            "Jim Wells",
                            "Johnson",
                            "Jones",
                            "Karnes",
                            "Kaufman",
                            "Kendall",
                            "Kenedy",
                            "Kent",
                            "Kerr",
                            "Kimble",
                            "King",
                            "Kinney",
                            "Kleberg",
                            "Knox",
                            "Lamar",
                            "Lamb",
                            "Lampasas",
                            "La Salle",
                            "Lavaca",
                            "Lee",
                            "Leon",
                            "Liberty",
                            "Limestone",
                            "Lipscomb",
                            "Live Oak",
                            "Llano",
                            "Loving",
                            "Lubbock",
                            "Lynn",
                            "Madison",
                            "Marion",
                            "Martin",
                            "Mason",
                            "Matagorda",
                            "Maverick",
                            "Medina",
                            "Menard",
                            "Midland",
                            "Milam",
                            "Mills",
                            "Mitchell",
                            "Montague",
                            "Montgomery",
                            "Moore",
                            "Morris",
                            "Motley",
                            "McCulloch",
                            "McLennan",
                            "McMullen",
                            "Nacogdoches",
                            "Navarro",
                            "Newton",
                            "Nolan",
                            "Nueces",
                            "Ochiltree",
                            "Oldham",
                            "Orange",
                            "Palo Pinto",
                            "Panola",
                            "Parker",
                            "Parmer",
                            "Pecos",
                            "Polk",
                            "Potter",
                            "Presidio",
                            "Rains",
                            "Randall",
                            "Reagan",
                            "Real",
                            "Red River",
                            "Reeves",
                            "Refugio",
                            "Roberts",
                            "Robertson",
                            "Rockwall",
                            "Runnels",
                            "Rusk",
                            "Sabine",
                            "San Augustine",
                            "San Jacinto",
                            "San Patricio",
                            "San Saba",
                            "Schleicher",
                            "Scurry",
                            "Shackelford",
                            "Shelby",
                            "Sherman",
                            "Smith",
                            "Somervell",
                            "Starr",
                            "Stephens",
                            "Sterling",
                            "Stonewall",
                            "Sutton",
                            "Swisher",
                            "Tarrant",
                            "Taylor",
                            "Terrell",
                            "Terry",
                            "Throckmorton",
                            "Titus",
                            "Tom Green",
                            "Travis",
                            "Trinity",
                            "Tyler",
                            "Upshur",
                            "Upton",
                            "Uvalde",
                            "Val Verde",
                            "Van Zandt",
                            "Victoria",
                            "Walker",
                            "Waller",
                            "Ward",
                            "Washington",
                            "Webb",
                            "Wharton",
                            "Wheeler",
                            "Wichita",
                            "Wilbarger",
                            "Willacy",
                            "Williamson",
                            "Wilson",
                            "Winkler",
                            "Wise",
                            "Wood",
                            "Yoakum",
                            "Young",
                            "Zapata",
                            "Zavala",
                            "Out Of State"
                        ],
                        "type": "string",
                        "description": "Texas county filter (e.g. 'Travis', 'Harris', 'Dallas'). Select from the official TDLR county list. 'Out Of State' matches licensees located outside Texas. Leave empty for statewide results."
                    },
                    "zipCode": {
                        "title": "ZIP Code",
                        "type": "string",
                        "description": "Texas ZIP code filter (e.g. '78701'). Use a 5-digit ZIP for the most precise geographic filter. Leave empty for statewide results."
                    },
                    "technicianType": {
                        "title": "Technician Type",
                        "enum": [
                            "All",
                            "Registered",
                            "Certified"
                        ],
                        "type": "string",
                        "description": "Filter A/C and electrical license results by technician classification. 'All' returns every technician. 'Registered' and 'Certified' narrow to the two TDLR technician tiers. Only meaningful for license programs that have technicians (Electricians, Air Conditioning Contractors).",
                        "default": "All"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Maximum number of license records to return. Use a small value (5) to verify fields quickly, then scale to 100–1000 for production lead-gen lists. TDLR may cap a single search export; run multiple county/city filters to build larger datasets.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
