{
  "openapi": "3.0.1",
  "info": {
    "title": "Florida Restaurant Inspections, Closures & New Licenses",
    "description": "Filter Florida DBPR food service inspections, emergency closures, new licenses, ownership approvals and active licenses. Includes locations, source dates and published contact details when available.",
    "version": "0.1",
    "x-build-id": "MkzAjfXk2A1ZpamDY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/finaldynamics~florida-restaurant-inspections/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-finaldynamics-florida-restaurant-inspections",
        "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/finaldynamics~florida-restaurant-inspections/runs": {
      "post": {
        "operationId": "runs-sync-finaldynamics-florida-restaurant-inspections",
        "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/finaldynamics~florida-restaurant-inspections/run-sync": {
      "post": {
        "operationId": "run-sync-finaldynamics-florida-restaurant-inspections",
        "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": {
          "dataset": {
            "title": "Dataset",
            "enum": [
              "inspections",
              "emergencyClosures",
              "licenseChanges",
              "activeLicenses"
            ],
            "type": "string",
            "description": "Choose inspections, weekly closures, fiscal-year license changes or active licenses.",
            "default": "inspections"
          },
          "counties": {
            "title": "Florida counties",
            "type": "array",
            "description": "Case-insensitive names; Dade and Miami-Dade are equivalent. Empty selects all counties. Available for inspections and activeLicenses only; XLSX sources lack county columns.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cities": {
            "title": "Location cities",
            "type": "array",
            "description": "Case-insensitive exact business location city names. Empty selects all cities.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "zipCodes": {
            "title": "Location ZIP prefixes",
            "type": "array",
            "description": "3–5 digit location ZIP prefixes. Empty selects all ZIPs. Not available for emergencyClosures, whose source lacks ZIPs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD inspection, closure or approved date. Not supported for activeLicenses."
          },
          "dateTo": {
            "title": "Through date",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD inspection, closure or approved date. Not supported for activeLicenses."
          },
          "dispositions": {
            "title": "Inspection dispositions",
            "type": "array",
            "description": "Inspections only: case-insensitive substring match; any listed term contained in the disposition matches. Empty selects all. For example, emergency order matches Emergency order recommended and all Emergency Order Callback values; warning matches Warning Issued. Published values include Emergency order recommended; Emergency Order Callback Complied; Emergency Order Callback Not Complied; Emergency Order Callback Time Extension; Call Back - Complied; Call Back - Admin. complaint recommended; Warning Issued; Administrative complaint recommended; Inspection Completed - No Further Action; Call Back - Extension given, pending.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minHighPriorityViolations": {
            "title": "Minimum high priority violations",
            "minimum": 0,
            "type": "integer",
            "description": "Inspections only: optional inclusive minimum. Blank or malformed source values cannot match this bound."
          },
          "includeViolationText": {
            "title": "Include violation descriptions",
            "type": "boolean",
            "description": "Inspections only: include nonzero category counts with published descriptions, or narrative text if supplied by the source. False returns an empty list.",
            "default": true
          },
          "weeks": {
            "title": "Closure weeks",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Emergency closures only: read the most recent N listed weekly XLSX files. Duplicate orders are delivered once per run.",
            "default": 1
          },
          "changeTypes": {
            "title": "License changes",
            "type": "array",
            "description": "License changes only: new and/or changeOwner. Owner changes are approved requests, not pending applications.",
            "items": {
              "type": "string"
            },
            "default": [
              "new",
              "changeOwner"
            ]
          },
          "fiscalYear": {
            "title": "Fiscal year",
            "type": "string",
            "description": "License changes only: consecutive YYZZ (for example 2526). Omit to select the newest listed XLSX year. CSV-only years are unsupported."
          },
          "licenseTypes": {
            "title": "License types",
            "type": "array",
            "description": "License changes only: exact case-insensitive source text, e.g. Seating, Non-Seating, Mobile MFDV, Vending or Catering. Empty selects all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "newSinceLastRun": {
            "title": "Only newly seen active licenses",
            "type": "boolean",
            "description": "Active licenses only. First empty-baseline run saves all district licenses and delivers nothing. Incomplete or capped runs never advance the baseline.",
            "default": false
          },
          "stateStoreId": {
            "title": "Baseline key-value store",
            "type": "string",
            "description": "Required for newSinceLastRun. Choose a persistent Apify key-value store. Use one store per scheduled stream and avoid concurrent runs."
          },
          "minSeats": {
            "title": "Minimum seats",
            "minimum": 0,
            "type": "integer",
            "description": "Active licenses only: optional inclusive seat count. Missing or malformed counts cannot match this bound."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum rows delivered across all files. Stops and cancels the active CSV download at this limit or the charge limit. A capped run does not save baseline state.",
            "default": 100
          },
          "maxSourceAgeDays": {
            "title": "Maximum source age (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Records come from our mirror of the Florida DBPR files, refreshed weekly. A run fails, and is not charged, if any file it would read was last refreshed more than this many days ago.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}