{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Company Contact Form & gBizINFO Scraper (法人番号)",
    "description": "Find official websites, contact pages (お問い合わせ), contact form URLs, embedded form types (HubSpot, formrun, Google Forms), sales-refusal notices (営業お断り), emails, and phones for Japanese companies via company names, Corporate Numbers (法人番号 / gBizINFO), or URLs.",
    "version": "1.0",
    "x-build-id": "9Z0besh0RzhDd4wRf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~japan-company-contact-form-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-japan-company-contact-form-finder",
        "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/vesper_studio~japan-company-contact-form-finder/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-japan-company-contact-form-finder",
        "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/vesper_studio~japan-company-contact-form-finder/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-japan-company-contact-form-finder",
        "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": {
          "urls": {
            "title": "Company Website URLs (企業サイトURLリスト)",
            "type": "array",
            "description": "Direct list of Japanese company website URLs to inspect for contact pages (お問い合わせ), contact forms, sales refusal clauses (営業お断り), phone numbers, and published email addresses.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies by Name & Prefecture (企業名・都道府県リスト)",
            "type": "array",
            "description": "List of Japanese companies as `{ \"name\": \"株式会社...\", \"prefecture\": \"東京都\" }` objects. Official websites are resolved via gBizINFO API (if `gbizinfoApiToken` is provided) or authorized web search API / fallback search."
          },
          "houjinBangou": {
            "title": "Corporate Numbers / 法人番号 (13桁)",
            "type": "array",
            "description": "List of 13-digit Japanese Corporate Numbers (法人番号). Resolved via the official METI gBizINFO API (or public gBizINFO / NTA registry) to find company name, address, and official website.",
            "items": {
              "type": "string"
            }
          },
          "gbizinfoApiToken": {
            "title": "gBizINFO API Token (gBizINFO REST APIトークン - 任意)",
            "type": "string",
            "description": "Optional secret API token (`X-hojinInfo-api-token`) for the official METI gBizINFO REST API (`https://info.gbiz.go.jp/hojin/v1/hojin`). Strongly recommended when resolving `houjinBangou` or `companies`. Never hardcoded."
          },
          "searchProvider": {
            "title": "Website Search Provider (URL検索プロバイダー)",
            "enum": [
              "auto",
              "brave_api",
              "google_cse",
              "apify_google_search",
              "public_web"
            ],
            "type": "string",
            "description": "Authorized search method used when a company has no URL in gBizINFO: `auto` (tries gBizINFO -> Brave/Google CSE API if key provided -> public web search fallback), `brave_api` (Brave Search API), `google_cse` (Google Programmable Search Engine JSON API), `apify_google_search` (calls `apify/google-search-scraper`), or `public_web`.",
            "default": "auto"
          },
          "searchApiKey": {
            "title": "Search API Key (Brave Search / Google CSE APIキー - 任意)",
            "type": "string",
            "description": "Optional secret API key for Brave Search API (`X-Subscription-Token`) or Google Custom Search JSON API (`key`). Never hardcoded."
          },
          "googleCseId": {
            "title": "Google Custom Search Engine ID (cx - 任意)",
            "type": "string",
            "description": "Optional Google Programmable Search Engine ID (`cx`) when `searchProvider` is set to `google_cse`."
          },
          "maxPagesPerSite": {
            "title": "Max Pages Per Site (サイトあたりの最大巡回ページ数)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of internal pages to crawl per company website (homepage + highest-priority お問い合わせ / contact / inquiry / form links).",
            "default": 5
          },
          "respectRobots": {
            "title": "Respect robots.txt (robots.txtを遵守)",
            "type": "boolean",
            "description": "Check and respect `robots.txt` directives before crawling each website.",
            "default": true
          },
          "detectSalesRefusal": {
            "title": "Detect Sales Refusal Notices (営業お断り文言の検出)",
            "type": "boolean",
            "description": "Detect anti-solicitation / sales refusal notices on contact pages (e.g. 「営業目的のお問い合わせはご遠慮ください」「営業お断り」「特定電子メールの送信を拒否」) and extract the refusal text snippet.",
            "default": true
          },
          "usePlaywrightFallback": {
            "title": "Enable Playwright JS Fallback (JavaScript描画フォールバック)",
            "type": "boolean",
            "description": "Use headless Chromium via Playwright only as a fallback when httpx retrieves a JS-only SPA shell or dynamically injected form container (HubSpot, formrun, Marketo, etc.).",
            "default": true
          },
          "maxItems": {
            "title": "Max Items (最大取得件数)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of companies to process and output in this run.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}