# US Licensed Childcare & Daycare Leads Scraper (TX/NY/PA) (`vesper_studio/us-licensed-childcare-leads`) Actor

Extract B2B leads of state-licensed childcare centers, preschools, school-age programs, and Head Start sites across TX, NY, PA, and DE from official state open data. Home daycares excluded by default. Optional website email enrichment (info@, contact@). Ready for Clay, Make & n8n.

- **URL**: https://apify.com/vesper_studio/us-licensed-childcare-leads.md
- **Developed by:** [Xavier Richard](https://apify.com/vesper_studio) (community)
- **Categories:** Lead generation, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 licensed childcare leads

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

### What does it do

**US Licensed Childcare Leads** turns official state childcare licensing data into a clean, automation-ready B2B lead feed of **licensed childcare centers, school-age (before/after-school) programs and Head Start sites** in:

| State | Source (official open data, Socrata API) | Dataset |
|---|---|---|
| Texas | Health and Human Services Commission – Child Care Regulation | [data.texas.gov / bc5r-88dy](https://data.texas.gov/d/bc5r-88dy) |
| New York | Office of Children and Family Services – Child Care Regulated Programs | [data.ny.gov / cb42-qumz](https://data.ny.gov/d/cb42-qumz) |
| Pennsylvania | Office of Child Development and Early Learning – Child Care Providers | [data.pa.gov / ajn5-kaxt](https://data.pa.gov/d/ajn5-kaxt) |
| Delaware | Office of Child Care Licensing – Licensed Child Care Providers | [data.delaware.gov / iuzd-3dbt](https://data.delaware.gov/d/iuzd-3dbt) |

Every record is normalized to a single **flat 18-field schema** (name, license number, program type, capacity, street address, city, ZIP, county, phone, website, generic e-mail, license status and date, source link) designed to plug directly into **Clay, Make, n8n, Zapier, HubSpot, Pipedrive, Instantly, Smartlead, and Lemlist** without custom parsing. **Home-based daycares run from private residences are excluded by default.** Optionally, the Actor checks the official registry and crawls each facility's website to extract a **generic business e-mail** (`info@`, `contact@`, `office@`, `director@`, `licensing@`…) — never personal e-mails.

### Why use it

- **Built for childcare B2B vendors & GTM teams**: childcare management SaaS, commercial insurers, food/curriculum/playground/furniture suppliers, payroll, staffing, and background-check providers.
- **Plug-and-play with Clay, Make, n8n & Zapier**:
  - **100% flat JSON (zero nested objects or arrays)** — every field maps 1-to-1 to a Clay column, Make module, n8n node, or CRM property.
  - **Direct Webhook push (`webhookUrl`)** — paste a Clay Table Webhook, Make Custom Webhook, or n8n Webhook URL to receive the batch automatically at the end of every run.
  - **Deterministic upsert key** — `(state, license_number)` uniquely identifies every facility across runs so Clay tables, Airtable, Supabase, and CRMs never create duplicates.
  - **Pre-normalized fields** — lowercase `https://` website URLs ready for Clay domain waterfalls, US phones formatted as `(XXX) XXX-XXXX`, 5-digit / `ZIP+4` postal codes, and `YYYY-MM-DD` dates.
- **Precision territory & outbound targeting**: filter by **state**, **city** (`cities`), **county** (`counties`), **3- or 5-digit ZIP prefix** (`zipPrefixes`), **minimum capacity** (`minCapacity`), **new licenses** (`onlyNewSinceDays`), **website presence** (`onlyWithWebsite`), or **100% verified generic e-mail** (`onlyWithEmail`).
- **Official, verifiable government data**: every lead includes its exact public state record URL (`source_url`) for instant compliance auditing.
- **Only real commercial facilities**: home daycares (personal residential addresses) are filtered out by default; foster/residential treatment agencies are always excluded.
- **Pay only for what you get**: per lead delivered, plus a small bonus event only when a generic e-mail is actually found.

### How to use

#### 1. In the Apify Console (no code)

1. Click **Try for free** / **Start**.
2. Select one or more **states** (`TX`, `NY`, `PA`, `DE`) and **program types** (`center`, `school_age`, `head_start`).
3. Optionally filter by **cities**, **counties**, **ZIP prefixes**, **minimum capacity**, or **only licences issued in the last N days**, and enable **Find generic e-mail on website** (or **Only facilities with a generic e-mail**).
4. Set **Maximum number of leads** and run.
5. Export as **CSV, Excel, or JSON**, or pull the dataset from `{{links.apiDefaultDatasetUrl}}/items`.

#### 2. Automate with Clay, Make, n8n & Zapier

- **Clay (`clay.com`)**:
  - **Option A – Native Apify import**: click **+ Create new → Import data from Apify**, choose `us-licensed-childcare-leads`, and set `state` + `license_number` as your deduplication key.
  - **Option B – Direct Clay Webhook**: create a Clay table with **Import data from Webhook**, copy the Clay Webhook URL, and paste it into the Actor's `webhookUrl` input field.
  - **Clay Waterfall**: use `onlyWithWebsite: true` (or `enrichWebsiteEmail: true`) to get clean corporate domains (`website`), then enrich decision-makers on LinkedIn in Clay for centers with `capacity >= 50` and push to **Instantly**, **Smartlead**, **Lemlist**, or **HubSpot**.
- **Make (`make.com`)**:
  1. Add **Apify – Run an Actor** + **Apify – Get Dataset Items** (or receive leads directly in a **Custom Webhook** via `webhookUrl`).
  2. Route items with a **Router**:
     - Branch A (`generic_email` exists) → push to **Instantly / Smartlead / Lemlist** cold e-mail campaign.
     - Branch B (`phone` exists, no e-mail) → create a calling task in **HubSpot / Pipedrive / Close**.
     - Branch C (`address` + `zip`) → trigger a direct-mail postcard via **Lob / PostGrid**.
- **n8n (`n8n.io`)**:
  1. Drop a **Schedule Trigger** (every Monday at 08:00) → **Apify node** (*Run Actor and Get Dataset*) with `onlyNewSinceDays: 7`.
  2. Connect an **IF / Switch node** on `capacity >= 50`.
  3. Upsert into **Postgres / Supabase / Airtable / HubSpot** on `(state, license_number)` and post new openings to **Slack / Microsoft Teams**.
- **Zapier**:
  - Paste your **Zapier Catch Hook** URL into `webhookUrl` (or trigger on Apify `ACTOR.RUN.SUCCEEDED` and fetch `{{links.apiDefaultDatasetUrl}}/items`).

#### 3. Run locally with the Apify CLI

```bash
cd us-licensed-childcare-leads
pip install -r requirements.txt
apify run --purge
```

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `states` | array (`TX`, `NY`, `PA`, `DE`) | `["TX"]` | States to extract. `maxItems` is split evenly between them. |
| `programTypes` | array (`center`, `school_age`, `head_start`) | all | Types of licensed programs to include. |
| `minCapacity` | integer | – | Minimum licensed capacity (children). |
| `excludeFamilyHomes` | boolean | `true` | Exclude family/group childcare homes run from private residences. |
| `enrichWebsiteEmail` | boolean | `false` | Look for a generic e-mail (official dataset first, then website). |
| `onlyNewSinceDays` | integer | – | Only licenses dated within the last N days (DE has no license date and is skipped). |
| `maxItems` | integer | `50` | Maximum number of leads delivered. |
| `cities` | array of strings | – | Optional city filter (case-insensitive, e.g. `["Houston", "Austin"]`). |
| `counties` | array of strings | – | Optional county filter (case-insensitive, e.g. `["Harris", "Allegheny"]`). |
| `zipPrefixes` | array of strings | – | Optional 5-digit ZIP or 3-digit ZIP prefix filter (e.g. `["770", "191"]`). |
| `onlyWithWebsite` | boolean | `false` | Only return facilities with a website URL (supported in TX and PA). |
| `onlyWithEmail` | boolean | `false` | Only deliver (and charge for) leads where a generic e-mail is found. Auto-enables `enrichWebsiteEmail`. |
| `webhookUrl` | string | – | Optional Webhook URL (Clay, Make, n8n, Zapier) receiving delivered leads via HTTP POST. |

Example:

```json
{
  "states": ["TX", "PA"],
  "programTypes": ["center"],
  "minCapacity": 60,
  "cities": ["Houston", "Austin", "Philadelphia"],
  "excludeFamilyHomes": true,
  "enrichWebsiteEmail": true,
  "onlyNewSinceDays": 180,
  "maxItems": 500
}
```

### Output

One flat JSON object per licensed facility (no nested fields). Two dataset views are configured in Apify Console: **Overview** (license, capacity, status) and **Contacts** (address, phone, website, generic e-mail).

```json
{
  "state": "TX",
  "license_number": "1572561",
  "name": "Sproutstart Academy- Spring Valley Location",
  "program_type": "center",
  "capacity": 44,
  "address": "1504 WIRT RD",
  "city": "Houston",
  "zip": "77055-4919",
  "county": "Harris",
  "phone": "(713) 534-1406",
  "website": "https://www.sproutstartacademy.com",
  "generic_email": "info@sproutstartacademy.com",
  "email_source_url": "https://www.sproutstartacademy.com/contact",
  "license_status": "Active (Full Permit)",
  "license_date": "2015-08-11",
  "source_dataset": "data.texas.gov/bc5r-88dy",
  "source_url": "https://data.texas.gov/resource/bc5r-88dy.json?operation_number=1572561",
  "scraped_at": "2026-11-08T19:05:12+00:00"
}
```

Notes per state: Texas publishes facility websites (`website_address`) and facility e-mails; Pennsylvania publishes facility e-mails (`facility_email`), from which custom corporate domains (`website`) and generic role mailboxes are also extracted. New York uses the OCFS facility ID as license identifier and links to the official OCFS profile page. Pennsylvania Head Start sites without a DHS certificate get an `MPI-…` identifier.

### How much does it cost

This Actor uses **pay-per-event** pricing:

| Event | Price | When |
|---|---|---|
| Actor start | set by Apify (synthetic `apify-actor-start` event) | once per run |
| `lead` | **$0.02** (= $20 per 1,000 leads) | each lead delivered to the dataset |
| `email-found` | **$0.01** extra | only when a generic e-mail is delivered |

Examples:

- 50 Texas leads, no enrichment: 50 × $0.02 = **$1.00**
- 1,000 leads, no enrichment: **$20.00**
- 1,000 leads with enrichment, 300 generic e-mails found: $20 + 300 × $0.01 = **$23.00**
- 500 leads with `onlyWithEmail: true` (every lead has a generic e-mail): 500 × ($0.02 + $0.01) = **$15.00**
- 5,000 leads across 4 states, 1,200 e-mails: $100 + $12 = **$112.00**

Set a **maximum cost per run** in the run options: the Actor stops cleanly as soon as your budget is reached and never delivers an item (or an e-mail) it cannot charge for.

### Tips

- **Weekly "New License Radar" in Make or n8n**: schedule a weekly run with `onlyNewSinceDays: 7` and `programTypes: ["center"]` to alert your sales team as soon as a new center gets its permit.
- **100% Email-Ready Lists (`onlyWithEmail: true`)**: when feeding **Instantly**, **Smartlead**, or **Lemlist**, enable `onlyWithEmail: true` so you only receive (and pay for) leads that have a verified generic role e-mail.
- **Clay Domain Waterfalls (`onlyWithWebsite: true`)**: enable `onlyWithWebsite: true` on TX and PA to get a 100% domain-populated list ready for Clay's company and people enrichments.
- **Territory Mapping (`cities`, `counties`, `zipPrefixes`)**: assign leads by sales rep territory using 3-digit ZIP prefixes (e.g. `["770", "773", "774"]` for Greater Houston) or county names.
- **High-volume runs**: set the optional `SOCRATA_APP_TOKEN` environment variable to raise Socrata API rate limits.

### Legal & compliance

- **Public government data**: all records come from official open-data portals published by state agencies (Texas HHSC, New York OCFS, Pennsylvania DHS/OCDEL, Delaware OCCL) under their open-data terms. Each lead includes its source URL.
- **Home daycares excluded by default**: family and group childcare homes are operated by individuals from their personal residence. They are excluded unless you explicitly disable `excludeFamilyHomes`; New York records with protected (omitted) addresses are never output.
- **No personal e-mails**: only generic role mailboxes (`info@`, `contact@`, `office@`, `admin@`, `enrollment@`, `director@`, `licensing@`…) are collected. E-mails are never guessed or constructed. Director/owner names published in the source datasets are not included.
- **Polite crawling**: plain HTTP requests, `robots.txt` honored, at most 4 pages per site, 15-second timeouts, deduplicated per website domain.
- **CAN-SPAM**: B2B e-mail outreach in the US is permitted under the CAN-SPAM Act if you use accurate sender and subject lines, include your physical postal address, provide a working opt-out and honor unsubscribe requests within 10 business days. You are responsible for your use of the data and for compliance with applicable laws (including state laws and the TCPA for phone/SMS outreach).

### FAQ

**How do I connect this Actor to Clay, Make, n8n, or Zapier?**
You can either use the native **Apify** integration in Clay (*Import data from Apify*), Make (*Apify – Run an Actor* + *Get Dataset Items*), n8n (*Apify* node), or paste your Clay/Make/n8n/Zapier Webhook URL directly into the Actor's `webhookUrl` input. Because every item is a flat 18-field JSON object and `{{links.apiDefaultDatasetUrl}}/items` returns the dataset directly, no custom JSON transformation is needed. Use `(state, license_number)` as your unique key to deduplicate across scheduled runs.

**How fresh is the data?**
The Actor queries the state Socrata APIs live on each run. State agencies refresh their datasets daily to monthly.

**Which states include websites and e-mails?**
**Texas** publishes both facility websites and e-mails; **Pennsylvania** publishes facility e-mails (from which custom corporate website domains are also extracted and crawled when enrichment is enabled). **New York** and **Delaware** do not publish websites or e-mails in their open-data feeds, so in Clay you can enrich NY/DE domains from `name` + `city` + `state`.

**Can I get home-based daycares?**
Yes, by setting `excludeFamilyHomes` to `false` (they appear as `program_type: "family_home"`), but their addresses are private homes — handle them with care.

**What does `license_date` mean?**
TX: permit issuance date; NY: date the program was first licensed/registered; PA: certificate issue date. Delaware publishes no date.

**Will you add more states?**
The Actor uses one modular adapter per state, so new Socrata states (e.g. Maryland, Connecticut, Washington, Illinois, Colorado) can be added quickly.

**Are duplicates possible?**
No — leads are deduplicated by `(state, license_number)` within a run, and you can use the same composite key to upsert cleanly into your CRM or Clay table.

# Actor input Schema

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

US states to extract. Each state is read from its official open-data portal (Socrata). When several states are selected, maxItems is split evenly between them.

## `programTypes` (type: `array`):

Which kinds of licensed facilities to include. center = childcare / early-learning centers; school_age = before/after-school and school-age programs; head_start = Head Start / Early Head Start sites. Leave empty for all three.

## `minCapacity` (type: `integer`):

Only keep facilities licensed for at least this many children. Facilities without a published capacity are excluded when this is set.

## `excludeFamilyHomes` (type: `boolean`):

Exclude family / group childcare homes run by individuals from their personal residence (their addresses are private homes). Strongly recommended and enabled by default.

## `enrichWebsiteEmail` (type: `boolean`):

For each facility with a website, visit the homepage and up to 3 contact/about pages (plain HTTP, robots.txt respected, 15 s timeout) and extract only generic role e-mails (info@, contact@, office@, admin@…). A generic mailbox published in the official dataset is used first. Personal e-mails are never extracted or guessed. Each e-mail found is billed as an extra 'email-found' event.

## `onlyNewSinceDays` (type: `integer`):

Keep only facilities whose licence/permit date is within the last N days (TX: issuance date, NY: facility opened date, PA: certificate issue date). Delaware publishes no licence date and is skipped when this filter is used.

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

Maximum number of leads to return across all selected states. You are billed per lead delivered.

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

Optional list of city names to target (case-insensitive, e.g. \["Houston", "Austin", "Philadelphia"]). Pushed down to the Socrata API.

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

Optional list of county names to target (case-insensitive, e.g. \["Harris", "Dallas", "Allegheny"]).

## `zipPrefixes` (type: `array`):

Optional list of 5-digit ZIP codes or 3-digit ZIP prefixes for territory targeting (e.g. \["770", "752", "19104"]).

## `onlyWithWebsite` (type: `boolean`):

Only return facilities that have a website URL (ideal for Clay domain enrichment waterfalls). Supported in TX and PA.

## `onlyWithEmail` (type: `boolean`):

Only deliver (and charge for) leads where a verified generic role e-mail (info@, contact@, office@…) is found. Automatically enables website e-mail enrichment. Ideal for Instantly, Smartlead & Lemlist campaigns.

## `webhookUrl` (type: `string`):

Optional HTTP(S) Webhook URL (e.g. a Clay Table Webhook, Make Custom Webhook, n8n Webhook, or Zapier Catch Hook). When set, the Actor POSTs all delivered leads as JSON to this URL at the end of the run.

## Actor input object example

```json
{
  "states": [
    "TX"
  ],
  "programTypes": [
    "center",
    "school_age",
    "head_start"
  ],
  "excludeFamilyHomes": true,
  "enrichWebsiteEmail": false,
  "maxItems": 50,
  "onlyWithWebsite": false,
  "onlyWithEmail": false
}
```

# Actor output Schema

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

Flat JSON array of all leads produced by the run — ready to ingest directly into Clay, Make, n8n, Zapier, or any CRM. Append ?format=csv or ?format=xlsx for spreadsheets.

# 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": [
        "TX"
    ],
    "programTypes": [
        "center",
        "school_age",
        "head_start"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesper_studio/us-licensed-childcare-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "states": ["TX"],
    "programTypes": [
        "center",
        "school_age",
        "head_start",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("vesper_studio/us-licensed-childcare-leads").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "states": [
    "TX"
  ],
  "programTypes": [
    "center",
    "school_age",
    "head_start"
  ],
  "maxItems": 50
}' |
apify call vesper_studio/us-licensed-childcare-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesper_studio/us-licensed-childcare-leads"
        }
    }
}
```

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

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tZKXJeycOluQf6SHb/builds/8aoJo7YWF5OqYrA5B/openapi.json
