# Contact Scraper - Website Emails, Phones & Socials

> Extract emails, phone numbers and social media profiles (LinkedIn, Facebook, Instagram, X, YouTube, TikTok...) from any list of company websites or domains. One clean row per website, contact-page aware, email provider (MX) detection. Pay only for websites with contacts.

- Category: Lead & company data
- Price: $4 per 1,000 × website with contacts, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/website-contact-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/website-contact-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~website-contact-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/website-contact-scraper (appears as `wrenfield-data--website-contact-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~website-contact-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["apify.com", "https://www.katzsdelicatessen.com", "levainbakery.com"], "maxPagesPerDomain": 6, "extractPhones": true, "extractSocials": true, "defaultCountry": "US", "onlyRoleEmails": false, "onlyOwnDomainEmails": false, "checkMx": true, "respectRobotsTxt": true, "maxConcurrency": 30, "proxyMode": "fallback", "proxyConfiguration": {"useApifyProxy": true}, "residentialFallback": false}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `urls` | array |  |  | Company websites or bare domains, one per line: acme.com, https://www.acme.com or a specific page like acme.com/contact. The Actor always starts at the homepage and then visits the pages most likely to list contacts (Contact, About, Team, Impressum, Locations...). Duplicates are skipped. |
| `datasetId` | string |  |  | ID of an Apify dataset to enrich, e.g. from Google Maps Scraper or Company Name to Domain Finder. The Actor reads each item's website from the field below and adds sourceName / sourceIndex so you can join the results back. |
| `datasetUrlField` | string |  |  | Field holding the website in that dataset. Leave empty to auto-detect (website, url, domain, companyWebsite...). |
| `maxPagesPerDomain` | integer |  | `6` | Homepage plus the highest-ranked contact/about/team/legal pages. 4-8 finds most contacts; more pages = slower, never more expensive per website. |
| `extractPhones` | boolean |  | `true` | Phone numbers from tel: links, structured data and text next to a phone label, validated and normalised to E.164 (+14155550132). |
| `extractSocials` | boolean |  | `true` | LinkedIn, Facebook, Instagram, X/Twitter, YouTube, TikTok, Pinterest, GitHub, Threads, WhatsApp, Telegram, Discord, Yelp and Trustpilot profile links. Share buttons and post links are ignored. |
| `defaultCountry` | string |  | `"US"` | 2-letter country used to read local phone numbers (without +country code) on sites with a generic TLD like .com. Country TLDs (.de, .co.uk...) and the page language (en-GB) override it. |
| `onlyRoleEmails` | boolean |  | `false` | Drop personal addresses (jane.doe@...) and free-mail addresses. Useful for GDPR-sensitive outreach. |
| `onlyOwnDomainEmails` | boolean |  | `false` | Drop addresses on other domains (agencies, parent companies, gmail.com...). |
| `checkMx` | boolean |  | `true` | DNS check: drops emails whose domain cannot receive mail, and adds the website's email provider (Google Workspace, Microsoft 365, Zoho...) and security gateway (Proofpoint, Mimecast...). No emails are sent. |
| `respectRobotsTxt` | boolean |  | `true` | Skip pages the website's robots.txt disallows for all crawlers. Websites that disallow everything return a free robots_disallowed row. |
| `maxConcurrency` | integer |  | `30` | How many websites are crawled at the same time. |
| `maxResults` | integer |  |  | Stop after this many paid results (websites with at least one contact). Leave empty for no limit. You can also cap spending with the run's maximum cost. |
| `proxyMode` | string |  | `"direct"` | Pages are fetched directly. If a website blocks the Actor (bot check, 403 or 429), the Actor honours a short Retry-After once, then stops requesting that website and reports it with errorType: blocked. It never switches to another proxy to get around a block. |
| `proxyConfiguration` | object |  | `{"useApifyProxy": true}` | Used only when When to use the proxy is Always. Apify datacenter proxy is included in the price. |

## Example input

```json
{
  "urls": [
    "apify.com",
    "https://www.katzsdelicatessen.com",
    "levainbakery.com"
  ],
  "maxPagesPerDomain": 6,
  "extractPhones": true,
  "extractSocials": true,
  "defaultCountry": "US",
  "onlyRoleEmails": false,
  "onlyOwnDomainEmails": false,
  "checkMx": true,
  "respectRobotsTxt": true,
  "maxConcurrency": 30,
  "proxyMode": "fallback",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": false
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `input` | string | Website or domain as given |
| `domain` | string | Registrable domain (after redirects) |
| `url` | string | Homepage URL after redirects |
| `status` | string | ok (charged) \| no_contacts \| error \| invalid_input \| robots_disallowed (all free) |
| `companyName` | string | Name from structured data, og:site_name or page title |
| `primaryEmail` | string | Best email: own domain, explicit mailto, contact page first |
| `emails` | array | All emails found, best first |
| `primaryPhone` | string | Best phone in E.164 |
| `phones` | array | All phone numbers in E.164 |
| `linkedin` | string | LinkedIn company/profile URL |
| `facebook` | string | Facebook page |
| `instagram` | string | Instagram profile |
| `twitter` | string | X / Twitter profile |
| `youtube` | string | YouTube channel |
| `tiktok` | string | TikTok profile |
| `pinterest` | string | Pinterest profile |
| `github` | string | GitHub org/user |
| `threads` | string | Threads profile |
| `whatsapp` | string | WhatsApp click-to-chat link |
| `telegram` | string | Telegram link |
| `discord` | string | Discord invite |
| `yelp` | string | Yelp business page |
| `trustpilot` | string | Trustpilot review page |
| `socialProfiles` | array | All social profile URLs |
| `address` | string | Postal address from structured data |
| `contactPageUrl` | string | Contact / Impressum page found |
| `hasContactForm` | boolean | A contact form (email + message) was found |
| `emailProvider` | string | Mail provider of the domain from MX records |
| `emailSecurityGateway` | string | Email security gateway (Proofpoint, Mimecast...) |
| `mxRecords` | array | MX hosts |
| `emailDetails` | array | Per email: type (role/personal/free), onDomain, source, page, domainAcceptsMail |
| `phoneDetails` | array | Per phone: international format, country, source, page |
| `title` | string | Homepage title |
| `description` | string | Meta description |
| `language` | string |  |
| `logo` | string | Logo URL from structured data |
| `legalName` | string | Legal name from structured data |
| `pagesCrawled` | integer | Pages fetched |
| `crawledUrls` | array | Pages fetched |
| `pagesFailed` | integer | Pages that failed |
| `proxyUsed` | array | Proxy tiers used, if any |
| `redirectedFrom` | string | Original domain if the website redirected to another domain |
| `sourceName` | string | Name from the enriched dataset item |
| `sourceIndex` | integer | Index in the enriched dataset |
| `errorType` | string | dns_not_found \| timeout \| connection_failed \| blocked \| http_error \| ssl_error \| not_html \| invalid_input \| robots_disallowed |
| `error` | string | Why there are no contacts |
| `scrapedAt` | string | UTC timestamp |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
