Skip to main content
website-contacts-py license website-contacts-py release website-contacts-py build

Overview

The client library for Website Contacts API in Python language.

The minimum Python version is 3.6.

Installation

pip install website-contacts

Examples

Full API documentation available here

Create a new client

from websitecontacts import *

client = Client('Your API key')

Make basic requests

# Get contacts for a domain name.
response = client.get('youtube.com')
print(response)

# Get raw API response in XML format
raw_result = client.get_raw('bbc.com',
    output_format=Client.XML_FORMAT)

Advanced usage

Extra request parameters

result = client.get(
    'samsung.com',
    hard_refresh=True)

Response model overview

Response:
    - company_names: [str]
    - country_code: str
    - domain_name: str
    - emails: [Email]
        - description: str
        - email: str
    - meta_description: str
    - meta_title: str
    - phones: [Phone]
        - call_hours: str
        - description: str
        - phone_number: str
    - postal_addresses: [str]
    - social_facebook: str
    - social_instagram: str
    - social_linkedin: str
    - social_twitter: str
    - website_responded: bool

Sample response

{
'company_names': [
                   'Samsung Electronics Co. Ltd',
                   'Samsung Electronics America Inc',
                   'Samsung-Sanyo Electronics',
                   'Samsung Electronics Industry Co Ltd',
                   'Samsung US'],
'country_code': 'KR',
'domain_name': 'samsung.com',
'emails': [ {'description': '', 'email': 'ssvoc@samsung.com'},
            {'description': '', 'email': 'eco.sec@samsung.com'},
            {'description': '', 'email': 'ircontactus@samsung.com'}],
'meta_description': 'Discover the latest in electronic & smart appliance '
                    'technology with Samsung. Find the next big thing from '
                    'smartphones & tablets to laptops & tvs & more.',
'meta_title': 'Samsung US | Mobile | TV | Home Electronics | Home Appliances '
              '| Samsung US',
'phones': [ {'call_hours': '', 'description': '', 'phone_number': '24 36 40'},
            {'call_hours': '', 'description': '', 'phone_number': '82-2-2255-9000'},
            {'call_hours': '8 AM - 12 AM EST 7 days a week IT/ Computing 8 AM to 9 PM EST Mon to Fri', 'description': '', 'phone_number': '1-800-SAMSUNG 726-7864'}],
'postal_addresses': [],
'social_facebook': 'https://www.facebook.com/SamsungUS',
'social_instagram': 'https://instagram.com/samsungusa',
'social_linkedin': '',
'social_twitter': 'https://twitter.com/SamsungUS',
'website_responded': True
}

Changelog

1.0.0 (2021-09-17)

  • First release

Metadata

Release files for website-contacts 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for website-contacts 1.0.0
File Size Uploaded
website-contacts-1.0.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for website-contacts 1.0.0
File Interpreter ABI Platform
website_contacts-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / website-contacts-1.0.0.tar.gz

Download URL website-contacts-1.0.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
636559a2f757b98e579b433909a8e282f6ab1263263817d6c939a62ed8ae2751
BLAKE2b-256 checksum
How to use checksums
55e527f573c66e3be37f1b1e7eff587a9dde34b43ca8e514b5f5df9fab70e48e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / website_contacts-1.0.0-py3-none-any.whl

Download URL website_contacts-1.0.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e84ee36ff475801ccdcdd9c7ad17c56a6ad42822b28d553e6afb8612174cfd
BLAKE2b-256 checksum
How to use checksums
dc04ba7af32edef195740a1078327f4253297046005b789626c5fc22a790ff9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page