{
  "openapi": "3.0.1",
  "info": {
    "title": "US Child Care & Daycare Leads Scraper (Official State Data)",
    "description": "Scrape US child care & daycare leads from official state licensing registries (CA, NY, NJ, PA, CO, CT, DE, VT): provider, operator, phone, email, capacity by age, license status & dates, quality rating, subsidy & lead score. Monitor mode.",
    "version": "0.1",
    "x-build-id": "BY3iMX7Ahrw74HmI8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-child-care-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-child-care-leads-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~us-child-care-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-child-care-leads-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~us-child-care-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-child-care-leads-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes to include. Available official-registry states: <code>CA</code> (CDSS CCLD), <code>NY</code> (OCFS), <code>NJ</code> (DCF), <code>PA</code> (DHS/OCDEL), <code>CO</code> (CDEC), <code>CT</code> (OEC), <code>DE</code> (OCCL), <code>VT</code> (CDD). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "providerTypes": {
            "title": "Provider types",
            "type": "array",
            "description": "Filter by normalized provider type: <code>Child Care Center</code>, <code>Family Child Care Home</code>, <code>Group Child Care Home</code>, <code>School-Age Child Care</code>, <code>Preschool / Pre-K</code>, <code>Head Start</code>, <code>Day / Summer Camp</code>, <code>Other</code>. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active / licensed only",
            "type": "boolean",
            "description": "Only include providers with an active/licensed status (recommended for lead generation). Turn off to also see closed/expired/revoked records.",
            "default": true
          },
          "withPhoneOnly": {
            "title": "Has phone number",
            "type": "boolean",
            "description": "Only include providers that have a phone number (CA, NY, NJ, CT, DE, VT carry phone).",
            "default": false
          },
          "withEmailOnly": {
            "title": "Has email",
            "type": "boolean",
            "description": "Only include providers that have an email address (mainly VT).",
            "default": false
          },
          "withNamedContactOnly": {
            "title": "Has named contact / operator",
            "type": "boolean",
            "description": "Only include providers with a director/administrator name or a licensee / operator / governing-body name (CA, NY, PA, CO).",
            "default": false
          },
          "minCapacity": {
            "title": "Minimum licensed capacity",
            "minimum": 0,
            "type": "integer",
            "description": "Only include providers whose total licensed capacity is at least this many children."
          },
          "maxCapacity": {
            "title": "Maximum licensed capacity",
            "minimum": 0,
            "type": "integer",
            "description": "Only include providers whose total licensed capacity is at most this many children."
          },
          "capacityTiers": {
            "title": "Capacity tiers",
            "type": "array",
            "description": "Filter by size tier: <code>large</code> (100+), <code>medium</code> (25-99), <code>small</code> (1-24), <code>family</code> (family/group home). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "acceptsSubsidyOnly": {
            "title": "Accepts subsidy only",
            "type": "boolean",
            "description": "Only include providers that participate in child care subsidy programs (e.g. CCCAP, Child Care Works, Purchase of Care) where the source reports it (PA, CO, DE).",
            "default": false
          },
          "headStartOnly": {
            "title": "Head Start only",
            "type": "boolean",
            "description": "Only include Head Start / Early Head Start providers (where the source reports it).",
            "default": false
          },
          "qualityRatedOnly": {
            "title": "Quality-rated (QRIS) only",
            "type": "boolean",
            "description": "Only include providers with a real QRIS quality rating / STARS level (PA, CO, VT).",
            "default": false
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Only include providers whose city contains one of these (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Only include providers whose county contains one of these (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP code prefixes",
            "type": "array",
            "description": "Only include providers whose ZIP starts with one of these prefixes (e.g. <code>900</code>, <code>112</code>).",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Name contains",
            "type": "string",
            "description": "Only include providers whose name, operator or contact contains this text (case-insensitive). Great for tracking a chain/franchise (e.g. KinderCare, Goddard)."
          },
          "newlyLicensedWithinDays": {
            "title": "Newly licensed within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only include providers first licensed within this many days — a new-business signal (where the source provides a first-license date: CA, CT)."
          },
          "licenseExpiringWithinDays": {
            "title": "License expiring within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only include providers whose license expires within this many days — a renewal / decision-window signal (where the source provides expiration dates: CT, VT)."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only include providers with a lead score at or above this value (0-100)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "capacityHigh",
              "newest",
              "name"
            ],
            "type": "string",
            "description": "Order of the output records.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of child care provider lead records to output.",
            "default": 1000
          },
          "maxResultsPerState": {
            "title": "Max results per state",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on records per state (useful to balance a multi-state pull)."
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the full original registry row to each record under <code>sourceFields</code> (richest possible dataset).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Only output providers that are NEW or CHANGED since the last run with the same Monitor key. Pairs perfectly with Apify Schedules to build a fresh-leads feed.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the saved monitor state. Use one key per saved search so different schedules don't overwrite each other.",
            "default": "default"
          },
          "deduplicateResults": {
            "title": "Deduplicate results",
            "type": "boolean",
            "description": "Drop duplicate providers within a run (recommended).",
            "default": true
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata app token to raise rate limits on the state registries. Not required — the registries are keyless."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Not needed — these government registries are reachable directly. Leave proxy off for the cheapest, fastest runs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}