# Website Social Scraper Api (`oussemafr/website-social-scraper-api`) Actor

You will get access to the Website Contact Details - Get Contact Info Efficiently!

- **URL**: https://apify.com/oussemafr/website-social-scraper-api.md
- **Developed by:** [Oussema FRIKHA](https://apify.com/oussemafr) (community)
- **Categories:** Lead generation
- **Security:** Limited permissions
- **Stats:** 455 total users, 2 monthly users, 0.0% runs succeeded, 11 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/actors/running/actors-in-store.md#pay-per-usage

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

**Introduction:**

Looking to extract contact information from websites? Our Contact Details Scraper can help! This powerful tool crawls websites and extracts email addresses, phone numbers, social media profiles, and more. Read on to learn how it works and how you can benefit from using it.

***

**Key Features:**

Extracts email addresses, phone numbers, LinkedIn profiles, Twitter handles, Instagram profiles, Facebook profiles/pages, and YouTube accounts.
Ideal for lead generation, marketing, and sales teams.
Automates data collection, saving time and effort.
Integrates with spreadsheets and existing workflows for easy data management.
How to Use:
Follow our step-by-step guide to start using Contact Details Scraper today. Simply input the website URLs you want to crawl, set your preferences, and let the tool do the rest.

***

**Input Options:**

- **startUrls**: URL to start with. Use this field when you have a single URL as the starting point. For multiple URLs, use the `start_urls` field.
- **maxLinks**: Control the maximum number of links to be visited during the crawl.
- **dedupe**: Enable deduplication to consolidate all unique results into one output dictionary. This prevents duplicate URLs from being processed again, ensuring that each URL's data is included in the output only once.

***

**Output and dataset sample:**

When **dedupe is set to False**, the resulting dataset contains individual records for each page crawled, formatted as follows:

```
[
  {
    "link": "http://www.elielcycling.com",
    "baseUrl": "http://www.elielcycling.com",
    "originalStartUrl": "http://www.elielcycling.com",
    "emails": [],
    "phones": [],
    "descriptions": [],
    "linkedins": [],
    "twitters": [],
    "instagrams": [
      "http://instagram.com/elielcycling"
    ],
    "facebooks": [
      "https://www.facebook.com/elielcycling"
    ],
    "youtubes": [],
    "tiktoks": [],
    "telegrams": [],
    "statusCode": 200,
    "pageType": [
      "home_page"
    ]
  },
  {
    "link": "http://www.elielcycling.com/pages/contact-us",
    "baseUrl": "http://www.elielcycling.com",
    "originalStartUrl": "http://www.elielcycling.com",
    "emails": [
      "orders@elielcycling.com",
      "custom@elielcycling.com"
    ],
    "phones": [
      "+18587046412"
    ],
    "descriptions": [],
    "linkedins": [],
    "twitters": [],
    "instagrams": [
      "http://instagram.com/elielcycling"
    ],
    "facebooks": [
      "https://www.facebook.com/elielcycling"
    ],
    "youtubes": [],
    "tiktoks": [],
    "telegrams": [],
    "statusCode": 200,
    "pageType": [
      "contact"
    ]
  }
]
```

If **dedupe is set to True**, the output consolidates all records into a single output, combining contact information, social media links, and other details from all pages crawled, formatted as follows:

```
[
  {
    "url": "http://www.elielcycling.com",
    "emails": [
      "orders@elielcycling.com",
      "custom@elielcycling.com"
    ],
    "phones": [
      "+18587046412"
    ],
    "linkedins": [],
    "twitters": [],
    "instagrams": [
      "http://instagram.com/elielcycling"
    ],
    "facebooks": [
      "https://www.facebook.com/elielcycling"
    ],
    "youtubes": [],
    "tiktoks": [],
    "telegrams": [],
    "descriptions": [],
    "pageType": [
      "home_page",
      "contact"
    ],
    "statusCode": 200
  }
]

```

***

**Conclusion:**

Contact Details Scraper is a valuable tool for extracting contact information from websites. Whether for lead generation or data collection, this tool can streamline your workflow and provide valuable insights. Start using it today to boost your marketing and sales efforts!

# Actor input Schema

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

URLs to start with.

## `maxLinks` (type: `integer`):

The maximum number of links to extract from the start URL.

## `dedupe` (type: `boolean`):

Enable deduplication to consolidate all unique results into one output dictionary. This prevents duplicate URLs from being processed again, ensuring that each URL's data is included in the output only once.

## `minConcurrency` (type: `integer`):

Minimum number of concurrent requests the crawler should make.

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

Maximum number of concurrent requests the crawler should make.

## `maxRequestRetries` (type: `integer`):

Maximum number of times the crawler should retry a failed request.

## `proxyUrls` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "http://www.elielcycling.com"
    }
  ],
  "maxLinks": 5,
  "minConcurrency": 10,
  "maxConcurrency": 50,
  "maxRequestRetries": 3,
  "proxyUrls": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": "http://www.elielcycling.com"
        }
    ],
    "maxLinks": 5,
    "proxyUrls": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("oussemafr/website-social-scraper-api").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": "http://www.elielcycling.com" }],
    "maxLinks": 5,
    "proxyUrls": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("oussemafr/website-social-scraper-api").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 '{
  "startUrls": [
    {
      "url": "http://www.elielcycling.com"
    }
  ],
  "maxLinks": 5,
  "proxyUrls": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call oussemafr/website-social-scraper-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oussemafr/website-social-scraper-api"
        }
    }
}
```

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/QAKrfXwAcbmcWYnSo/builds/LDFBizCXkC8pk5lU3/openapi.json
