# Website Contact + Social Link Extractor (`isotonic/website-contact-social-link-extractor`) Actor

Extracts public emails, phones, contact pages, and social profile links from websites.

- **URL**: https://apify.com/isotonic/website-contact-social-link-extractor.md
- **Developed by:** [Brian Keefe](https://apify.com/isotonic) (community)
- **Categories:** Lead generation, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## website-contact-social-link-extractor

Production-oriented Apify Actor for shallow crawling of public websites to extract contact details, company clues, and social profile links.

It is intentionally narrow:
- Public data only
- No login, no session bypassing, no protected pages
- Best suited for company websites, agency sites, startup sites, directories, and public landing pages

### What It Extracts

- Emails
- Phone numbers
- Contact form URLs
- Contact page URLs
- About, team, and legal/privacy page URLs
- Social profile URLs for LinkedIn, X, Twitter, Facebook, Instagram, YouTube, TikTok, and GitHub
- Schema.org organization clues and company-name hints
- Page title and meta description
- Confidence score and crawl metadata
- Source evidence showing where each signal was found

### Input

Use `startUrls`, `domains`, or row-oriented inputs: `googleMapsRows`, `businessRows`, `shopifyRows`, `serpRows`, and generic `rows`.

Supported row fields are intentionally CSV-friendly: `website`, `url`, `domain`, `link`, `displayedLink`, `storeUrl`, `shopDomain`, `shopifyDomain`, and `sourceUrl`.

All seeds are normalized to public site homepages and deduped by site.

Example:

```json
{
  "googleMapsRows": [{ "name": "Example Co", "website": "https://example.com" }],
  "serpRows": [{ "title": "Example Org Contact", "link": "https://example.org/contact" }],
  "rows": [{ "domain": "example.net" }],
  "maxPagesPerSite": 8,
  "maxDepth": 1,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 20
}
````

See `examples/sample-input.json`.

### Output

The actor writes one record per site to the Apify Dataset.

Example:

```json
{
  "inputSource": "https://example.com",
  "siteUrl": "https://example.com/",
  "domain": "example.com",
  "title": "Example Company",
  "metaDescription": "Example Company public contact page.",
  "emails": ["hello@example.com"],
  "phones": ["+14155550101"],
  "contactFormUrls": ["https://example.com/contact"],
  "contactPageUrls": ["https://example.com/contact"],
  "aboutPageUrls": ["https://example.com/about"],
  "teamPageUrls": ["https://example.com/team"],
  "legalPageUrls": ["https://example.com/privacy"],
  "socialProfiles": {
    "linkedin": ["https://www.linkedin.com/company/example-company"],
    "x": ["https://x.com/examplecompany"],
    "twitter": [],
    "facebook": [],
    "instagram": [],
    "youtube": [],
    "tiktok": [],
    "github": []
  },
  "schemaOrg": {
    "types": ["Organization"],
    "names": ["Example Company LLC"],
    "sameAs": ["https://www.linkedin.com/company/example-company"]
  },
  "companyClues": {
    "names": ["Example Company", "Example Company LLC"],
    "legalMentions": ["Example Company LLC"]
  },
  "pagesCrawled": 4,
  "crawl": {
    "pagesCrawled": 4,
    "maxPagesPerSite": 8,
    "maxDepth": 1,
    "sameHostOnly": true,
    "shallow": true
  },
  "confidenceScore": 0.95,
  "evidence": {
    "emails": [{ "value": "hello@example.com", "sourceUrl": "https://example.com/contact" }]
  }
}
```

See `examples/sample-output.json`.

### Crawl Strategy

- Seeds each site with `/`, `/contact`, `/contact-us`, `/about`, `/about-us`, and `/team`
- Follows same-host links only
- Prioritizes contact/about/team/legal-like links
- Stays shallow through `maxDepth`
- Caps work per site with `maxPagesPerSite`
- Surfaces crawl metadata in each result for easier QA downstream

### Local Development

Install dependencies:

```bash
npm install
```

Run the actor locally with Apify local storage:

```bash
npm start
```

Run tests:

```bash
npm test
```

Run deterministic smoke verification against a local HTML fixture server:

```bash
npm run smoke
```

Run with Apify CLI:

```bash
npx --yes apify-cli run
```

### Notes

- The actor does not attempt to bypass access controls.
- The actor is intended for generic public website extraction, not scraping protected platforms.
- Some websites hide contact details behind JavaScript apps or images; those cases may produce partial results.

# Actor input Schema

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

Seed URLs to crawl. Typically website homepages.

## `domains` (type: `array`):

Domain names to crawl. The actor normalizes them to public site URLs.

## `googleMapsRows` (type: `array`):

Rows from Google Maps or local business exports. Supported fields include website, url, and domain.

## `businessRows` (type: `array`):

Generic business records. Supported fields include website, url, domain, or sourceUrl.

## `shopifyRows` (type: `array`):

Shopify or storefront records. Supported fields include website, domain, storeUrl, shopDomain, or shopifyDomain.

## `serpRows` (type: `array`):

Search result rows. Supported fields include link, displayedLink, website, url, or domain.

## `rows` (type: `array`):

Generic CSV-like records with website, url, domain, link, displayedLink, or sourceUrl fields.

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

Maximum number of public pages to inspect per site during the shallow crawl.

## `maxDepth` (type: `integer`):

Maximum same-host link depth from each seed URL.

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

Crawler concurrency limit.

## `requestTimeoutSecs` (type: `integer`):

Per-page timeout in seconds for public page fetches.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.com"
    }
  ],
  "domains": [
    "example.com"
  ],
  "googleMapsRows": [
    {
      "name": "Example Coffee",
      "website": "https://example.com"
    }
  ],
  "businessRows": [
    {
      "company": "Example Org",
      "domain": "example.org"
    }
  ],
  "shopifyRows": [
    {
      "shopDomain": "example-store.com"
    }
  ],
  "serpRows": [
    {
      "title": "Example Result",
      "link": "https://example.net/contact"
    }
  ],
  "rows": [
    {
      "website": "https://example.io"
    }
  ],
  "maxPagesPerSite": 8,
  "maxDepth": 1,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 20
}
```

# 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": [
        {
            "url": "https://example.com"
        }
    ],
    "domains": [
        "example.com"
    ],
    "googleMapsRows": [
        {
            "name": "Example Coffee",
            "website": "https://example.com"
        }
    ],
    "businessRows": [
        {
            "company": "Example Org",
            "domain": "example.org"
        }
    ],
    "shopifyRows": [
        {
            "shopDomain": "example-store.com"
        }
    ],
    "serpRows": [
        {
            "title": "Example Result",
            "link": "https://example.net/contact"
        }
    ],
    "rows": [
        {
            "website": "https://example.io"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("isotonic/website-contact-social-link-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 = {
    "startUrls": [{ "url": "https://example.com" }],
    "domains": ["example.com"],
    "googleMapsRows": [{
            "name": "Example Coffee",
            "website": "https://example.com",
        }],
    "businessRows": [{
            "company": "Example Org",
            "domain": "example.org",
        }],
    "shopifyRows": [{ "shopDomain": "example-store.com" }],
    "serpRows": [{
            "title": "Example Result",
            "link": "https://example.net/contact",
        }],
    "rows": [{ "website": "https://example.io" }],
}

# Run the Actor and wait for it to finish
run = client.actor("isotonic/website-contact-social-link-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    {
      "url": "https://example.com"
    }
  ],
  "domains": [
    "example.com"
  ],
  "googleMapsRows": [
    {
      "name": "Example Coffee",
      "website": "https://example.com"
    }
  ],
  "businessRows": [
    {
      "company": "Example Org",
      "domain": "example.org"
    }
  ],
  "shopifyRows": [
    {
      "shopDomain": "example-store.com"
    }
  ],
  "serpRows": [
    {
      "title": "Example Result",
      "link": "https://example.net/contact"
    }
  ],
  "rows": [
    {
      "website": "https://example.io"
    }
  ]
}' |
apify call isotonic/website-contact-social-link-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=isotonic/website-contact-social-link-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Website Contact + Social Link Extractor",
        "description": "Extracts public emails, phones, contact pages, and social profile links from websites.",
        "version": "0.1",
        "x-build-id": "TMCgLwJwftVwIxlzV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/isotonic~website-contact-social-link-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-isotonic-website-contact-social-link-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/isotonic~website-contact-social-link-extractor/runs": {
            "post": {
                "operationId": "runs-sync-isotonic-website-contact-social-link-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/isotonic~website-contact-social-link-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-isotonic-website-contact-social-link-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Seed URLs to crawl. Typically website homepages.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "Domain names to crawl. The actor normalizes them to public site URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "googleMapsRows": {
                        "title": "Google Maps Rows",
                        "type": "array",
                        "description": "Rows from Google Maps or local business exports. Supported fields include website, url, and domain.",
                        "items": {
                            "type": "object"
                        }
                    },
                    "businessRows": {
                        "title": "Business Rows",
                        "type": "array",
                        "description": "Generic business records. Supported fields include website, url, domain, or sourceUrl.",
                        "items": {
                            "type": "object"
                        }
                    },
                    "shopifyRows": {
                        "title": "Shopify Rows",
                        "type": "array",
                        "description": "Shopify or storefront records. Supported fields include website, domain, storeUrl, shopDomain, or shopifyDomain.",
                        "items": {
                            "type": "object"
                        }
                    },
                    "serpRows": {
                        "title": "SERP Rows",
                        "type": "array",
                        "description": "Search result rows. Supported fields include link, displayedLink, website, url, or domain.",
                        "items": {
                            "type": "object"
                        }
                    },
                    "rows": {
                        "title": "Generic Rows",
                        "type": "array",
                        "description": "Generic CSV-like records with website, url, domain, link, displayedLink, or sourceUrl fields.",
                        "items": {
                            "type": "object"
                        }
                    },
                    "maxPagesPerSite": {
                        "title": "Max Pages Per Site",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of public pages to inspect per site during the shallow crawl.",
                        "default": 8
                    },
                    "maxDepth": {
                        "title": "Max Crawl Depth",
                        "minimum": 0,
                        "maximum": 3,
                        "type": "integer",
                        "description": "Maximum same-host link depth from each seed URL.",
                        "default": 1
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 32,
                        "type": "integer",
                        "description": "Crawler concurrency limit.",
                        "default": 10
                    },
                    "requestTimeoutSecs": {
                        "title": "Request Timeout Seconds",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Per-page timeout in seconds for public page fetches.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
