{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Construction & Real-Estate License Roster (MLIT)",
    "description": "Licensed Japanese construction contractors and real-estate brokers from the MLIT company-information search system (etsuran2.mlit.go.jp): license number, licensing authority, held construction industries, validity period and municipality-level address, filtered by prefecture, industry or name. En…",
    "version": "0.1",
    "x-build-id": "pkZ9Lc0ld8wNuaJpK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpopendata~japan-construction-licenses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpopendata-japan-construction-licenses",
        "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/jpopendata~japan-construction-licenses/runs": {
      "post": {
        "operationId": "runs-sync-jpopendata-japan-construction-licenses",
        "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/jpopendata~japan-construction-licenses/run-sync": {
      "post": {
        "operationId": "run-sync-jpopendata-japan-construction-licenses",
        "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": {
          "businessType": {
            "title": "Business type",
            "enum": [
              "construction",
              "realestate"
            ],
            "type": "string",
            "description": "Which license register to search: `construction` (建設業者 — construction contractors licensed under the Construction Business Act) or `realestate` (宅地建物取引業者 — licensed real-estate brokers).",
            "default": "construction"
          },
          "prefecture": {
            "title": "Prefecture",
            "type": "string",
            "description": "Prefecture of the (head) office: JIS code (\"18\"), Japanese (\"福井県\") or English (\"Fukui\"). STRONGLY recommended — at least one search criterion (prefecture / companyName / industryCode / licenseType) is REQUIRED; a full national dump is not supported by design (source terms condition).",
            "default": "tokyo"
          },
          "industryCode": {
            "title": "Construction industry (1-29)",
            "type": "string",
            "description": "Construction only. One of the 29 statutory license industries: numeric code 1-29, abbreviation (\"電\") or Japanese name (\"電気工事業\"). 1=土木 2=建築 3=大工 4=左官 5=とび・土工 6=石 7=屋根 8=電気 9=管 10=タイル 11=鋼構造物 12=鉄筋 13=舗装 14=しゅんせつ 15=板金 16=ガラス 17=塗装 18=防水 19=内装仕上 20=機械器具 21=熱絶縁 22=電気通信 23=造園 24=さく井 25=建具 26=水道施設 27=消防施設 28=清掃施設 29=解体."
          },
          "industryType": {
            "title": "License class for the industry filter",
            "enum": [
              "general",
              "specific"
            ],
            "type": "string",
            "description": "Required by the upstream form whenever industryCode is set: `general` (一般建設業) or `specific` (特定建設業, large-scale subcontracting). Default general.",
            "default": "general"
          },
          "companyName": {
            "title": "Company name (partial match)",
            "type": "string",
            "description": "Partial match against the published trade name, without the corporate designator (upstream instruction: enter the name WITHOUT 株式会社/有限会社 etc., e.g. \"井上建設\" not \"株式会社井上建設\"). Katakana input searches the phonetic reading. Every row is additionally re-filtered client-side."
          },
          "licenseType": {
            "title": "Licensing authority type",
            "enum": [
              "any",
              "minister",
              "governor"
            ],
            "type": "string",
            "description": "`minister` = licensed by the Minister of Land, Infrastructure, Transport and Tourism (offices in 2+ prefectures), `governor` = licensed by a prefectural governor, `any` = both.",
            "default": "any"
          },
          "includeDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "When true (default), each record costs one extra request but includes held industries, license validity period, capital and the authoritative corporate/individual flag (sole proprietors are excluded using it). When false the actor emits list rows only — cheaper, but only names carrying an explicit corporate designator are emitted (all others are excluded as unverifiable).",
            "default": true
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many dataset records.",
            "default": 30
          },
          "maxApiRequests": {
            "title": "Max upstream requests",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Hard budget of HTTP requests to etsuran2.mlit.go.jp for this run (search pages of 50 rows + 1 per detail). Requests are strictly serial with >= 1.2 s spacing. When the budget runs out the run completes with complete=false in RUN_SUMMARY.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings. Default: no proxy. Never used for rotation/evasion — a single session identity is kept per run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}