New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

website-contacts-extractor

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

website-contacts-extractor

Website Contacts Extractor allows you to easily extract contact information (emails and social media links) from any website.

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

Website Contacts Extractor

The Website Contacts Extractor is an API client for the Website Contacts Extractor that allows you to easily extract contact information (emails and social media links) from any website. It gets these details from the "Contact Us" pages of websites.

Installation

Install the package using npm:

npm install website-contacts-extractor

Usage

To use the library, you need to import the Api class, create an instance with your API key, and then call the getContacts method.

import Api from 'website-contacts-extractor';

async function main() {
    // Create an instance of the API with your API key
    const api = new Api({
        apiKey: 'YOUR_API_KEY',
        createResponseFiles: true, // Optional: saves responses to files for debugging, remove this in production.
    });
    const contacts = await api.getContacts('https://www.apple.com/');
}

main();

Parameters

The Api constructor accepts the following parameters:

  • apiKey (string, required): Your API key for the service.
  • createResponseFiles (boolean, optional, default: false): If set to true, the library will save the JSON response from the API to a file in the output/responses directory. Useful for debugging. Remove this parameter in production.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Keywords

website-contacts-extractor

FAQs

Package last updated on 08 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts