{
  "openapi": "3.0.1",
  "info": {
    "title": "New Liquor License Feed: Issued & Pending (6 States)",
    "description": "Newly issued and pending liquor licenses from 8 official open-data sources in 6 states (NY SLA, Texas TABC, Colorado, Missouri, Washington LCB, Chicago) in one normalized schema. New bars, restaurants, stores, breweries. Daily delta mode.",
    "version": "0.1",
    "x-build-id": "skHbOUCTlmf90op1a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~liquor-license-new-issuance-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-liquor-license-new-issuance-feed",
        "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/moment-data~liquor-license-new-issuance-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-liquor-license-new-issuance-feed",
        "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/moment-data~liquor-license-new-issuance-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-liquor-license-new-issuance-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): everything dated in the last N days of each source's data, no saved state. sinceLastRun: only records not delivered before for this State key; use this for daily schedules.",
            "default": "window"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Lookback window (window mode) or first-run window (sinceLastRun). Measured from the newest date each agency has posted, so slow-refreshing portals still return data.",
            "default": 7
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official datasets to read. Default is the eight active sources in 6 states (NY, TX, CO, MO, WA, Chicago IL). Oregon OLCC applications is opt-in only: its upstream dataset has had no new applications since June 4, 2026.",
            "items": {
              "type": "string",
              "enum": [
                "ny-sla-new-licenses",
                "ny-sla-pending-applications",
                "tx-tabc-new-licenses",
                "tx-tabc-pending-applications",
                "co-recently-approved",
                "mo-new-liquor-licenses",
                "or-olcc-applications",
                "wa-lcb-license-applications",
                "chicago-new-liquor-licenses"
              ],
              "enumTitles": [
                "NY: State Liquor Authority - new licenses",
                "NY: State Liquor Authority - pending applications",
                "TX: TABC - new licenses",
                "TX: TABC - pending original applications",
                "CO: Recently approved liquor licenses",
                "MO: New liquor licenses",
                "OR: OLCC applications received (STALE upstream since Jun 2026, opt-in)",
                "WA: LCB license applications (local authority notices)",
                "Chicago, IL: new liquor licenses"
              ]
            },
            "default": [
              "ny-sla-new-licenses",
              "ny-sla-pending-applications",
              "tx-tabc-new-licenses",
              "tx-tabc-pending-applications",
              "co-recently-approved",
              "mo-new-liquor-licenses",
              "wa-lcb-license-applications",
              "chicago-new-liquor-licenses"
            ]
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Shortcut filter on the issuing jurisdiction. Empty = all active sources (NY, TX, CO, MO, WA, Chicago IL). Choosing Oregon also turns on the opt-in OLCC source, whose upstream dataset has had no new applications since June 4, 2026.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "TX",
                "CO",
                "MO",
                "OR",
                "WA",
                "IL"
              ],
              "enumTitles": [
                "New York",
                "Texas",
                "Colorado",
                "Missouri",
                "Oregon (stale source, opt-in)",
                "Washington",
                "Illinois (Chicago)"
              ]
            }
          },
          "stages": {
            "title": "Stage",
            "type": "array",
            "description": "issued = license granted; application = pending/received applications (earliest signal, often weeks before opening). Empty = both.",
            "items": {
              "type": "string",
              "enum": [
                "issued",
                "application"
              ],
              "enumTitles": [
                "Newly issued",
                "Pending / new applications"
              ]
            }
          },
          "licenseCategories": {
            "title": "Business category",
            "type": "array",
            "description": "Normalized category across states. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "retail-on-premises",
                "retail-off-premises",
                "manufacturer",
                "wholesale-distribution",
                "temporary-event",
                "other"
              ],
              "enumTitles": [
                "Bars, restaurants, hotels, clubs (on-premises)",
                "Liquor, grocery, convenience stores (off-premises)",
                "Breweries, wineries, distilleries",
                "Wholesalers, importers, shippers, carriers",
                "Temporary / special events",
                "Other"
              ]
            }
          },
          "licenseTypes": {
            "title": "License type contains",
            "type": "array",
            "description": "Keep records whose license type or code contains any of these (case-insensitive), e.g. restaurant, tavern, mixed beverage, MB, grocery, brewer.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Exact city name (case-insensitive), e.g. Houston, Brooklyn, Denver."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Keep records whose business name, license type or address contains this text."
          },
          "includeTemporary": {
            "title": "Include temporary / special-event permits",
            "type": "boolean",
            "description": "Nonprofit temporary events, picnics, festivals, temporary retail. Off by default.",
            "default": false
          },
          "includeAddOns": {
            "title": "Include add-on privileges",
            "type": "boolean",
            "description": "Additional bars, Sunday sales, late hours, food & beverage certificates and similar add-ons to an existing license. Off by default so you only get new outlets.",
            "default": false
          },
          "maxItems": {
            "title": "Max records per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on delivered records across all sources (also caps your spend).",
            "default": 40
          },
          "maxItemsPerSource": {
            "title": "Max records per source",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap per upstream dataset. Defaults are small so a test run is cheap; raise both for production. In sinceLastRun mode the rest is delivered next run.",
            "default": 5
          },
          "includeRaw": {
            "title": "Include raw source record",
            "type": "boolean",
            "description": "Adds a 'raw' field with the original agency record. Raw records can contain individual owner/applicant names and phone numbers, so leave this off unless you need it.",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free app token to avoid shared-IP throttling on the open-data portals."
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved search for sinceLastRun mode. Each key keeps its own 'already delivered' history; use one key per schedule.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}