# Public Website Contacts Scraper (`kamnev.apps/public-website-contacts`) Actor

Extract published emails, phone numbers from tel: links, contact-form URLs and supported social links from business websites. Each value has a source URL. HTTP only; at most 3 pages per website. Excludes LinkedIn, people search and email deliverability checks.

- **URL**: https://apify.com/kamnev.apps/public-website-contacts.md
- **Developed by:** [KamnevApps](https://apify.com/kamnev.apps) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 92.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Public Website Contacts

Give Public Website Contacts a list of business website URLs. It checks a small set of public pages and returns published contact details with the page where it found each value.

Use it with company websites from your own directory or account list. The Actor does not discover businesses or search for people.

### Fees

| Event | Actor fee | Charged for |
| --- | --- | --- |
| Run start | $0.05 once per valid started run | Starting an accepted run, including a run that finds no contacts |
| Website with contact | $0.0005 per unique website | A published contact and its source page delivered in the output |

The website fee is $0.50 per 1,000 found websites. Each website counts once per run. A partial scan can qualify when it has valid contact evidence. Empty, blocked, failed, duplicate and unprocessed websites add no website fee; the separate run-start fee still applies.

| Websites with contacts in one run | Total Actor fee |
| --- | --- |
| 0 | $0.05 |
| 100 | $0.10 |
| 1,000 | $0.55 |

The default maximum charge is $0.55 per run. Your budget must cover `$0.05 + $0.0005 × unique website count`; use a smaller input list to work within a lower limit. The limit is a ceiling, not the final fee. Platform usage during the run is included in the event price. After the run, dataset interactions, including reads and writes, incur standard platform usage fees. See [Apify's pricing-model documentation](https://docs.apify.com/actors/running/actors-in-store).

Enter a positive maximum cost. Do not use `0` as a free dry run.

The minimum spending limit is $0.0505; larger lists need the full amount above.

### How to use it

1. Open **Input** and replace `startUrls` with your list of public business website URLs. The IANA prefill is a small starting example.
2. Choose the page and concurrency limits, then review your maximum charge.
3. Click **Start**. After the run, open **Website contacts** to review one row per website.
4. Check `status`, `reasonCode` and `completeness` before using the contacts. Export the dataset as JSON or CSV.

For spreadsheet imports, set contact columns to Text to preserve phone prefixes and email strings.

### Pages and contacts

For each website, the Actor reads its home page and selects relevant pages on the same website, such as contact, about or Impressum. It reads at most 3 pages per website. This is a cap: blocked pages, resource limits or other failures can leave fewer pages checked.

The output includes:

- Published email addresses and phone numbers from `tel:` links.
- Contact-form page URLs and supported social profile links, excluding LinkedIn.
- A source URL for each contact, plus page outcomes and crawl completeness.

The Actor uses HTTP requests. It does not run JavaScript, open a browser, solve CAPTCHA, log in or submit contact forms. It records social links without visiting their profiles. Email deliverability, MX checks and contact enrichment are outside this version.

Email extraction is limited to ASCII addresses, including domains written in punycode. The Actor omits visible addresses whose original source word contains non-ASCII characters. Source words can span inline formatting and contact labels; only ASCII whitespace, HTML block boundaries and `<br>` separate them.

Phone numbers must appear in a `tel:` link. The current parser does not extract numbers shown only as plain text or structured-data values.

### Input

Supply an array of public HTTP or HTTPS URL strings in `startUrls`. The optional limits can reduce the amount of work in one run.

| Field | Accepted values | Default | Meaning |
| --- | --- | --- | --- |
| `startUrls` | 1 to 1,000 URL strings | Required | The website URLs you want to check |
| `maxWebsites` | 1 to 1,000 | 1,000 | Maximum number of unique websites to process |
| `maxPagesPerWebsite` | 1 to 3 | 3 | Maximum pages to read on one website |
| `maxConcurrency` | 1 to 5 | 3 | Maximum websites being processed at once |

The input form prefills [IANA's home page](https://www.iana.org/). Replace it with the business website URLs you want to check. This input example matches the prefill and the native dataset row below.

```json
{
  "startUrls": ["https://www.iana.org/"],
  "maxWebsites": 1000,
  "maxPagesPerWebsite": 3,
  "maxConcurrency": 3
}
```

URLs on the same normalized hostname, including its single `www` variant, count as one website even when their paths differ. The result retains the input URLs that refer to it. Duplicates do not add website charges.

If the number of unique websites exceeds `maxWebsites`, the input is rejected before source requests. Invalid input also stops before requests. Private, local and metadata destinations are blocked, including redirects to those destinations. The Actor respects robots rules and limits requests to the same website.

### Results

The default dataset contains one row per normalized website, with findings and the outcome of the scan.

Start with **Website contacts** to review the dataset. **JSON report** contains the rows and run summary; **Scan summary** shows counts and stopping reasons. **Billing receipt** records billing separately from collection outcomes.

| Field | Contents |
| --- | --- |
| `websiteKey`, `homepageUrl`, `inputUrls` | Website identity and the supplied URLs that refer to it |
| `canonicalUrl`, `canonicalHostname` | The loaded home page and hostname, when available |
| `status`, `reasonCode` | Website outcome and any technical or stopping reason |
| `contacts` | Findings with `type` (`email`, `phone`, `contact_form` or `social`), `value` and `sourceUrl` |
| `pages` | `requestedUrl`, `finalUrl`, `outcome` (`ok`, `blocked`, `failed` or `needs_javascript`), `reasonCode` and `statusCode` for each attempted page |
| `completeness` | `state` (`complete`, `partial` or `not_started`), `selectedPages`, `attemptedPages`, `successfulPages` and `reasonCode` |

| Website status | Meaning |
| --- | --- |
| `found` | At least one contact has valid public-page evidence. Check completeness: another selected page may have failed. |
| `no_public_contact` | The selected crawl completed on valid pages without a contact. This does not mean the whole website has no contact details. |
| `blocked` | Access or a collection policy prevented the scan. |
| `needs_javascript` | The page provided evidence that JavaScript is needed to read its content. |
| `failed` | A technical failure or run limit prevented a completed result. |

Websites that the run did not reach have `completeness.state: "not_started"` and a stopping reason. An incomplete scan with no contact cannot produce `no_public_contact`. A contact found on a valid page remains visible if another page fails, with `completeness.state: "partial"` in the result.

The source URL shows where a value appeared. It does not prove that an email accepts mail, a phone number works or a linked profile belongs to a particular person.

Example captured from IANA on 29 October 2026 (archived QA run `L369T5QFB9U4BBEIW`, QA build `0.0.2`). The values below are the original dataset row.

```json
{
  "websiteKey": "iana.org",
  "homepageUrl": "https://www.iana.org/",
  "inputUrls": ["https://www.iana.org/"],
  "canonicalUrl": "https://www.iana.org/",
  "canonicalHostname": "www.iana.org",
  "status": "found",
  "reasonCode": null,
  "contacts": [
    {
      "type": "email",
      "value": "iana@iana.org",
      "sourceUrl": "https://www.iana.org/contact"
    }
  ],
  "pages": [
    {
      "requestedUrl": "https://www.iana.org/",
      "finalUrl": "https://www.iana.org/",
      "outcome": "ok",
      "reasonCode": null,
      "statusCode": 200
    },
    {
      "requestedUrl": "https://www.iana.org/contact",
      "finalUrl": "https://www.iana.org/contact",
      "outcome": "ok",
      "reasonCode": null,
      "statusCode": 200
    },
    {
      "requestedUrl": "https://www.iana.org/about",
      "finalUrl": "https://www.iana.org/about",
      "outcome": "ok",
      "reasonCode": null,
      "statusCode": 200
    }
  ],
  "completeness": {
    "state": "complete",
    "selectedPages": 3,
    "attemptedPages": 3,
    "successfulPages": 3,
    "reasonCode": null
  }
}
```

The restricted key-value store also holds `RESULTS.json` (rows and summary), `RUN-SUMMARY.json` and `BILLING-RECEIPT.json`. The summary includes `contactsReturned`, `outputLimits` and `resources`. Its resource counters include `requests`, response-body `bytes` and accounted `httpBytes`. The receipt describes billing separately from collection results.

### Run limits

| Limit | Maximum |
| --- | --- |
| Total run budget | 180 seconds from process start, including startup and 45 seconds reserved for finishing |
| Source collection time | 135 seconds minus elapsed startup time |
| HTTP attempts | 4,000, including robots checks, redirects and retries |
| Total response bodies | 50 MiB across all attempts |
| Accounted HTTP data | A separate 50 MiB budget |
| One page response | 512 KiB |
| Serialized results report | 15 MiB |
| Contacts per website | 50 |
| Contacts per run | 5,000 |
| Discovered links per page | 200 |
| Contact URL length | 2,048 characters |

HTTP accounting reserves 20 KiB before each attempt: 16 KiB for response headers and 4 KiB for outgoing headers. It adds actual body bytes and any observed socket bytes above those allowances. The header allowances are estimates; this counter does not measure TLS traffic or establish the platform bill.

If an output limit cuts a scan short, the result retains valid contacts and marks `completeness.state` as `partial`. Output stopping reasons include `CONTACT_LIMIT`, `LINK_LIMIT`, `CONTACT_URL_LIMIT`, `RUN_CONTACT_LIMIT` and `OUTPUT_BYTE_LIMIT`. The attempt and HTTP-accounting limits use `RUN_REQUEST_LIMIT` and `RUN_HTTP_BYTE_LIMIT`. Websites the run did not reach have `status: "failed"`, `completeness.state: "not_started"` and a stopping reason.

A run can reach a limit before it finishes the input list. Keep the completeness fields and stopping reasons when using the output in another workflow. The limits do not promise that all 1,000 websites or all 3 pages per website will be checked.

### When a run stops

If the maximum cost is too low for the website list, submit fewer websites or raise the limit.

Read **Scan summary** for the stopping reason and keep every website's completeness fields when retrying selected inputs. A new run has its own start fee.

If a run stops with `RECONCILIATION_REQUIRED`, open **Billing receipt** and resolve that receipt before starting another run. The start event may already have been charged even when source collection did not begin.

### Use it in n8n

Import the [original n8n workflow JSON](https://api.apify.com/v2/key-value-stores/yf88Pb9fE34tHz4uu/records/public-website-contacts-to-csv.json). It sends the whole URL list in one Actor request and produces a CSV with source URLs, website outcomes and completeness. Running one request per URL would create a separate run-start fee for each request.

1. In n8n, choose **Import from URL** and paste the JSON link above. You can also download the file and use **Import from File**.
2. Open **Run one Actor batch** and select your own **HTTP Header Auth** credential: header `Authorization`, value `Bearer ` followed by your Apify API token. Keep the token in the credential.
3. Edit **Sample website URLs**. Keep **Prepare one batch** before the Actor request: it collects up to 1,000 URL rows into one run and calculates a positive charge cap from both fees.
4. Run the workflow. Open **Download contacts CSV**, select binary field **data**, and download `website-contacts.csv`.

The three-URL sample caps Actor fees at $0.0515. The cap is a ceiling, not the final fee. The workflow keeps blank-contact rows for empty or failed websites, preserves partial outcomes and escapes leading spreadsheet formula markers. Contact data also passes through your n8n instance; review its access and execution-retention settings.

If the HTTP request times out or the connection breaks, inspect your Apify runs and billing receipt before executing again. A lost response does not prove that the earlier run failed to start. n8n hosting costs are separate from the Actor fees.

### Data and use

The Actor uses restricted Apify dataset and key-value storage for inputs and results. Submit public business website URLs without credentials or private pages.

A published business contact can still identify a person. Review the source before using a result. A public email address or contact form is not permission to send advertising.

# Actor input Schema

## `startUrls` (type: `array`):

Public HTTP or HTTPS business website URLs. Keep credentials, private pages, LinkedIn and secret query parameters out of this list. The same host with or without www counts once; paths and fragments do not create another website. This is a secret input field.

## `maxWebsites` (type: `integer`):

Maximum unique websites allowed in this run. If the input contains more, the run stops before requesting a website.

## `maxPagesPerWebsite` (type: `integer`):

Home page plus selected contact/about pages on the website's loaded hostname. This is a cap; a run can finish with fewer pages checked.

## `maxConcurrency` (type: `integer`):

Maximum websites processed at once. Request pacing, robots rules and shared run limits still apply.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.iana.org/"
  ],
  "maxWebsites": 1000,
  "maxPagesPerWebsite": 3,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

No description

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

No description

## `summary` (type: `string`):

No description

## `billingReceipt` (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 = {
    "startUrls": [
        "https://www.iana.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kamnev.apps/public-website-contacts").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 = { "startUrls": ["https://www.iana.org/"] }

# Run the Actor and wait for it to finish
run = client.actor("kamnev.apps/public-website-contacts").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 '{
  "startUrls": [
    "https://www.iana.org/"
  ]
}' |
apify call kamnev.apps/public-website-contacts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kamnev.apps/public-website-contacts"
        }
    }
}
```

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/jOwmV8jFiTeZNBpD1/builds/qFu0JUm6NJq9CZEN7/openapi.json
