{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Company Scraper: 4.5M+ gBizINFO Records",
    "description": "Scrape 4.5M+ Japanese corporate registries from METI's gBizINFO. Extract capital, headcounts, addresses, and representatives. Drop-in for HubSpot, Salesforce, and Airtable. Skip expensive commercial corporate lists and slow browsers. $1.00 per 1,000 results.",
    "version": "1.0",
    "x-build-id": "my26NDgCZtjbEM2y7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~gbizinfo-japan-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-gbizinfo-japan-company-scraper",
        "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/getascraper~gbizinfo-japan-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-gbizinfo-japan-company-scraper",
        "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/getascraper~gbizinfo-japan-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-gbizinfo-japan-company-scraper",
        "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",
        "required": [
          "searchMode"
        ],
        "properties": {
          "searchMode": {
            "title": "Search Mode",
            "enum": [
              "bySearch",
              "byNumber"
            ],
            "type": "string",
            "description": "Select whether to search by filter queries (bySearch) or lookup a list of explicit 13-digit corporate numbers (byNumber).",
            "default": "bySearch"
          },
          "corporateNumbers": {
            "title": "Corporate Numbers (法人番号)",
            "type": "array",
            "description": "List of exact 13-digit Japanese corporate numbers (法人番号) to fetch. Used only when Search Mode is 'byNumber'.",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Company Name Query",
            "type": "string",
            "description": "Company name partial match. Accepts Japanese or English characters.",
            "default": ""
          },
          "corporateType": {
            "title": "Corporate Type Code",
            "type": "string",
            "description": "Filter by company type. '301' for 株式会社, '302' for 有限会社, '305' for 合同会社. Comma-separate for multiple.",
            "default": ""
          },
          "prefectureCode": {
            "title": "Prefecture JIS Code",
            "type": "string",
            "description": "JIS X 0401 2-digit prefecture code (e.g. '13' for Tokyo, '27' for Osaka, '14' for Kanagawa).",
            "default": ""
          },
          "capitalMin": {
            "title": "Minimum Capital (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower limit of capital stock range.",
            "default": 0
          },
          "capitalMax": {
            "title": "Maximum Capital (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of capital stock range.",
            "default": 0
          },
          "employeeMin": {
            "title": "Minimum Employees",
            "minimum": 0,
            "type": "integer",
            "description": "Lower limit of workforce size.",
            "default": 0
          },
          "employeeMax": {
            "title": "Maximum Employees",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of workforce size.",
            "default": 0
          },
          "existingOnly": {
            "title": "Exclude Closed/Merged Companies",
            "type": "boolean",
            "description": "If enabled, companies with Closed/Merged registry status (e.g. dissolved or absorbed) are ignored.",
            "default": true
          },
          "includeCertifications": {
            "title": "Fetch Certifications",
            "type": "boolean",
            "description": "Fetch ISO registrations, DX認定, or METI awards. Adds 1 API sub-call per company.",
            "default": false
          },
          "includeProcurement": {
            "title": "Fetch Government Procurement Contracts",
            "type": "boolean",
            "description": "Fetch historical public contracts won. Adds 1 API sub-call per company.",
            "default": false
          },
          "includeSubsidies": {
            "title": "Fetch Subsidies Awarded",
            "type": "boolean",
            "description": "Fetch public subsidies awarded. Adds 1 API sub-call per company.",
            "default": false
          },
          "includePatents": {
            "title": "Fetch Patent Registrations Count",
            "type": "boolean",
            "description": "Fetch company's patent and trademark registration counts. Adds 1 API sub-call per company.",
            "default": false
          },
          "includeCommendations": {
            "title": "Fetch Commendations & Awards",
            "type": "boolean",
            "description": "Fetch official awards from ministries or local governments. Adds 1 API sub-call per company.",
            "default": false
          },
          "apiToken": {
            "title": "Optional Personal gBizINFO API Token",
            "type": "string",
            "description": "Input your personal free gBizINFO token. Leaving this blank defaults to METI's public test token, which works instantly.",
            "default": ""
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of corporate profiles to return during this crawl session.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy configuration. Bypassing is not protected on G-Biz API, so we recommend leaving this disabled.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}