{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Liquor License Leads & Signals",
    "description": "Research Japanese alcohol wholesalers, import/export businesses and ecommerce operators for potential partnerships. Export official NTA license events with dates and source links. Preview up to 10 records for Japan market-entry research.",
    "version": "0.0",
    "x-build-id": "7kGlZRggc4311iXm7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/japan_signal_lab~japan-liquor-license-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-japan_signal_lab-japan-liquor-license-signals",
        "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/japan_signal_lab~japan-liquor-license-signals/runs": {
      "post": {
        "operationId": "runs-sync-japan_signal_lab-japan-liquor-license-signals",
        "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/japan_signal_lab~japan-liquor-license-signals/run-sync": {
      "post": {
        "operationId": "run-sync-japan_signal_lab-japan-liquor-license-signals",
        "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": {
          "prefectures": {
            "title": "Research area — Hokkaido demo ready",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep Hokkaido for the verified historical demo. To research your own area, choose prefectures and clear the month under Customize for current publications. A capped preview is not complete coverage. Blank selects all 47 prefectures and can incur more PDF scan fees.",
            "items": {
              "type": "string",
              "enum": [
                "北海道",
                "青森県",
                "岩手県",
                "宮城県",
                "秋田県",
                "山形県",
                "福島県",
                "茨城県",
                "栃木県",
                "群馬県",
                "埼玉県",
                "千葉県",
                "東京都",
                "神奈川県",
                "新潟県",
                "富山県",
                "石川県",
                "福井県",
                "山梨県",
                "長野県",
                "岐阜県",
                "静岡県",
                "愛知県",
                "三重県",
                "滋賀県",
                "京都府",
                "大阪府",
                "兵庫県",
                "奈良県",
                "和歌山県",
                "鳥取県",
                "島根県",
                "岡山県",
                "広島県",
                "山口県",
                "徳島県",
                "香川県",
                "愛媛県",
                "高知県",
                "福岡県",
                "佐賀県",
                "長崎県",
                "熊本県",
                "大分県",
                "宮崎県",
                "鹿児島県",
                "沖縄県"
              ],
              "enumTitles": [
                "Hokkaido (北海道)",
                "Aomori (青森県)",
                "Iwate (岩手県)",
                "Miyagi (宮城県)",
                "Akita (秋田県)",
                "Yamagata (山形県)",
                "Fukushima (福島県)",
                "Ibaraki (茨城県)",
                "Tochigi (栃木県)",
                "Gunma (群馬県)",
                "Saitama (埼玉県)",
                "Chiba (千葉県)",
                "Tokyo (東京都)",
                "Kanagawa (神奈川県)",
                "Niigata (新潟県)",
                "Toyama (富山県)",
                "Ishikawa (石川県)",
                "Fukui (福井県)",
                "Yamanashi (山梨県)",
                "Nagano (長野県)",
                "Gifu (岐阜県)",
                "Shizuoka (静岡県)",
                "Aichi (愛知県)",
                "Mie (三重県)",
                "Shiga (滋賀県)",
                "Kyoto (京都府)",
                "Osaka (大阪府)",
                "Hyogo (兵庫県)",
                "Nara (奈良県)",
                "Wakayama (和歌山県)",
                "Tottori (鳥取県)",
                "Shimane (島根県)",
                "Okayama (岡山県)",
                "Hiroshima (広島県)",
                "Yamaguchi (山口県)",
                "Tokushima (徳島県)",
                "Kagawa (香川県)",
                "Ehime (愛媛県)",
                "Kochi (高知県)",
                "Fukuoka (福岡県)",
                "Saga (佐賀県)",
                "Nagasaki (長崎県)",
                "Kumamoto (熊本県)",
                "Oita (大分県)",
                "Miyazaki (宮崎県)",
                "Kagoshima (鹿児島県)",
                "Okinawa (沖縄県)"
              ]
            }
          },
          "maxSignals": {
            "title": "Maximum results — keep 10 for the demo",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The historical demo returns 10 records from one parsed PDF: $0.12 at current PPE rates. Larger limits or broader areas can cost more. Parsed PDFs can still incur a scan fee with zero matches. Existing API calls that omit this field retain the 10000-result default.",
            "default": 10000
          },
          "sourceMonth": {
            "title": "Coverage month — clear for newest",
            "pattern": "^$|^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "July 2026 is prefilled so the demo reproduces the sample records. Use YYYY-MM for a retained historical month, or clear this field for each prefecture's newest available publication. Effective dates and publication dates differ; running daily does not make a monthly source newer."
          },
          "signalTypes": {
            "title": "License categories and events",
            "uniqueItems": true,
            "type": "array",
            "description": "A source row can match more than one signal type. Each row is emitted once with an eventTypes array.",
            "items": {
              "type": "string",
              "enum": [
                "new_license",
                "online_sales_license",
                "wholesale_license",
                "import_export_license",
                "business_transfer",
                "incorporation",
                "relocation",
                "license_change"
              ],
              "enumTitles": [
                "New license",
                "Online sales / ecommerce",
                "Wholesale",
                "Import / export",
                "Business transfer",
                "Incorporation-related processing",
                "Relocation",
                "License-condition change"
              ]
            }
          },
          "includeGeneralRetailNewLicenses": {
            "title": "Include general-retail-only new licenses",
            "type": "boolean",
            "description": "Off by default to avoid filling a B2B signal feed with ordinary convenience-store and shop openings. Turn on to receive every newly issued general retail license.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}