{
  "openapi": "3.0.1",
  "info": {
    "title": "Florida DEP Cleanup Sites Monitor",
    "description": "Export official Florida Department of Environmental Protection cleanup-site rows from the public ArcGIS REST layer for environmental due diligence, compliance, and civic research. Unofficial and not affiliated with Florida DEP.",
    "version": "0.0",
    "x-build-id": "Vxl1aCc0sEUriAh36"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/defenestrator~florida-dep-cleanup-sites-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-defenestrator-florida-dep-cleanup-sites-monitor",
        "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/defenestrator~florida-dep-cleanup-sites-monitor/runs": {
      "post": {
        "operationId": "runs-sync-defenestrator-florida-dep-cleanup-sites-monitor",
        "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/defenestrator~florida-dep-cleanup-sites-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-defenestrator-florida-dep-cleanup-sites-monitor",
        "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": {
          "maxItems": {
            "title": "Max items to save",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of normalized cleanup-site rows to save to the output dataset. The actor paginates the source, applies local filters, and saves up to this many rows.",
            "default": 25
          },
          "maxScanRecords": {
            "title": "Max records to scan",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound on how many raw source records the actor may page through before stopping. The source has roughly 10 000 rows. Use this to bound cost when filtering narrowly.",
            "default": 5000
          },
          "businessSearch": {
            "title": "Business / site name filter",
            "type": "string",
            "description": "Optional case-insensitive substring match on the facility/site/business name (BUSINESS_NAME)."
          },
          "citySearch": {
            "title": "City filter",
            "type": "string",
            "description": "Optional case-insensitive substring match on the city field (CITY)."
          },
          "cleanupCategoryKeys": {
            "title": "Cleanup category keys",
            "type": "array",
            "description": "Optional list of exact-match values for CLCC_CLEANUP_CATEGORY_KEY (e.g. PFAS). Rows must match at least one key.",
            "items": {
              "type": "string"
            }
          },
          "remediationStatusKeys": {
            "title": "Remediation status keys",
            "type": "array",
            "description": "Optional list of exact-match values for RSC2_REMEDIATION_STATUS_KEY (e.g. OPEN). Rows must match at least one key.",
            "items": {
              "type": "string"
            }
          },
          "programAreaIds": {
            "title": "Program area IDs",
            "type": "array",
            "description": "Optional list of exact-match values for CPAC_PROGRAM_AREA_ID (e.g. DR). Rows must match at least one ID.",
            "items": {
              "type": "string"
            }
          },
          "sourceDatabaseIds": {
            "title": "Source database IDs",
            "type": "array",
            "description": "Optional list of exact-match values for SOURCE_DATABASE_ID (e.g. ERIC_5055). Rows must match at least one ID.",
            "items": {
              "type": "string"
            }
          },
          "countyIds": {
            "title": "County IDs",
            "type": "array",
            "description": "Optional list of numeric county-code values for CC2_COUNTY_ID. Rows must match at least one ID.",
            "items": {
              "type": "string"
            }
          },
          "updatedSince": {
            "title": "Updated since (ISO date)",
            "type": "string",
            "description": "Optional ISO 8601 date or date-time. Only rows whose DATA_LOAD_DATE is on or after this value are kept. The source stores DATA_LOAD_DATE as epoch milliseconds; this field is compared as a date string."
          },
          "includeRawFields": {
            "title": "Include sanitized raw fields",
            "type": "boolean",
            "description": "When true, the actor attaches a 'raw' object containing selected raw ArcGIS fields (excluding COLLECT_USERNAME, VERIFIER_USERNAME, COMMENTS, and other internal/staff/free-text fields). Default false.",
            "default": false
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each individual HTTP request to the ArcGIS endpoint, in seconds. Must be between 5 and 120.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}