{
  "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": "nNbIheMy9PtjtShCp"
  },
  "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": "County names, not case sensitive; Dade and Miami-Dade both work. Leave empty for all counties. Inspections and active licenses only: closure and license change files have no county column, so use cities.",
            "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. Leave empty for all ZIPs. Not available for emergency closures, whose files have no ZIP column.",
            "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. Inspections without a readable count are left out when this is set."
          },
          "includeViolationText": {
            "title": "Include violation descriptions",
            "type": "boolean",
            "description": "Inspections only: list each violation category found, with its description and count, or the inspector's text when the file has it. Off returns an empty list.",
            "default": true
          },
          "weeks": {
            "title": "Closure weeks",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Emergency closures only: how many of the most recent weekly closure files to read. An order repeated across weeks is delivered once.",
            "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: the July-to-June fiscal year as four digits, for example 2526 for 2025-26. Leave empty for the newest year. This actor reads only years the Division publishes as Excel files, not older CSV-only years."
          },
          "licenseTypes": {
            "title": "License types",
            "type": "array",
            "description": "License changes only: license types exactly as the Division writes them, not case sensitive, for example Seating, Non-Seating, Mobile MFDV, Vending or Catering. Leave empty for all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "newSinceLastRun": {
            "title": "Only newly seen active licenses",
            "type": "boolean",
            "description": "Active licenses only. Deliver only license numbers not seen on an earlier run. The first run saves the current list and delivers nothing. A run that fails or stops at Maximum results does not update the list.",
            "default": false
          },
          "stateStoreId": {
            "title": "New-licenses store",
            "type": "string",
            "description": "Required for Only newly seen active licenses. Pick a key-value store you created in Apify Console. Use a separate store for each scheduled task, and do not run two tasks on the same store at once."
          },
          "minSeats": {
            "title": "Minimum seats",
            "minimum": 0,
            "type": "integer",
            "description": "Active licenses only: optional inclusive seat count. Licenses without a readable seat count are left out when this is set."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "The most rows one run delivers, across all files. The run stops at this limit or your maximum charge. A run that stops early does not update the newly-seen license list.",
            "default": 100
          },
          "maxSourceAgeDays": {
            "title": "Maximum source age (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Records come from a weekly copy of the Florida DBPR files. A run fails, and is not charged, if any file it would read was copied 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}