# AI Contact Details Scraper (`scraping_samurai/ai-contact-details-scraper`) Actor

AI-driven multi-pass crawler enriches each domain by auto-discovering /contact and /about pages, extracting, validating, and de-duplicating emails, phones, and social links via an LLM parsing layer. Outputs a single structured, machine-clean contact entity per business for downstream enrichment.

- **URL**: https://apify.com/scraping_samurai/ai-contact-details-scraper.md
- **Developed by:** [Scraping Samurai](https://apify.com/scraping_samurai) (community)
- **Categories:** AI, Automation, Lead generation
- **Security:** Full permissions
- **Stats:** 150 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 start run of the actors

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

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

## Contact Details Scraper

Extract **contact details** (emails, phone numbers, LinkedIn URLs) from any set of web pages using AI. This Actor crawls your target URLs, handles blocking automatically, and uses an advanced AI-powered extraction engine to transform messy page text into clean, structured outputs.

***

### ✨ Features

- **HTTP-first crawling** → Fast & efficient.
- **Automatic browser fallback** → If pages block bots or require JS rendering, the Actor switches to a full browser for reliable scraping.
- **AI-powered contact extraction** → Automatically extracts emails, phone numbers, and LinkedIn URLs from page text.
- **Robust anti-blocking** → Uses concurrency controls, proxy support, and session handling for maximum reliability.
- **Pay-per-event pricing** → You pay only for the work done:
  - Run start
  - Each URL processed via HTTP
  - Each URL escalated to browser

***

### 🚀 Use Cases

- **Lead generation** → Extract contact details for outreach.
- **Recruitment** → Find LinkedIn profiles and emails.
- **Market research** → Collect business contact info from websites.
- **Custom reports** → Get all available contact details from any set of URLs.

***

### 🛠️ Input Schema

```jsonc
{
  "urls": [
    "https://apify.com/",
    "https://crawlee.dev/"
  ]
}
```

**Fields:**

> **Note:** For each domain you provide, the actor will also automatically check the `/contact` and `/about` pages, even if you do not include them in your input URLs.

- `urls` *(array, required)* — List of page URLs to scrape.

> **Note:** Advanced crawling options (concurrency, retries, proxy settings, etc.) are set internally and are not user-configurable.

***

### 📊 Output Example

```jsonc
{
  "url": "https://crawlee.dev/",
  "content": "…extracted plain text from the page…",
  "contactDetails": {
    "emails": ["info@crawlee.dev"],
    "phones": ["+1-555-123-4567"],
    "linkedinUrls": ["https://linkedin.com/in/example"]
  },
  "status": "success"
}
```

**Each record contains:**

- `url` — Source page
- `content` — Extracted raw text
- `contactDetails` — Object with arrays for emails, phones, LinkedIn URLs
- `status` — `success`, `blocked`, or `error`

***

### 💵 Pricing Model

This Actor uses a **pay-per-event pricing** system. You only pay for what you actually use:

- **Run start (`run-start`)** → A flat fee charged once at the beginning of each run.
- **URL (HTTP) start (`url-http-start`)** → A fee charged for every URL processed with the fast HTTP crawler.
- **URL (Browser) start (`url-browser-start`)** → A higher fee charged only if the Actor needs to escalate a URL to full browser mode (Playwright).

***

### ⚡ Get Started Now

1. Add your URLs.
2. Run the Actor on Apify.
3. Get clean, structured contact details — fast, reliable, and AI-enhanced.

***

Turn **any website into a list of contact details** with one Actor run. Save hours of manual searching and let the scraper + AI do the heavy lifting.

# Actor input Schema

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

List of page URLs to scrape to find contacts. For each domain, the actor will also automatically check the /contact and /about pages, even if you do not include them in your input URLs.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com/",
    "https://crawlee.dev/"
  ]
}
```

# 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 = {
    "urls": [
        "https://apify.com/",
        "https://crawlee.dev/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraping_samurai/ai-contact-details-scraper").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 = { "urls": [
        "https://apify.com/",
        "https://crawlee.dev/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scraping_samurai/ai-contact-details-scraper").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 '{
  "urls": [
    "https://apify.com/",
    "https://crawlee.dev/"
  ]
}' |
apify call scraping_samurai/ai-contact-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraping_samurai/ai-contact-details-scraper"
        }
    }
}
```

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/dfU5MmIifN1mK8ow9/builds/23DJmMhjnMQdLnQij/openapi.json
