# Japan Company Contact Form & gBizINFO Scraper (法人番号) (`vesper_studio/japan-company-contact-form-finder`) Actor

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.

- **URL**: https://apify.com/vesper_studio/japan-company-contact-form-finder.md
- **Developed by:** [Xavier Richard](https://apify.com/vesper_studio) (community)
- **Categories:** Lead generation, Business, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 company processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Japan Company Contact Form Finder (日本企業お問い合わせフォーム・連絡先検出 Actor)

Bilingual B2B lead enrichment and contact discovery Actor for the Japanese market (**フォーム営業 / 法人リスト作成 / インサイドセールス支援**).\
Given a list of Japanese companies (by **website URL**, **13-digit Corporate Number 法人番号**, or **Company Name + Prefecture**), this Actor locates the official corporate website, discovers the inquiry page (**お問い合わせページ**), detects the contact form URL and form technology (HTML `<form>`, HubSpot, formrun, Google Forms, Marketo, Pardot, Tayori, BowNow, Spiral, kintone FormBridge, Typeform, etc.), flags sales solicitation refusal clauses (**営業お断り・特定電子メール拒否**), and extracts published Japanese phone numbers and corporate email addresses.

***

### 🇬🇧 English Documentation

#### 1. What It Does

Japanese B2B sales teams and agencies frequently rely on contact-form outreach (**フォーム営業**) and corporate list enrichment because direct cold-email addresses are rarely published for individual decision-makers in Japan. However, manually finding each company's inquiry form, checking whether the company prohibits sales approaches (**営業お断り**), and normalizing legacy Japanese encodings (`Shift_JIS` / `EUC-JP`) and full-width characters (**全角・半角**) is slow and error-prone.

**`japan-company-contact-form-finder`** automates the entire discovery and compliance pre-check workflow in **strict read-only mode**:

1. **Official Website Resolution (when no URL is provided)**:
   - **Primary Official Source — METI gBizINFO REST API v1 (`https://info.gbiz.go.jp/hojin/v1/hojin`)**: Resolves 13-digit Corporate Numbers (**法人番号**) or company names (`{name, prefecture}`) directly to verified corporate metadata and `company_url` using your secret `gbizinfoApiToken`.
   - **Authorized Search APIs / Actors (when `company_url` is absent from gBizINFO)**:
     - **Brave Search API** (`searchProvider: "brave_api"`, via secret `searchApiKey`)
     - **Google Custom Search JSON API** (`searchProvider: "google_cse"`, via secret `searchApiKey` + `googleCseId`)
     - **Apify Google Search Scraper Actor** (`searchProvider: "apify_google_search"`, calling `apify/google-search-scraper`)
     - **Public Web Search Fallback** (`searchProvider: "auto"` / `"public_web"`, using Yahoo! JAPAN Search & DuckDuckGo HTML with automatic filtering of business directories like SalesNow, Baseconnect, Nikkei, Rikunabi, Wikipedia, etc.)
2. **Bounded Internal Crawling (`maxPagesPerSite`, default `5`)**:
   - Enforces a **1-second delay per domain** and respects `robots.txt` (`respectRobots: true` by default).
   - Automatically decodes **`UTF-8`**, **`Shift_JIS` (`cp932`)**, **`EUC-JP`**, and **`ISO-2022-JP`**.
   - Uses fast **`httpx`** requests first, and falls back to headless **Playwright (Chromium)** only when a page is rendered dynamically via JavaScript (SPA shell or JS-injected form widget).
   - Scores and follows internal links matching `お問い合わせ`, `問合せ`, `お問い合せ`, `ご相談`, `資料請求`, `contact`, `inquiry`, `form`.
3. **Contact Form & Field Detection**:
   - Distinguishes genuine inquiry forms from site search bars (`role="search"`, `q`/`s` inputs).
   - Detects both native HTML forms (`html_form`) and embedded/hosted SaaS forms (`hubspot`, `formrun`, `google_forms`, `typeform`, `pardot`, `marketo`, `tayori`, `bownow`, `spiral`, `kintone_formbridge`, `salesforce_web_to_lead`, `microsoft_forms`, `zoho_forms`, `jotform`).
   - Returns normalized form field categories (`company`, `department`, `name`, `email`, `phone`, `address`, `website`, `subject`, `message`, `privacy_consent`).
4. **Sales Refusal Detection (`detectSalesRefusal`, default `true`)**:
   - Scans inquiry pages for anti-solicitation disclaimers (`営業目的のお問い合わせはご遠慮ください`, `営業お断り`, `セールス・勧誘はお断り`, `特定電子メールの送信を拒否いたします`, etc.) and returns `sales_refusal = true` along with the exact text excerpt (`sales_refusal_text`) so sales teams can automatically exclude opt-out companies.
5. **Published Phone & Email Extraction + Japanese Name Normalization**:
   - Extracts domestic (`03-xxxx-xxxx`, `06-xxxx-xxxx`), toll-free (`0120-xxx-xxx`, `0800-xxx-xxxx`), Navi-Dial (`0570-xx-xxxx`), and IP/mobile (`050/070/080/090`) phone numbers, converting full-width digits and dashes (`０３ー１２３４ー５６７８`) into clean half-width ASCII (`03-1234-5678`) while ignoring FAX numbers and postal codes (`〒`).
   - Extracts published corporate emails (handling `mailto:`, Cloudflare `data-cfemail`, and full-width `＠`), while stripping dummy form placeholders (`taro@example.co.jp`, `sample@xxx.co.jp`).
   - Normalizes company names (`NFKC` full-width to half-width conversion, separating `株式会社` / `(株)` / `有限会社` / `合同会社` cleanly with a space).

***

#### 2. Input

Provide at least one of the three target lists (`urls`, `houjinBangou`, or `companies`):

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `urls` | `array<string>` | 10 major JP sites (prefill) | List of company website URLs to crawl. |
| `companies` | `array<object>` | `[]` | List of `{ "name": "サイボウズ株式会社", "prefecture": "東京都" }` objects. |
| `houjinBangou` | `array<string>` | `[]` | List of 13-digit Japanese Corporate Numbers (`法人番号`). |
| `gbizinfoApiToken` | `string` (secret) | — | Optional API token (`X-hojinInfo-api-token`) for the official METI gBizINFO REST API. Never hardcoded. |
| `searchProvider` | `string` | `"auto"` | Website discovery provider when gBizINFO has no URL: `"auto"`, `"brave_api"`, `"google_cse"`, `"apify_google_search"`, or `"public_web"`. |
| `searchApiKey` | `string` (secret) | — | Optional API key for Brave Search API or Google Custom Search JSON API. |
| `googleCseId` | `string` | — | Optional Programmable Search Engine ID (`cx`) for `"google_cse"`. |
| `maxPagesPerSite` | `integer` | `5` | Maximum number of pages to crawl per company website (`1`–`20`). |
| `respectRobots` | `boolean` | `true` | Honour `robots.txt` directives before fetching any URL. |
| `detectSalesRefusal` | `boolean` | `true` | Detect `営業お断り` / anti-solicitation notices on contact pages. |
| `usePlaywrightFallback` | `boolean` | `true` | Render with headless Chromium only when static `httpx` fetch finds an unrendered JS shell. |
| `maxItems` | `integer` | `20` | Maximum number of companies to process in a single run. |

***

#### 3. Output

Each item written to the default Dataset contains the following 15 fields:

```json
{
  "company_name": "さくらインターネット 株式会社",
  "houjin_bangou": "5120001077211",
  "website": "https://www.sakura.ad.jp/",
  "contact_page_url": "https://www.sakura.ad.jp/contact/",
  "contact_form_url": "https://www.sakura.ad.jp/contact/",
  "form_type": "html_form",
  "form_fields_detected": ["company", "name", "email", "phone", "message"],
  "sales_refusal": true,
  "sales_refusal_text": "営業目的のお問い合わせはご遠慮ください。",
  "phone": "06-6376-4800",
  "email": "info@sakura.ad.jp",
  "pages_crawled": 2,
  "status": "found",
  "source_urls": [
    "https://www.sakura.ad.jp/",
    "https://www.sakura.ad.jp/contact/"
  ],
  "scraped_at": "2026-10-26T23:00:00+00:00"
}
```

- **`status` values**:
  - `found`: Contact form URL (`contact_form_url`) was successfully located.
  - `no_form`: Website was crawled, but no inquiry form was found within `maxPagesPerSite`.
  - `site_not_found`: Official website could not be resolved or was unreachable.
  - `blocked`: Crawling was disallowed by `robots.txt`, WAF (HTTP 403/429), or a CAPTCHA gate.

***

#### 4. Cost (Pay-Per-Event Monetization)

This Actor uses transparent **Pay-Per-Event (PPE)** pricing:

| Event Name | Price (USD) | When Charged |
| :--- | :--- | :--- |
| `apify-actor-start` | Platform start fee | Charged once when the Actor run starts. |
| `company-processed` | **$0.002** | Charged once per company processed and pushed to the dataset. |
| `form-found` | **$0.020** | Charged **only** when a valid `contact_form_url` (`status = "found"`) is discovered. |

- **Budget Protection (`eventChargeLimitReached`)**: The Actor monitors your maximum run charge limit via `Actor.get_charging_manager()` before and after every event charge, stopping cleanly as soon as `eventChargeLimitReached` is triggered.
- **Example cost**: Processing **100 Japanese companies** where **75 contact forms** are found costs `(100 × $0.002) + (75 × $0.02) = $0.20 + $1.50 = $1.70` (+ start event).

***

#### 5. Compliance (特定電子メール法・営業お断り尊重・自動送信一切なし)

This Actor is engineered specifically for ethical, legally compliant B2B research in Japan:

1. **Zero Form Submission / Zero Field Input / Zero CAPTCHA Bypass**:
   - The Actor **never** submits any form (`POST`), **never** types or fills any input field, and **never** attempts to solve or bypass CAPTCHAs or WAF protections.
2. **Respect of Sales Refusal Clauses (営業お断り・フォーム営業拒否の尊重)**:
   - When `detectSalesRefusal: true` (default), the Actor flags companies that explicitly prohibit commercial solicitation (`sales_refusal: true`) and extracts the exact notice (`sales_refusal_text`). Users should filter out records where `sales_refusal == true` prior to any outreach.
3. **Compliance with Japan's Act on Regulation of Transmission of Specified Electronic Mail (特定電子メールの送信の適正化等に関する法律 / 特定電子メール法)**:
   - Under Articles 3 and 3-2 of the **Specified Electronic Mail Act (特定電子メール法)** enforced by the Ministry of Internal Affairs and Communications (総務省) and the Consumer Affairs Agency (消費者庁), sending commercial advertising emails (`広告宣伝メール`) without prior opt-in consent (`オプトイン規制`) or to addresses/entities that have published a refusal to receive specified electronic mail is strictly regulated.
   - Extracting published contact channels with this Actor does **not** grant consent to send unsolicited bulk advertising emails. Buyers are solely responsible for complying with the 特定電子メール法, displaying mandatory sender identification (`表示義務`), and honoring all opt-out and `sales_refusal` declarations.

***

### 🇯🇵 日本語ドキュメント (Japanese Documentation)

#### 1. 概要・主な機能 (What It Does)

**`japan-company-contact-form-finder`** は、日本国内のB2B営業チーム・インサイドセールス・フォーム営業代行会社向けに設計された、\*\*完全読み取り専用（Read-Only）\*\*の企業連絡先・お問い合わせフォーム探索Apify Actorです。

企業リスト（**企業サイトURL**、**13桁の法人番号**、または**企業名＋都道府県**）を入力するだけで、以下の処理を自動実行します。

1. **公式サイトURLの特定（URL未指定時）**：
   - **経済産業省 gBizINFO REST API（公式データソース優先）**：入力で `gbizinfoApiToken`（シークレット項目）が指定されている場合、法人番号または企業名から公式API（`https://info.gbiz.go.jp/hojin/v1/hojin`）を照会し、正確な企業名・法人番号・公式サイトURLを取得します。
   - **公認検索API / Apify ActorによるWeb検索**：gBizINFOにURLが登録されていない場合は、**Brave Search API** (`brave_api`)、**Google Custom Search JSON API** (`google_cse`)、**Apify Google Search Scraper Actor** (`apify/google-search-scraper`)、またはフォールバック検索を用いて公式サイトを特定します（ポータルサイト・求人サイト・企業DBサイトは自動除外）。
2. **サイト内巡回（最大 `maxPagesPerSite` ページ、デフォルト5ページ）**：
   - 同一ドメインに対して\*\*最低1秒の間隔（レート制限）\*\*を厳守し、`robots.txt` を尊重します。
   - 日本語サイト特有の文字コード（**`UTF-8`**、**`Shift_JIS` / `CP932`**、**`EUC-JP`**、**`ISO-2022-JP`**）を自動判別・デコードします。
   - 高速な **`httpx`** を第一手段として使用し、JavaScriptで動的描画されるSPAサイトや埋め込みフォームの場合のみ **Playwright (Chromium)** をフォールバック起動します。
   - `お問い合わせ`、`お問合せ`、`ご相談`、`資料請求`、`contact`、`inquiry`、`form` を含む内部リンクを優先度順に探索します。
3. **お問い合わせフォーム＆入力項目の検出**：
   - サイト内検索ボックス（`role="search"` 等）を除外し、本物のお問い合わせフォームのみを判定します。
   - HTMLネイティブフォーム（`html_form`）だけでなく、日本企業で広く使われている外部・埋め込みフォーム（`hubspot`, `formrun`, `google_forms`, `typeform`, `pardot`, `marketo`, `tayori`, `bownow`, `spiral`, `kintone_formbridge` 等）のURLと種別を特定します。
4. **営業お断り文言の自動検出 (`detectSalesRefusal`)**：
   - 「営業目的のお問い合わせはご遠慮ください」「セールス・勧誘はお断り」「特定電子メールの送信を拒否いたします」等の文言を自動検出し、`sales_refusal: true` と該当テキスト抜粋（`sales_refusal_text`）を出力します。これにより、営業禁止企業への誤送信リスクを事前に排除できます。
5. **電話番号・メールアドレス抽出＆社名正規化**：
   - 全角数字・全角ハイフン（例：`０３ー１２３４ー５６７８`）を半角に正規化し、固定電話・フリーダイヤル（`0120`/`0800`）・ナビダイヤル（`0570`）・IP電話を抽出します（FAX番号や郵便番号 `〒` は除外）。
   - 社名に含まれる `株式会社` / `(株)` / `有限会社` / `合同会社` 等の法人格をスペース区切りで正規化し、全角英数字を半角へ統一します。

***

#### 2. 入力パラメータ (Input)

以下の3種類の入力方法のいずれか（または組み合わせ）を指定できます。何も指定しない場合は、日本の主要企業10社を対象としたデフォルトテストが実行されます。

- **`urls`**：企業サイトのURLリスト（例：`["https://www.sakura.ad.jp", "https://www.cybozu.co.jp"]`）
- **`houjinBangou`**：13桁の法人番号リスト（例：`["5120001077211"]`）
- **`companies`**：`{ "name": "企業名", "prefecture": "都道府県" }` のオブジェクト配列
- **`gbizinfoApiToken`**（シークレット）：経済産業省 gBizINFO REST API トークン（ハードコード厳禁・ユーザー指定）
- **`searchProvider`**：URL検索手段（`"auto"`, `"brave_api"`, `"google_cse"`, `"apify_google_search"`, `"public_web"`）
- **`maxPagesPerSite`**：1サイトあたりの最大巡回ページ数（デフォルト：`5`）
- **`respectRobots`**：`robots.txt` の遵守（デフォルト：`true`）
- **`detectSalesRefusal`**：営業お断り文言の検出（デフォルト：`true`）
- **`maxItems`**：最大処理件数（デフォルト・プレフィル：`20`）

***

#### 3. 出力データ (Output)

データセットの各レコードには以下のフィールドが含まれます：

- `company_name`：正規化済み企業名（`株式会社` / `(株)` 分離、全角→半角変換済み）
- `houjin_bangou`：13桁の法人番号
- `website`：公式サイトURL
- `contact_page_url`：お問い合わせページURL
- `contact_form_url`：お問い合わせフォームURL（フォームが見つかった場合のみ）
- `form_type`：フォーム種別（`html_form`, `hubspot`, `formrun`, `google_forms`, `typeform`, `marketo`, `pardot`, `tayori`, `bownow`, `spiral`, `kintone_formbridge` 等）
- `form_fields_detected`：検出されたフォーム項目一覧（`company`, `name`, `email`, `phone`, `subject`, `message` 等）
- `sales_refusal`：営業お断り文言の有無（`true` / `false`）
- `sales_refusal_text`：営業お断り文言の抜粋テキスト
- `phone`：公開された電話番号（半角正規化済み）
- `email`：公開されたメールアドレス（プレースホルダー除外済み）
- `pages_crawled`：巡回したページ数
- `status`：`found`（フォーム検出）、`no_form`（フォーム未検出）、`site_not_found`（サイト不明）、`blocked`（アクセス制限・robots.txt拒否）
- `source_urls`：参照元URLリスト
- `scraped_at`：取得日時（ISO 8601 UTC）

***

#### 4. 料金体系 (Cost / Pay-Per-Event)

本Actorは成果に応じた明確な **Pay-Per-Event（従量課金）** モデルを採用しています。

- **`apify-actor-start`**：Actor起動時の基本イベント
- **`company-processed` ($0.002 / 社)**：企業1社を処理してデータセットに出力するごとに課金
- **`form-found` ($0.02 / 件)**：お問い合わせフォームURL（`contact_form_url`）が実際に検出された場合（`status = "found"`）のみ課金
- **上限到達時の安全な停止 (`eventChargeLimitReached`)**：ユーザーが設定した最大利用上限額に達した場合、即座にループを安全に停止し、超過課金を防止します。

***

#### 5. コンプライアンス・法令遵守 (Compliance)

1. **フォーム送信・フィールド入力・CAPTCHA突破の完全禁止**：
   - 本ActorはHTMLおよびDOMの解析のみを行う**完全読み取り専用クローラー**です。フォームへの文字入力、送信ボタンのクリック（POST送信）、CAPTCHAの突破・回避は一切行いません。
2. **営業お断り（フォーム営業拒否）の尊重**：
   - `sales_refusal: true` と判定された企業は、Webサイト上で営業目的の連絡を明示的に拒否しています。営業リストから必ず除外してください。
3. **特定電子メール法（特定電子メールの送信の適正化等に関する法律）の遵守**：
   - 日本国内において広告宣伝メールを送信する場合、総務省および消費者庁が所管する**特定電子メール法**（オプトイン規制・表示義務・送信拒否者への送信禁止）を遵守する必要があります。Webサイト上に公表されているメールアドレスやフォームであっても、広告宣伝メールの送信に同意していない相手先（特に拒否文言を掲げている企業）への無断送信は法令違反やクレームの原因となります。利用者は自己の責任において関係法令を遵守してご利用ください。

# Actor input Schema

## `urls` (type: `array`):

Direct list of Japanese company website URLs to inspect for contact pages (お問い合わせ), contact forms, sales refusal clauses (営業お断り), phone numbers, and published email addresses.

## `companies` (type: `array`):

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` (type: `array`):

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.

## `gbizinfoApiToken` (type: `string`):

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` (type: `string`):

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`.

## `searchApiKey` (type: `string`):

Optional secret API key for Brave Search API (`X-Subscription-Token`) or Google Custom Search JSON API (`key`). Never hardcoded.

## `googleCseId` (type: `string`):

Optional Google Programmable Search Engine ID (`cx`) when `searchProvider` is set to `google_cse`.

## `maxPagesPerSite` (type: `integer`):

Maximum number of internal pages to crawl per company website (homepage + highest-priority お問い合わせ / contact / inquiry / form links).

## `respectRobots` (type: `boolean`):

Check and respect `robots.txt` directives before crawling each website.

## `detectSalesRefusal` (type: `boolean`):

Detect anti-solicitation / sales refusal notices on contact pages (e.g. 「営業目的のお問い合わせはご遠慮ください」「営業お断り」「特定電子メールの送信を拒否」) and extract the refusal text snippet.

## `usePlaywrightFallback` (type: `boolean`):

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.).

## `maxItems` (type: `integer`):

Maximum number of companies to process and output in this run.

## Actor input object example

```json
{
  "urls": [
    "https://www.sakura.ad.jp",
    "https://www.cybozu.co.jp",
    "https://hatena.co.jp",
    "https://www.iij.ad.jp",
    "https://www.obc.co.jp",
    "https://jp.corp-sansan.com",
    "https://www.kubota.co.jp",
    "https://www.omron.com/jp/ja/",
    "https://www.horiba.com/jpn/",
    "https://www.keyence.co.jp"
  ],
  "searchProvider": "auto",
  "maxPagesPerSite": 5,
  "respectRobots": true,
  "detectSalesRefusal": true,
  "usePlaywrightFallback": true,
  "maxItems": 20
}
```

# Actor output Schema

## `companies` (type: `string`):

All extracted company contact records as JSON. Append ?format=csv or ?format=xlsx for spreadsheets.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.sakura.ad.jp",
        "https://www.cybozu.co.jp",
        "https://hatena.co.jp",
        "https://www.iij.ad.jp",
        "https://www.obc.co.jp",
        "https://jp.corp-sansan.com",
        "https://www.kubota.co.jp",
        "https://www.omron.com/jp/ja/",
        "https://www.horiba.com/jpn/",
        "https://www.keyence.co.jp"
    ],
    "searchProvider": "auto",
    "maxPagesPerSite": 5,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesper_studio/japan-company-contact-form-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [
        "https://www.sakura.ad.jp",
        "https://www.cybozu.co.jp",
        "https://hatena.co.jp",
        "https://www.iij.ad.jp",
        "https://www.obc.co.jp",
        "https://jp.corp-sansan.com",
        "https://www.kubota.co.jp",
        "https://www.omron.com/jp/ja/",
        "https://www.horiba.com/jpn/",
        "https://www.keyence.co.jp",
    ],
    "searchProvider": "auto",
    "maxPagesPerSite": 5,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("vesper_studio/japan-company-contact-form-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.sakura.ad.jp",
    "https://www.cybozu.co.jp",
    "https://hatena.co.jp",
    "https://www.iij.ad.jp",
    "https://www.obc.co.jp",
    "https://jp.corp-sansan.com",
    "https://www.kubota.co.jp",
    "https://www.omron.com/jp/ja/",
    "https://www.horiba.com/jpn/",
    "https://www.keyence.co.jp"
  ],
  "searchProvider": "auto",
  "maxPagesPerSite": 5,
  "maxItems": 20
}' |
apify call vesper_studio/japan-company-contact-form-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesper_studio/japan-company-contact-form-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nk8kxllJCmzGgYSr0/builds/9Z0besh0RzhDd4wRf/openapi.json
