# Business Website Contact & Social Extractor (`quanmatrix/business-contact-social-extractor`) Actor

Extract public business emails, tel links, and major social profiles from company websites and likely contact/about pages. Returns one structured result per site with explicit issues and safe public-URL validation.

- **URL**: https://apify.com/quanmatrix/business-contact-social-extractor.md
- **Developed by:** [Rafael Barreto Haddad](https://apify.com/quanmatrix) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Business Website Contact & Social Extractor

Turn public company websites into clean contact-enrichment records without manually opening home, contact, and about pages. The Actor finds publicly displayed business emails, `tel:` phone links, and major social profiles, then returns one structured dataset item per website with explicit issue flags.

### Why use this Actor

Use it when a company website is your starting point and you need a predictable enrichment step for lead research, CRM preparation, supplier research, or market mapping. It keeps the scope deliberately focused on public website data and reports when useful fields are missing instead of silently returning an empty result.

### Key features

- Extracts public emails from visible HTML and `mailto:` links.
- Extracts click-to-call phone values from `tel:` links.
- Detects LinkedIn, Facebook, Instagram, X/Twitter, YouTube, TikTok, GitHub, and Pinterest profiles.
- Can follow likely contact/about/support pages on the same website.
- Returns scanned URLs, page count, HTTP status, and issue flags.
- Blocks localhost, private IP ranges, and unsafe redirect targets.
- Produces one structured result per input website for easy automation.

### Input

Provide a list of public company website URLs. Optional controls let you limit the number of sites, pages scanned per site, and request timeout.

```json
{
  "urls": ["https://www.python.org"],
  "max_pages_per_site": 2
}
```

### Output

Each website produces a record containing the normalized/final URL, success status, page title, discovered emails, phone links, grouped social profiles, scanned URLs, number of pages scanned, and explicit issues such as `no_public_email_found`.

### Example

```json
{
  "url": "https://www.python.org",
  "ok": true,
  "emails": [],
  "phones": [],
  "social_links": {"github": ["https://github.com/python"]},
  "pages_scanned": 2,
  "issues": ["no_public_email_found", "no_tel_link_found"]
}
```

### Use cases

- B2B lead enrichment from known company domains
- CRM and sales-research preparation
- Supplier and partner research
- Social-profile discovery for business intelligence
- Website contact-data QA
- Structured enrichment pipelines in Apify, Make, n8n, or custom systems

### Pricing

Pay per result. The current price is **$0.003 per processed website**, equivalent to **$3 per 1,000 results** before any platform-specific charges shown by Apify.

### Limitations

- Only public website content is processed.
- Phone extraction focuses on explicit `tel:` links; arbitrary phone-like text is intentionally not guessed.
- JavaScript-rendered contact information may not be visible to this lightweight fetcher.
- Anti-bot systems, authentication, CAPTCHAs, or blocked pages can reduce available data.
- The Actor does not verify ownership, deliverability, or accuracy of discovered contact details.

### Responsible use

Use collected data in accordance with applicable law, website terms, and privacy requirements. The Actor does not bypass authentication or access private data.

# Actor input Schema

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

Public HTTP/HTTPS websites to inspect.

## `max_sites` (type: `integer`):

Process at most this many URLs from the list.

## `max_pages_per_site` (type: `integer`):

Homepage plus likely contact/about pages on the same domain.

## `timeout_secs` (type: `integer`):

Maximum seconds to wait for each public website request.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org"
  ],
  "max_sites": 20,
  "max_pages_per_site": 2,
  "timeout_secs": 15
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("quanmatrix/business-contact-social-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("quanmatrix/business-contact-social-extractor").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 '{}' |
apify call quanmatrix/business-contact-social-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quanmatrix/business-contact-social-extractor"
        }
    }
}

```

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/UYS6Lq7osIFS5RgrA/builds/emGj8XZPP4mQRezud/openapi.json
