{
  "openapi": "3.0.1",
  "info": {
    "title": "Liquor License Leads — New Bar & Restaurant Openings Tracker",
    "description": "New bar & restaurant openings from official liquor license filings: TX, NY, FL, CA, WA, OR, CT, CO, MO, MI, ID, NE + Chicago, Denver, Las Vegas, Clark County NV, Milwaukee, Nashville, Louisville, Phoenix. Applications, new licenses, closings, multi-location operators. Delta mode bills only changes.",
    "version": "1.1",
    "x-build-id": "q4rL3lA85vpLAGeM2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/malonestar~liquor-license-new-openings-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-malonestar-liquor-license-new-openings-tracker",
        "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/malonestar~liquor-license-new-openings-tracker/runs": {
      "post": {
        "operationId": "runs-sync-malonestar-liquor-license-new-openings-tracker",
        "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/malonestar~liquor-license-new-openings-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-malonestar-liquor-license-new-openings-tracker",
        "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": "Which liquor-license registries to query. TX (TABC active + pending), NY (SLA active + pending), FL (DBPR, active only), CA (ABC daily export, active + pending; CA applications carry no date), CO (LED recently approved licenses, active only), MO (ATC new licenses, active only), IL-CHICAGO (City of Chicago newly issued liquor licenses, active only), WA (LCB new-application notices, last 30 days, pending only), OR (OLCC: active = licences newly issued mid-term with the licensee name, from the active roster, new 2026-11-28; pending = applications in progress), CT (DCP pending permits, pending only; no date published). MI (MLCC master list, active + pending = Conditional licences approved but not yet operating; no dates published, newest licence number first), TN-NASHVILLE (Metro beer permits, active = issued, pending = temporary permits), KY-LOUISVILLE (Jefferson County ABC licences, active only), AZ-PHOENIX (City of Phoenix applications in their 20-day comment period, pending only; no date published). A state that lacks the requested feed is reported on every row (run_legs_failed) rather than silently skipped; the run fails only if NO requested state can answer. Added 2026-11-12: NV-CLARK (Clark County incl. the Las Vegas Strip: active = licensed, dated by initial issue; pending = pending + temporary licences, no date published), NV-LAS-VEGAS (City of Las Vegas: active + pending, no dates published -- use delta mode for new ones), NE (Nebraska LCC weekly reports: active = issued, pending = applications + temporary operating permits, dated), WI-MILWAUKEE (current City licences, active only, no original issue date -- use delta mode), CO-DENVER (Denver pending applications only; issued Denver licences come from CO). Added 2026-11-12, feed \"food_permit\" (health-department food permits = new restaurant openings): FL (DBPR new food-service licences, current fiscal year), IL-CHICAGO (CDPH licence inspections), and three food_permit-only codes: NY-NYC (DOHMH pre-permit inspections), WA-KING (King County incl. Seattle: first inspection of a business since 2021), MD-MONTGOMERY (Pre-Opening inspections, ownership changes excluded). The food-only codes have no liquor feed: with feed \"active\", \"pending\", \"all\" or \"closing\" they are reported on every row as unable to answer. Added 2026-11-12: OK (Oklahoma ABLE Commission monthly licensee lists: Mixed Beverage, Beer and Wine, Retail Spirits, Retail Wine, Brew Pub; active only, no issue date published -- use delta mode for new licences) and ME (Maine BABLO monthly licence list, active premises licences; the state posts it monthly, so source_freshness can read \"stale\"; active only, use delta mode); sinceDate is refused for both before any request. CA-SAN-DIEGO (San Diego County food permits newly Issued; food_permit feed only -- CA liquor stays under CA; home-kitchen permits never emitted; owner name and phone only for registered business entities, never an e-mail).",
            "items": {
              "type": "string",
              "enum": [
                "TX",
                "NY",
                "FL",
                "CA",
                "CO",
                "OR",
                "CT",
                "MO",
                "WA",
                "IL-CHICAGO",
                "MI",
                "TN-NASHVILLE",
                "KY-LOUISVILLE",
                "AZ-PHOENIX",
                "ID",
                "NV-CLARK",
                "NV-LAS-VEGAS",
                "NE",
                "WI-MILWAUKEE",
                "CO-DENVER",
                "NY-NYC",
                "WA-KING",
                "MD-MONTGOMERY",
                "CA-SAN-DIEGO",
                "OK",
                "ME"
              ],
              "enumTitles": [
                "Texas (TABC)",
                "New York (SLA)",
                "Florida (DBPR ABT)",
                "California (ABC)",
                "Colorado (LED)",
                "Oregon (OLCC)",
                "Connecticut (DCP)",
                "Missouri (ATC)",
                "Washington (LCB)",
                "Chicago, IL (city liquor licenses)",
                "Michigan (MLCC)",
                "Nashville, TN (Metro Beer Permit Board)",
                "Louisville, KY (Jefferson County ABC)",
                "Phoenix, AZ (City Clerk new applications)",
                "Idaho (ISP ABC)",
                "Clark County, NV (unincorporated incl. the Las Vegas Strip)",
                "Las Vegas, NV (City business licences)",
                "Nebraska (LCC)",
                "Milwaukee, WI (City liquor licences)",
                "Denver, CO (pending applications)",
                "New York City (DOHMH food permits; food_permit feed only)",
                "King County, WA incl. Seattle (food permits; food_permit feed only)",
                "Montgomery County, MD (food permits; food_permit feed only)",
                "San Diego County, CA (food permits; food_permit feed only)",
                "Oklahoma (ABLE Commission monthly licensee lists)",
                "Maine (BABLO monthly licence list)"
              ]
            }
          },
          "feed": {
            "title": "Feed",
            "enum": [
              "pending",
              "active",
              "all",
              "closing",
              "food_permit"
            ],
            "type": "string",
            "description": "Which feed to pull. \"pending\" = new license APPLICATIONS (the earliest opening signal -- a bar/restaurant typically opens 60-90 days later). \"active\" = recently ISSUED licenses (sorted newest first). \"all\" = pending + active (unchanged: it does NOT include closing). \"closing\" = licenses that EXPIRED, were SURRENDERED, CANCELLED or REVOKED, or are lapsing without a renewal -- a bar, restaurant or store going dark (newest first; each closing row also bills one closing-detected event). Pending is published by TX, NY, CA, WA, OR, CT; active by TX, NY, FL, CA, CO, MO and Chicago; closing by TX, OR and Chicago only -- any other requested state is reported on every row as unable to answer the closing feed, and the run fails if none can. \"food_permit\" (added 2026-11-12) = NEW RESTAURANT OPENINGS from health-department food permits and pre-opening inspections, for FL, NY-NYC, IL-CHICAGO, WA-KING, MD-MONTGOMERY and (2026-11-12) CA-SAN-DIEGO: one row per new permit (event_type new_food_permit in delta mode), with food_signal_date, food_facility_type, seats/seating_range, risk_category and liquor_license_match. Without sinceDate it covers the last 90 days. \"all\" does NOT include food_permit (unchanged output and bill for existing callers); request it by name.",
            "default": "pending"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "inventory",
              "delta"
            ],
            "type": "string",
            "description": "\"inventory\" (default) returns a bounded roster slice, newest first — no state kept between runs. \"delta\" tracks licenses in the actor's key-value store: the first delta run seeds a baseline (emitted as event_type=inventory); every later run emits ONLY changes — new_application, newly_issued, or status_change. Schedule delta runs daily/weekly for a true lead feed.",
            "default": "inventory"
          },
          "city": {
            "title": "City filter",
            "type": "string",
            "description": "Optional case-insensitive city substring filter (e.g. \"Austin\", \"Brooklyn\", \"Seattle\"). Oregon applications publish no separate city, so for OR the match is against the one-line address. A source that publishes no city refuses the filter for its leg (disclosed on every row) instead of ignoring it."
          },
          "county": {
            "title": "County filter",
            "type": "string",
            "description": "Optional case-insensitive county substring filter (e.g. \"Bexar\", \"Bronx\"). Published by TX, NY, FL, CA and MO only; any other requested source refuses a county filter for its leg (disclosed on every row) rather than returning its whole state as if filtered."
          },
          "sinceDate": {
            "title": "Since date",
            "pattern": "^$|^\\d{4}-\\d{1,2}-\\d{1,2}$",
            "type": "string",
            "description": "Optional floor on the notice date. Pending feeds: applications submitted/received on or after this date (WA: LCB notification date). Active feeds: licenses issued on or after this date. MUST be YYYY-MM-DD (e.g. 2026-01-15) - any other format is rejected and the run fails without billing, rather than being spliced unverified into a live query. Slash forms are rejected on purpose: 05/06/2026 is ambiguous between US and EU order. California and Connecticut pending applications publish NO date: combining sinceDate with CA or CT pending fails that leg (disclosed on every row) instead of returning an empty result -- use mode \"delta\" to catch new applications there."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Total cap on records emitted across all selected states and feeds (each record is one billable result). Each source gets an even share of what is left, so a source that returns fewer rows than its share passes the rest to the next one.",
            "default": 200
          },
          "verifyOpenings": {
            "title": "Verify Texas openings against tax filings",
            "type": "boolean",
            "description": "Texas only, active feed only. When on (default), every issued TX permit that owes the mixed beverage gross receipts tax (MB, RM, N, NE, NB, NT, D, FB, TB) is joined to the Texas Comptroller's monthly receipts filings: opened_verified reads true when a period with receipts > 0 has been filed, false when at least two obligation periods were due and none carries receipts, and null when it is too early to tell or the permit class never files (beer/wine retailers, package stores). Adds first/latest receipts period, trailing-12-month receipts and the permit's rank in its county. Costs a few extra requests per 50 TX rows and no extra billing; set false to skip it.",
            "default": true
          },
          "includeMobileFoodVendors": {
            "title": "Include mobile food vendors (food_permit feed)",
            "type": "boolean",
            "description": "food_permit feed only. Off (default): food trucks, mobile food dispensing vehicles, hot-dog carts and vending operators are left out, so the feed is fixed-location openings. On: they are included (FL MFDV/HTDG/VEND, Chicago mobile facility types, King County Mobile Food Unit, Montgomery County Mobile Food licences). Changing it starts a separate delta baseline.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}