# Texas PEOs, Service Contract Providers & Wholesalers (TDLR) (`secondforeman/texas-commercial-providers`) Actor

Licensed Texas Professional Employer Organizations (PEOs), Service Contract Providers, and Distributors/Wholesalers from TDLR open data. Business fields only: company name, business phone, address, county, license number and expiry; personal owner fields are never requested.

- **URL**: https://apify.com/secondforeman/texas-commercial-providers.md
- **Developed by:** [Paul Lewis](https://apify.com/secondforeman) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 provider 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/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Licensed Texas Professional Employer Organizations (PEOs), Service Contract Providers, and Distributors/Wholesalers from TDLR open data. Business fields only: company name, business phone, address, county, license number and expiry; personal owner fields are never requested.

### What does this actor do?

This actor returns **licensed Texas Professional Employer Organizations (PEOs), Service Contract and Extended Warranty Providers, and Licensed Distributors/Wholesalers** from TDLR's official open-data register on the Texas Open Data Portal. Designed for HR, payroll, commercial insurance, compliance, and B2B underwriting teams needing verified company records without personal owner data.

It covers these trades:

- **All commercial providers (PEOs, service contracts & wholesalers)** (`"trade": "all-providers"`): license type "Service Contract Provider" or "Professional Employer Organization" or "Distributor/Wholesaler".
- **Service contract & warranty providers** (`"trade": "service-contract"`): license type "Service Contract Provider".
- **Professional Employer Organizations (PEOs)** (`"trade": "peo"`): license type "Professional Employer Organization".
- **Licensed distributors & wholesalers** (`"trade": "wholesaler"`): license type "Distributor/Wholesaler".

### What data does it return?

Each result is one licensed business. The fields are:

| Field | What it holds |
|---|---|
| `businessName` | Provider or company name as the source lists it. |
| `businessPhone` | Business phone as the source writes it; empty when the source has none. |
| `businessAddress1` | First line of the business address; empty when the source has none. |
| `businessAddress2` | Second line of the business address, when there is one. |
| `businessCity` | City, split out of the source's combined city, state and ZIP field. |
| `businessState` | Two-letter state, split out of the combined field. |
| `businessZip` | Five-digit ZIP code, split out of the combined field. |
| `businessCounty` | Business county as the source writes it, in upper case. |
| `businessCityStateZip` | The source's combined city, state and ZIP text, unchanged. |
| `licenseType` | TDLR commercial provider license type. |
| `licenseSubtype` | License subtype code from the source (such as REGULAR, PROVIDER, ADMIN). |
| `licenseNumber` | License number. |
| `licenseExpires` | License expiration date as YYYY-MM-DD; empty when unreadable. |
| `source` | Where the record came from: agency, dataset and dataset id. |

Covers three high-value commercial TDLR license categories with over 99 percent business address and telephone coverage. Every record comes strictly from the business field allowlist.

### Business records only

This actor asks the source for business fields and nothing else: `license_type`, `license_number`, `license_subtype`, `license_expiration_date_mmddccyy`, `business_name`, `business_address_line1`, `business_address_line2`, `business_city_state_zip`, `business_county`, `business_telephone`. The source also holds personal columns (owner name, mailing address, mailing county, owner phone and a map point). The actor never requests them, and if the source ever sends a column outside its list anyway, the actor drops it before saving. Records with no business name, and records whose business name is written the way the source writes a person's name ("SURNAME, GIVEN NAME"), are left out too. That last check cannot recognize every personal name: a business can still be listed under its owner's name in another form, and a sole proprietor's business phone or address can be personal.

### How to use it

1. Choose a trade.
2. Optionally narrow the results to a county, a city or a ZIP code.
3. Set the maximum number of results.
4. Start the run, then download the dataset as JSON, CSV or Excel, or read it through the Apify API.

You can also schedule runs and send the results to other tools with Apify integrations.

### Input example

```json
{
  "trade": "all-providers",
  "maxResults": 20
}
```

### Output example

The values below are invented to show the shape of one result.

```json
{
  "businessName": "EXAMPLE HR SERVICES LLC",
  "businessPhone": "(713) 555-0180",
  "businessAddress1": "1000 MAIN ST",
  "businessAddress2": "SUITE 1200",
  "businessCity": "HOUSTON",
  "businessState": "TX",
  "businessZip": "77002",
  "businessCounty": "HARRIS",
  "businessCityStateZip": "HOUSTON, TX 77002",
  "licenseType": "Professional Employer Organization",
  "licenseSubtype": "REGULAR",
  "licenseNumber": "0000",
  "licenseExpires": "2027-06-30",
  "source": "Texas Department of Licensing and Regulation (TDLR), dataset \"TDLR - All Licenses\" (7358-krk7) on the Texas Open Data Portal"
}
```

### How much does it cost?

This actor uses Apify's pay-per-event pricing: each run start and each result saved to the dataset is an event, and the price of each is on the Pricing tab of this page. You can set a maximum cost per run. The actor stops cleanly once that limit leaves no room for another result, and you are not charged beyond it.

### Data source and terms

The data comes from the Texas Department of Licensing and Regulation (TDLR), published as the dataset "TDLR - All Licenses" on the Texas Open Data Portal. The portal says that open data "can be freely used, re-used, and redistributed by anyone", and TDLR says that a licensee's name, address and phone number are public under the Texas Public Information Act. The actor reads only the portal's official API, waits at least one second between requests as the portal's robots.txt asks, and never downloads TDLR's own CSV files, which TDLR's robots.txt excludes.

This actor is not affiliated with, endorsed by or connected to the Texas Department of Licensing and Regulation (TDLR) or the Texas Open Data Portal. The agency does not guarantee that the data is accurate, complete or current, so check a license with the agency before you rely on it.

### FAQ

#### What types of companies are included?

Texas-licensed Professional Employer Organizations (PEOs), Service Contract Providers (including administrators), and Licensed Distributors/Wholesalers.

#### Are personal owner columns requested?

No. Owner names, owner phones, and personal mailing addresses are excluded at the API query layer.

#### How fresh is the data?

Each run queries the official Texas Open Data Portal live with no stale cache between runs.

#### Is it legal to use this data?

The records are public business information. How you use them is your responsibility: phone, text and email outreach to businesses is governed by laws such as the Telephone Consumer Protection Act, the National Do Not Call Registry rules and CAN-SPAM. This page is not legal advice.

#### Can I use it through the API?

Yes. Every run's results are available through the Apify API, and the actor can be started from schedules, integrations and other actors.

### Support

Report a problem or ask for a field on this actor's Issues tab. Issues are answered within 14 days.

Built and operated by an AI agent (Google Gemini) with Paul Lewis human sign-off, guaranteed by Second Foreman LLC.

# Actor input Schema

## `trade` (type: `string`):

Which licensed contractors to return. "all-providers": All commercial providers (PEOs, service contracts & wholesalers) (license type "Service Contract Provider" or "Professional Employer Organization" or "Distributor/Wholesaler"); "service-contract": Service contract & warranty providers (license type "Service Contract Provider"); "peo": Professional Employer Organizations (PEOs) (license type "Professional Employer Organization"); "wholesaler": Licensed distributors & wholesalers (license type "Distributor/Wholesaler").

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

The run stops after saving this many records.

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

Optional. A county name, for example "Harris". Matched exactly against the source's business county, ignoring upper and lower case.

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

Optional. City of the business address, for example "Houston". Matched after download; works for trades whose records carry a business address ("all-providers", "service-contract", "peo", "wholesaler").

## `zip` (type: `string`):

Optional. Five-digit ZIP code of the business address, for example "77002". Works for the same trades as the city filter.

## Actor input object example

```json
{
  "trade": "all-providers",
  "maxResults": 20,
  "county": "Harris",
  "city": "Houston",
  "zip": "77002"
}
```

# Actor output Schema

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

Every record the run saved.

# 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 = {
    "trade": "all-providers",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("secondforeman/texas-commercial-providers").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 = {
    "trade": "all-providers",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("secondforeman/texas-commercial-providers").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "trade": "all-providers",
  "maxResults": 20
}' |
apify call secondforeman/texas-commercial-providers --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,secondforeman/texas-commercial-providers"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1TY2r1SecDP4lzMQu/builds/5Z3cuaTWX4gpoijRG/openapi.json
