# Company Directory & Public Contact Scraper (`tubetext/company-directory-contact-scraper`) Actor

Discover B2B companies in public directories and collect published phones, emails and named contacts with source evidence. Filter by country, city, industry and product. Export JSON/CSV with coverage notes. Profiles from $7.50/1,000; contacts from $18.75/1,000 by tier, plus $0.02/GB startup.

- **URL**: https://apify.com/tubetext/company-directory-contact-scraper.md
- **Developed by:** [TubeText Labs](https://apify.com/tubetext) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $18.75 / 1,000 company with public contacts delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Company Directory & Public Contact Scraper

Build a source-linked company shortlist for supplier research, procurement and B2B market mapping. Discover companies in public directories, or start with websites you already know. Collect published business phones, emails and named contacts, then export the evidence to JSON and CSV.

Use structured country, city, industry, product and company-role filters to explain **why a company matches**. Results distinguish directory claims, website evidence, missing information and partial reads. A published phone or email is not a promise of reachability or deliverability.

### Choose your workflow

| Workflow | Input | Delivery | Result fee at Free tier |
| --- | --- | --- | --- |
| Directory shortlist | Directory keywords and optional filters; `depth: "list"` | Company profiles with directory source links and matching evidence | $0.01 per qualifying company |
| Public contacts | Directory search or your company websites; `depth: "contacts"` | Company profiles plus published phones/emails, named people where explicitly present, and contact evidence | $0.025 per qualifying company |

The two result fees are alternatives. A contacts run does not also charge the directory-profile fee. A startup event applies separately; see Pricing below.

Useful differences include separate company and person contacts, retained phone extensions, source URLs and excerpts, condition-level matching, and explicit reasons for missing data. Shared switchboards and general inboxes are not automatically assigned to a named person. Emails are never guessed.

### Try two known websites

The input form contains this small sample. These are **supplied company websites**, not a demonstration of automatic website discovery. At 1 GB, two qualifying contact results cost **$0.07 at Free-tier prices**, including startup. Results depend on current public source access.

```json
{
  "companiesCsv": "website,name\r\nhttps://www.apmcgearbox.com/contact-us/,Suzhou Asia Pacific Intelligent Transmission Technology Co. Ltd\r\nhttps://ess-mondial.de/de/kontakt,ESS-Mondial GmbH\r\n",
  "depth": "contacts",
  "maxCompanies": 2,
  "maxPagesPerCompany": 3,
  "maxRequests": 30,
  "maxRunSeconds": 90
}
```

1. Keep or replace the sample CSV. You can instead supply `companyUrls` as an array of public website URLs.
2. Set **Maximum total charge** in run options to control spending. For this sample, $0.07 accommodates two contact results at 1 GB on the Free tier.
3. Run the Actor. Open the Dataset for company snapshots, `contacts.csv` for contact rows, and `results.json` for source coverage, failures and billing.

No external search or AI key is required. Source pages must be publicly readable without login or JavaScript rendering.

### Discover companies through directories

Clear the sample CSV and any supplied company URLs before using directory discovery. This bounded example searches Find The Needle for hydraulics companies in Camberley, United Kingdom:

```json
{
  "depth": "contacts",
  "countries": ["GB"],
  "regions": ["Camberley"],
  "directoryKeywords": ["hydraulics"],
  "directorySources": ["find_the_needle"],
  "includeUnknown": false,
  "maxCompanies": 1,
  "maxPagesPerCompany": 2,
  "maxDirectoryPages": 2,
  "maxRequests": 60,
  "maxRunSeconds": 120
}
```

For directory profiles without website collection, choose `depth: "list"`. Ten qualifying profiles cost **$0.12 at Free-tier prices and 1 GB**, including startup. This is a pricing example, not a promise that a search will return ten matches.

`directoryKeywords` and `query` control discovery. Structured fields such as `countries`, `regions`, `industries`, `products`, `roles`, `materials`, `processes` and `certifications` screen the returned companies. All populated groups must match; values within a group default to **any**, configurable with `matchModes`. A seller of a product is not automatically treated as its manufacturer.

`includeUnknown` controls the `selected` flag. All assessed companies remain in exports, including excluded or uncertain companies; unselected rows have no result fee. `unknown` means evidence is insufficient, not that a capability or contact does not exist. Certification statements are not certificate audits.

#### Directory scope

| Source ID | Scope and current limitation |
| --- | --- |
| `find_the_needle` | UK-focused company discovery and profiles; bounded visible listing results |
| `kenyabizlist` | Kenya business listings and profiles; unrelated/related-business widgets are excluded from company evidence |
| `australian_manufacturing` | Australian manufacturing directory; native pagination and source crawl delays apply |
| `australian_exporters` | Australian exporter profiles; some entries are old or undated, with public HTTP pages |
| `go4worldbusiness` | Global supplier profiles; country/city conditions require company evidence |
| `exportersindia` | Indian and overseas supplier profiles |
| `made_in_china` | Adapter included; search was access-blocked in acceptance, although a specific profile/contact example was readable |
| `macraes` | Adapter included; live listing/detail routes timed out in acceptance, so live retrieval is not established |

Six readable listing samples were checked against 144 explicitly listed companies during private acceptance. That is a bounded sample, not whole-site or global coverage. Sites can change or block requests. Adapters do not imply every source works for every query.

Country-specific routing prioritizes suitable sources. An official website is enriched only when a suitable directory link exists or you supply it. Missing websites stay missing: external website search is disabled in this release. Source titles, promoted global results and a city in a company name are insufficient location evidence.

A small Chinese/English keyword dictionary supports selected terms. For other terms, provide source-language `directoryKeywords`, usually English. This is not general natural-language or multilingual interpretation.

### Pricing and charge rules

| Event | Free | Bronze | Silver | Gold / Platinum / Diamond |
| --- | ---: | ---: | ---: | ---: |
| One qualifying directory profile (`list`) | $0.01000 | $0.00950 | $0.00850 | $0.00750 |
| One qualifying company with contacts (`contacts`) | $0.02500 | $0.02375 | $0.02125 | $0.01875 |
| Startup, per GB rounded up, minimum one event | $0.02000 | $0.02000 | $0.02000 | $0.02000 |

Your Apify plan determines the result-event tier. Check the Pricing tab for the active schedule. Startup at 512 MB or 1 GB costs $0.02; at 2 GB it costs $0.04.

A **qualifying directory profile** is a selected, named company with a source directory profile and descriptive/product information. A bare input URL is not a billable directory result.

A **qualifying contact company** is a selected, named company with at least one published email or phone carrying source evidence. Multiple emails, phones, people and pages do not add more company-result events. Fax-only results, names without phone/email, empty or inaccessible sources, missing evidence and unselected companies have no result fee.

Results are charged only after the company record is durably saved and appended to the Dataset. A partial company can qualify when at least one supported phone/email is delivered even if another page is blocked. Already delivered results remain chargeable if a later export fails. Inspect `contactCoverage`, `sourceCoverage` and `failures` before using a record.

Startup is charged by the platform even if input is invalid, no qualifying result is found, or the run fails. At 1 GB on the Free tier: zero qualifying companies costs $0.02; two contact companies costs $0.07; twelve contact companies costs $0.32. These examples describe Actor event fees. Account subscription, taxes and separate platform services follow your Apify account terms.

The charge cap and resource limits can stop a run early. `maxCompanies` is a maximum, not a guaranteed count. Runtime billing summaries reconcile successful charge responses and the persisted ledger; final platform accounting can be reported later.

### Outputs and evidence

| Output | Content |
| --- | --- |
| Dataset | Append-only company assessment snapshots, including contacts and source evidence |
| `companies.json` / `companies.csv` | Current run's company set, shortlist flag, website, descriptions and contact coverage |
| `contacts.csv` | One row per phone, email, fax or explicitly named person, with evidence and explicit person associations |
| `comparison.csv` | Condition-by-condition findings, reasons and excerpts |
| `results.json` | Full report, source failures, usage and company billing receipts |
| `report.md` | Readable comparison and coverage notes |
| `OUTPUT` | Delivery readiness, current status and billing summary |

The compatibility file `parameters.csv` may be present; PDF and technical-parameter research are not part of this release. CSV formula prefixes are neutralized for spreadsheet use.

`id` identifies the candidate company group; `recordId` identifies a particular assessment snapshot. A changed assessment can create another snapshot without another same-run company result fee. Use `companies.json` for the current set. `ready: true` means final exports were written; inspect `status` and coverage because a ready report can still be partial.

Phone `valid_format` and email `syntax_only` are format labels, not phone calls or delivery tests. Directory claims remain labeled `directory_reported`. Named people appear only when a page explicitly identifies them. No comprehensive company identity, operating-status or procurement-capacity certification is provided.

### Limits and continuation

Collection is sequential and respects robots rules and source crawl delays. Controls bound companies, directory pages, HTML pages, requests, bytes, response size and collection time. The runtime also reserves time for exports before the platform timeout. Source errors, truncated pages and stopped work remain visible. Login, CAPTCHA bypass, browser rendering, AI research, automatic external website search and PDF extraction are unavailable in this release.

To continue a paid run, choose its key-value store in `resumeFromStoreId`. It must belong to the same Actor and account. Keep search criteria and depth identical; company/page limits may increase. Previously delivered companies carried into that continuation have no repeated result fee, and each new run has its own startup charge. Discovery is not expanded automatically. Start a fresh run when changing search criteria or the candidate universe; fresh runs use fresh result billing.

Successful source documents are cached for 24 hours by default. `cacheMaxAgeHours: 0` requests a refresh. Same-run restart uses persisted request and billing state. An unconfirmed charge stops further work; recover and reconcile the original run before continuing. Checkpoints from the earlier unpriced private version are not accepted for paid continuation.

### Geography attribution

Australian metropolitan matching uses an exact reported locality/state/postcode and a postal representative point within an ABS metropolitan boundary. It is separately labeled; it is not a street coordinate or evidence of a factory. The bundled derived reference credits [GeoNames postal codes](https://download.geonames.org/export/zip/readme.txt) and © Commonwealth of Australia, [Australian Bureau of Statistics, ASGS Edition 4 (2026), GCCSA](https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs/edition-4-july-2026-june-2031/access-and-downloads/geospatial-web-services), both under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Adaptation: postal points intersected with GCCSA polygons; metropolitan rows retained. No endorsement is implied.

Find The Needle profiles with exact Great Britain postcodes can use [Postcodes.io / ONS Postcode Directory](https://postcodes.io/docs/api/lookup-postcode/) country evidence. Missing/unavailable lookups remain unknown; Northern Ireland (BT) and Crown Dependencies are excluded. Contains Ordnance Survey, Royal Mail, National Statistics and NRS data, Crown copyright and database right 2025; see [data licences](https://postcodes.io/docs/licences/).

### Questions and feedback

**Will every company have an email or named person?** No. Results contain only what readable, attributed source pages publish. Missing contact data is not invented.

**Can it find a company website that a directory omits?** Not in this release. Supply a known website or use the available directory information.

**Does a successful run mean complete coverage?** No. Read coverage and failures, including blocked sources and request/time limits. This Actor supports bounded research, not a census of all companies.

**How do I report a missed contact or wrong company match?** Open an issue on this Actor's Issues tab with the run ID, affected company, public source URL, expected field and observed output. Remove credentials and private data. This makes feedback reproducible.

Built by TubeText for evidence-based company research.

# Actor input Schema

## `websiteSearchProvider` (type: `string`):

Disabled for this release. Website enrichment follows published directory links or websites you supply. Missing websites remain unknown.

## `query` (type: `string`):

Optional directory discovery keywords. Use structured filters below for mandatory conditions; general natural-language interpretation is not included.

## `regions` (type: `array`):

Optional cities, provinces or countries, such as Suzhou. No address is required. Australian capital-city filters can include metropolitan suburbs when exact reported locality, state and postcode match the bundled GeoNames/ABS geographic reference. This inference is labeled separately in output.

## `industries` (type: `array`):

Examples: manufacturing, automotive, medical devices. Industry tags do not prove manufacturing capability.

## `products` (type: `array`):

Optional product conditions. Use the wording published by the source, such as precision gears or hydraulic pumps.

## `roles` (type: `array`):

Choose acceptable business roles.

## `materials` (type: `array`):

Optional material conditions, for example aluminum alloy or stainless steel.

## `processes` (type: `array`):

Optional processes, for example CNC machining, die casting or injection molding.

## `certifications` (type: `array`):

Find company statements about certifications; no certificate validity audit is performed.

## `matchModes` (type: `object`):

Different groups are AND. Within each group the default is any. Example: {"products":"all","regions":"any"}.

## `excludedKeywords` (type: `array`):

Explicit positive company statements containing these terms exclude a candidate. Absence or negated statements do not.

## `locationRole` (type: `string`):

Optional site type. Factory plus a region requires evidence of a factory in that region.

## `searchProvider` (type: `string`):

Uses supplied URLs/CSV when present; otherwise discovers companies through public directories. Clear the sample CSV for a directory search.

## `companyUrls` (type: `array`):

Public company website or contact-page URLs. No PDF, login or browser rendering. To include company names, use the CSV field. Maximum 500 URLs.

## `companiesCsv` (type: `string`):

Header: website,name. Quoted CSV is supported. The sample supplies known websites; it does not demonstrate automatic website discovery. Clear this field for directory discovery.

## `excludeDomains` (type: `array`):

Domains to omit from search discovery, in addition to common third-party directories.

## `depth` (type: `string`):

List: source-attributed directory profiles, $0.01 per qualifying company at Free tier. Contacts: profiles plus published phone/email contacts, $0.025 per qualifying company. The modes are not billed together. Startup applies separately.

## `aiEnabled` (type: `boolean`):

Unavailable in this release; keep false.

## `includeUnknown` (type: `boolean`):

All assessed companies remain in exports; this controls the selected flag.

## `maxCompanies` (type: `integer`):

Maximum unique candidate groups assessed.

## `maxSearchQueries` (type: `integer`):

Bound on search requests or registry pages.

## `maxPagesPerCompany` (type: `integer`):

Maximum HTML pages read per candidate, including cached pages.

## `maxDocumentsPerCompany` (type: `integer`):

Unavailable in this release; keep 0.

## `maxRequests` (type: `integer`):

Includes provider calls, robots checks and redirects.

## `maxDownloadBytes` (type: `integer`):

Wire-byte limit; responses are also limited after decompression.

## `maxResponseBytes` (type: `integer`):

Per-response limit, also applied after decompression.

## `maxRunSeconds` (type: `integer`):

Collection deadline; the runtime also reserves 60 seconds before the platform timeout for delivery and exports. Limits or source failures may produce partial results.

## `maxDocumentChars` (type: `integer`):

Truncated sources are explicitly labeled.

## `cacheMaxAgeHours` (type: `number`):

Reuse successful source documents within this age. Set 0 to refresh. A continuation does not expand discovery; changing the candidate universe requires a new run.

## `resumeFromStoreId` (type: `string`):

Optional previous paid-run store from this Actor and account. Keep search criteria and depth identical; page/company limits may increase. Previously delivered companies have no repeated result fee. Each new run has its own startup fee. Unconfirmed billing must be resolved on the original run first.

## `directoryKeywords` (type: `array`):

Optional discovery keywords in the source language, usually English. These do not add mandatory conditions. Use products, regions and other fields to screen results.

## `maxDirectoryPages` (type: `integer`):

Maximum directory listing and category pages across all chosen sources. Profile and robots requests also count toward maxRequests. Pagination may be incomplete at this cap.

## `countries` (type: `array`):

Country names or ISO two-letter codes, for example US, DE, IN or Australia. Combine with a city to disambiguate locations and improve directory filtering.

## `directorySources` (type: `array`):

Choose directory adapters. Access and coverage vary: MacRAE's live routes were blocked/time-limited in acceptance; Made-in-China search was blocked although a profile/contact example worked. See README for scope.

## Actor input object example

```json
{
  "websiteSearchProvider": "none",
  "locationRole": "any",
  "companiesCsv": "website,name\r\nhttps://www.apmcgearbox.com/contact-us/,\"Suzhou Asia Pacific Intelligent Transmission Technology Co., Ltd\"\r\nhttps://ess-mondial.de/de/kontakt,ESS-Mondial GmbH\r\n",
  "depth": "contacts",
  "aiEnabled": false,
  "includeUnknown": true,
  "maxCompanies": 2,
  "maxSearchQueries": 6,
  "maxPagesPerCompany": 3,
  "maxDocumentsPerCompany": 0,
  "maxRequests": 30,
  "maxDownloadBytes": 40000000,
  "maxResponseBytes": 10000000,
  "maxRunSeconds": 90,
  "maxDocumentChars": 120000,
  "cacheMaxAgeHours": 24,
  "maxDirectoryPages": 3
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

## `comparison` (type: `string`):

No description

## `report` (type: `string`):

No description

## `results` (type: `string`):

No description

## `manifest` (type: `string`):

No description

## `contacts` (type: `string`):

No description

# 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 = {
    "websiteSearchProvider": "none",
    "companiesCsv": `website,name
https://www.apmcgearbox.com/contact-us/,"Suzhou Asia Pacific Intelligent Transmission Technology Co., Ltd"
https://ess-mondial.de/de/kontakt,ESS-Mondial GmbH`,
    "depth": "contacts",
    "aiEnabled": false,
    "maxCompanies": 2,
    "maxPagesPerCompany": 3,
    "maxDocumentsPerCompany": 0,
    "maxRequests": 30,
    "maxRunSeconds": 90
};

// Run the Actor and wait for it to finish
const run = await client.actor("tubetext/company-directory-contact-scraper").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 = {
    "websiteSearchProvider": "none",
    "companiesCsv": """website,name\r
https://www.apmcgearbox.com/contact-us/,\"Suzhou Asia Pacific Intelligent Transmission Technology Co., Ltd\"\r
https://ess-mondial.de/de/kontakt,ESS-Mondial GmbH\r
""",
    "depth": "contacts",
    "aiEnabled": False,
    "maxCompanies": 2,
    "maxPagesPerCompany": 3,
    "maxDocumentsPerCompany": 0,
    "maxRequests": 30,
    "maxRunSeconds": 90,
}

# Run the Actor and wait for it to finish
run = client.actor("tubetext/company-directory-contact-scraper").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 '{
  "websiteSearchProvider": "none",
  "companiesCsv": "website,name\\r\\nhttps://www.apmcgearbox.com/contact-us/,\\"Suzhou Asia Pacific Intelligent Transmission Technology Co., Ltd\\"\\r\\nhttps://ess-mondial.de/de/kontakt,ESS-Mondial GmbH\\r\\n",
  "depth": "contacts",
  "aiEnabled": false,
  "maxCompanies": 2,
  "maxPagesPerCompany": 3,
  "maxDocumentsPerCompany": 0,
  "maxRequests": 30,
  "maxRunSeconds": 90
}' |
apify call tubetext/company-directory-contact-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tubetext/company-directory-contact-scraper"
        }
    }
}
```

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/fMpgTEOpdwMy9XeyF/builds/sMBxjTgk5whhI7oge/openapi.json
