{
  "openapi": "3.0.1",
  "info": {
    "title": "US Licensed Childcare & Daycare Leads Scraper (TX/NY/PA)",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "8aoJo7YWF5OqYrA5B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~us-licensed-childcare-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-us-licensed-childcare-leads",
        "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/vesper_studio~us-licensed-childcare-leads/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-us-licensed-childcare-leads",
        "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/vesper_studio~us-licensed-childcare-leads/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-us-licensed-childcare-leads",
        "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",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "TX",
                "NY",
                "PA",
                "DE"
              ],
              "enumTitles": [
                "Texas (HHSC)",
                "New York (OCFS)",
                "Pennsylvania (OCDEL)",
                "Delaware (OCCL)"
              ]
            },
            "default": [
              "TX"
            ]
          },
          "programTypes": {
            "title": "Program types",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "center",
                "school_age",
                "head_start"
              ],
              "enumTitles": [
                "Childcare center",
                "School-age / after-school program",
                "Head Start / Early Head Start"
              ]
            },
            "default": [
              "center",
              "school_age",
              "head_start"
            ]
          },
          "minCapacity": {
            "title": "Minimum licensed capacity",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep facilities licensed for at least this many children. Facilities without a published capacity are excluded when this is set."
          },
          "excludeFamilyHomes": {
            "title": "Exclude home-based daycares",
            "type": "boolean",
            "description": "Exclude family / group childcare homes run by individuals from their personal residence (their addresses are private homes). Strongly recommended and enabled by default.",
            "default": true
          },
          "enrichWebsiteEmail": {
            "title": "Find generic e-mail on website",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "onlyNewSinceDays": {
            "title": "Only licences issued in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "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": {
            "title": "Maximum number of leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of leads to return across all selected states. You are billed per lead delivered.",
            "default": 50
          },
          "cities": {
            "title": "Filter by cities (optional)",
            "type": "array",
            "description": "Optional list of city names to target (case-insensitive, e.g. [\"Houston\", \"Austin\", \"Philadelphia\"]). Pushed down to the Socrata API.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Filter by counties (optional)",
            "type": "array",
            "description": "Optional list of county names to target (case-insensitive, e.g. [\"Harris\", \"Dallas\", \"Allegheny\"]).",
            "items": {
              "type": "string"
            }
          },
          "zipPrefixes": {
            "title": "Filter by ZIP codes or 3-digit ZIP prefixes (optional)",
            "type": "array",
            "description": "Optional list of 5-digit ZIP codes or 3-digit ZIP prefixes for territory targeting (e.g. [\"770\", \"752\", \"19104\"]).",
            "items": {
              "type": "string"
            }
          },
          "onlyWithWebsite": {
            "title": "Only facilities with a website",
            "type": "boolean",
            "description": "Only return facilities that have a website URL (ideal for Clay domain enrichment waterfalls). Supported in TX and PA.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only facilities with a generic e-mail",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL for Clay / Make / n8n / Zapier (optional)",
            "type": "string",
            "description": "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."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}