# Enrich Agency Domains Only With Valid Emails

**Use case:** 

Crawls B2B company websites and internal contact/legal pages in bulk while filtering strictly to domains where a valid public business email was extracted, maximizing clean deliverability for Clay, Smartlead, and n8n pipelines.

## Input

```json
{
  "websites": [
    "linear.app",
    "resend.com",
    "vercel.com",
    "raycast.com",
    "dub.co"
  ],
  "crawlContactPages": true,
  "onlyWithEmail": true,
  "maxResults": 50
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "pageTitle": {
    "label": "Page Title",
    "format": "string"
  },
  "primaryEmail": {
    "label": "Primary Email",
    "format": "string"
  },
  "emails": {
    "label": "All Emails",
    "format": "array"
  },
  "primaryPhone": {
    "label": "Primary Phone",
    "format": "string"
  },
  "linkedinUrl": {
    "label": "LinkedIn",
    "format": "string"
  },
  "twitterUrl": {
    "label": "X / Twitter",
    "format": "string"
  },
  "cms": {
    "label": "CMS / Framework",
    "format": "string"
  },
  "detectedTech": {
    "label": "Pixels & Tech Stack",
    "format": "array"
  },
  "agencyPitchHooks": {
    "label": "Sales Pitch Hooks",
    "format": "array"
  },
  "leadQualityScore": {
    "label": "Quality Score (0-100)",
    "format": "integer"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Website Email, Phone, Socials, Legal Notice & Tech Scraper Actor is ready to run with the inputs already set for "Enrich Agency Domains Only With Valid Emails". [Sign up or log in](https://console.apify.com/create-task-from-example/P2gUnmXEVbbU6Ragp) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Enrich Agency Domains Only With Valid Emails" task

The Website Email, Phone, Socials, Legal Notice & Tech Scraper Actor will start running based on the input automatically. You can also change all the input fields, like company domains or urls, crawl internal contact / about / legal pages, and more, to match your specific use case.

### 3. Receive the "Enrich Agency Domains Only With Valid Emails" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as domain, page title, primary email, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Enrich Agency Domains Only With Valid Emails" task via API](https://apify.com/grimbles/b2b-website-contact-tech-scraper.md).

## FAQ

### What does setting onlyWithEmail to true change in this task?

Enabling onlyWithEmail makes the Bulk Domain Email Enrichment task return only domains where at least one valid public email address was found on the site.

### How are invalid asset strings filtered out from extracted emails?

The Bulk Domain Email Enrichment task strips image, CSS, JS, and placeholder strings so only clean business emails appear in primaryEmail and emails.

### Can I connect this domain enricher directly inside Clay or n8n?

Invoke this Bulk Domain Email Enrichment task via HTTP API or the n8n Apify node by passing a dynamic websites array from your prospect table.

### What additional fields accompany each enriched email?

Alongside primaryEmail, each item returns primaryPhone, linkedinUrl, twitterUrl, cms, detectedTech, agencyPitchHooks, and leadQualityScore.

## About this Actor

This example demonstrates how to use [Website Email, Phone, Socials, Legal Notice & Tech Scraper](https://apify.com/grimbles/b2b-website-contact-tech-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/grimbles/b2b-website-contact-tech-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/grimbles/b2b-website-contact-tech-scraper.md

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`).
