{
  "openapi": "3.0.1",
  "info": {
    "title": "Daycare & Preschool Directory Scraper",
    "description": "Licensed daycare, preschool, and family child-care providers in California, Florida, Texas, and New York. Search by ZIP, city, county, or name keyword. Returns license, status, capacity, contact, inspection counts, programs (VPK, Gold Seal, Texas Rising Star), and operating hours.",
    "version": "0.1",
    "x-build-id": "K4UVYVd1rbjNbiVkk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jungle_synthesizer~daycare-preschool-directory-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jungle_synthesizer-daycare-preschool-directory-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/jungle_synthesizer~daycare-preschool-directory-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jungle_synthesizer-daycare-preschool-directory-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/jungle_synthesizer~daycare-preschool-directory-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jungle_synthesizer-daycare-preschool-directory-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",
        "required": [
          "state",
          "facilityTypes"
        ],
        "properties": {
          "sp_intended_usage": {
            "title": "What is the intended usage of this data?",
            "minLength": 1,
            "type": "string",
            "description": "Please describe how you plan to use the data extracted by this crawler."
          },
          "sp_improvement_suggestions": {
            "title": "How can we improve this crawler for you?",
            "minLength": 1,
            "type": "string",
            "description": "Provide any feedback or suggestions for improvements."
          },
          "sp_contact": {
            "title": "Contact Email",
            "minLength": 1,
            "type": "string",
            "description": "Provide your email address so we can get in touch with you."
          },
          "state": {
            "title": "State",
            "enum": [
              "CA",
              "FL",
              "TX",
              "NY"
            ],
            "type": "string",
            "description": "US state to search. CA = California (CDSS), FL = Florida (DCF), TX = Texas (HHS), NY = New York (OCFS via the data.ny.gov Socrata feed). Each state has its own facility-type vocabulary — pick from the matching list under Facility Types.",
            "default": "CA"
          },
          "zips": {
            "title": "ZIP Codes (optional)",
            "type": "array",
            "description": "List of ZIP codes to search. Most precise mode. Example: ['94110', '90210', '33126', '78701', '10002'].",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "List of city names to search. Example: ['San Francisco', 'Miami', 'Austin', 'New York']. Note: large cities are server-capped (250 for CA, 200 for FL); TX has no server-side city filter — TX queries fall back to keyword matching against provider name. NY accepts exact-match city names against the OCFS feed.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties (optional)",
            "type": "array",
            "description": "Counties to search. Example: ['San Francisco', 'Miami-Dade', 'Travis', 'Sullivan']. Server-capped per query (250 for CA, 200 for FL); TX has no server-side county filter — TX queries fall back to keyword matching against provider name. NY accepts exact-match county names from the OCFS feed.",
            "items": {
              "type": "string"
            }
          },
          "facilityNameKeyword": {
            "title": "Facility Name Keyword (optional)",
            "type": "string",
            "description": "Match facilities whose name contains this substring. Example: 'Montessori' or 'KinderCare'. Combine with state/ZIP/city to narrow."
          },
          "facilityTypes": {
            "title": "Facility Types",
            "type": "array",
            "description": "Facility types to include. Use the labels matching the selected state. CA: Family Child Care Home (Small/Large), Child Care - Infant Center, School Age Child Care Center, Child Care Center, Child Care Center Preschool, Single Licensed Child Care Center. FL: Child Care Facility, Family Day Care Home, Large Family Child Care Home. TX: Licensed Center, Licensed Child-Care Home, Registered Child-Care Home, Small Employer Based Child Care, Listed Family Home. NY: Day Care Center, Group Family Day Care, Family Day Care, School-Age Child Care, Small Day Care Center.",
            "items": {
              "type": "string",
              "enum": [
                "Family Child Care Home (Small)",
                "Family Child Care Home (Large)",
                "Child Care - Infant Center",
                "School Age Child Care Center",
                "Child Care Center",
                "Child Care Center Preschool",
                "Single Licensed Child Care Center",
                "Child Care Facility",
                "Family Day Care Home",
                "Large Family Child Care Home",
                "Licensed Center",
                "Licensed Child-Care Home",
                "Registered Child-Care Home",
                "Small Employer Based Child Care",
                "Listed Family Home",
                "Day Care Center",
                "Group Family Day Care",
                "Family Day Care",
                "School-Age Child Care",
                "Small Day Care Center"
              ]
            }
          },
          "statusFilter": {
            "title": "License Status Filter",
            "enum": [
              "",
              "Licensed",
              "Closed",
              "Pending Application",
              "Exempt",
              "Full Permit",
              "Initial Permit",
              "Certified",
              "Registered",
              "License",
              "Registration",
              "Pending Revocation",
              "Pending Revocation and Denial",
              "Suspended"
            ],
            "type": "string",
            "description": "Limit to facilities with this license status. Empty = all. CA values: Licensed, Closed, Pending Application. FL values: Licensed, Exempt. TX values: Full Permit, Initial Permit, Certified, Registered. NY values: License, Registration, Pending Revocation, Pending Revocation and Denial, Suspended.",
            "default": ""
          },
          "includeDetails": {
            "title": "Fetch Detail Pages",
            "type": "boolean",
            "description": "California, Texas, and New York — fetches the per-facility detail endpoint or profile page to populate director/contact name (CA/TX), license-renewal date (CA/TX), and inspection visit history (CA: with deficiency tiers; NY: dates only). Roughly doubles request count. Florida ignores this flag (its search response already embeds full detail).",
            "default": true
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of facilities to return. Tester limit is 15.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}