Japan Company Contact Form & gBizINFO Scraper (法人番号) avatar

Japan Company Contact Form & gBizINFO Scraper (法人番号)

Pricing

from $2.00 / 1,000 company processeds

Go to Apify Store
Japan Company Contact Form & gBizINFO Scraper (法人番号)

Japan Company Contact Form & gBizINFO Scraper (法人番号)

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.

Pricing

from $2.00 / 1,000 company processeds

Rating

0.0

(0)

Developer

Xavier Richard

Xavier Richard

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

10 hours ago

Last modified

Features

Limited permissions

Share

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 (03ー1234ー5678) 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):

ParameterTypeDefaultDescription
urlsarray<string>10 major JP sites (prefill)List of company website URLs to crawl.
companiesarray<object>[]List of { "name": "サイボウズ株式会社", "prefecture": "東京都" } objects.
houjinBangouarray<string>[]List of 13-digit Japanese Corporate Numbers (法人番号).
gbizinfoApiTokenstring (secret)—Optional API token (X-hojinInfo-api-token) for the official METI gBizINFO REST API. Never hardcoded.
searchProviderstring"auto"Website discovery provider when gBizINFO has no URL: "auto", "brave_api", "google_cse", "apify_google_search", or "public_web".
searchApiKeystring (secret)—Optional API key for Brave Search API or Google Custom Search JSON API.
googleCseIdstring—Optional Programmable Search Engine ID (cx) for "google_cse".
maxPagesPerSiteinteger5Maximum number of pages to crawl per company website (1–20).
respectRobotsbooleantrueHonour robots.txt directives before fetching any URL.
detectSalesRefusalbooleantrueDetect 営業お断り / anti-solicitation notices on contact pages.
usePlaywrightFallbackbooleantrueRender with headless Chromium only when static httpx fetch finds an unrendered JS shell.
maxItemsinteger20Maximum number of companies to process in a single run.

3. Output

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

{
"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 NamePrice (USD)When Charged
apify-actor-startPlatform start feeCharged once when the Actor run starts.
company-processed$0.002Charged once per company processed and pushed to the dataset.
form-found$0.020Charged 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. 電話番号・メールアドレス抽出&社名正規化:
    • 全角数字・全角ハイフン(例:03ー1234ー5678)を半角に正規化し、固定電話・フリーダイヤル(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サイト上に公表されているメールアドレスやフォームであっても、広告宣伝メールの送信に同意していない相手先(特に拒否文言を掲げている企業)への無断送信は法令違反やクレームの原因となります。利用者は自己の責任において関係法令を遵守してご利用ください。