pricing background

Contact Details API Documentation

Contact Details API

ASK AI
The WhoisFreaks Contact Details API returns the emails, phone numbers and fax numbers a website publishes for itself. Send a hostname and get back one list of contacts, each with the page it was found on and the dates it was first and last seen in our crawl. Phone and fax numbers come in international E.164 form (+18554770748).

Only the site's own contacts are returned. Emails on other companies' domains, contacts taken from long lists and directories, values shared by many websites, and people-search and public-records sites are filtered out before the response is built. See Which contacts are returned for the rules.

Authorization

You can make authorized requests to our API by passing API key as a query parameter. To get your API key, login to our billing dashboard and get your API key! If your API key has been compromised, you can change it by clicking on reset button in billing dashboard.

Important References

  • For details on request limits and handling rate limiting, refer here
  • For a complete overview of API credit consumption and usage, refer here

Query Parameters

Required
  • apiKey
    Get your API key from our billing dashboard.
  • domainName
    The website to look up, e.g. cloudflare.com or shop.example.com. A full URL (https://www.example.com/contact) and internationalized names (münchen.de) are accepted too. A leading www. is removed, so www.example.com and example.com return the same record; any other subdomain is looked up as its own record.
Optional
  • type
    email, phone or fax (any case). Returns only that type, best first, with only that type's total. Leave it out to get all three types in one list, with a total for each.
  • page
    Page number, starting at 1. Each page holds up to 100 contacts. If you don't pass the page parameter, the default page is 1.

Which contacts are returned

A page scraper returns every address and number on a page, including the ones that belong to someone else. The Contact Details API applies these rules first, so the response holds the site's own contacts:

  • The site's own emails are always kept. An address on the site's own domain ([email protected] for cloudflare.com) is returned whatever page it was found on.
  • Other companies' emails are dropped. An address on a different company's domain is that company's contact, not this site's.
  • Free-mail only when the site has no own email. Addresses like Gmail or Outlook are returned only for a site that publishes no address on its own domain, and not when the site lists many of them (a platform or a listing).
  • Long lists are not contact blocks. Free-mail addresses, phones and faxes found only on pages that list more than 10 contacts (directories, listings, member pages) are left out.
  • Shared values are hidden. A free-mail address that appears on more than 5 websites, or a number on more than 20, belongs to an agency, a platform or a template, not to this site.
  • Private-person sites are excluded. People-search, reverse-phone, inmate and public-records sites are not included at all, and comment sections are skipped.
  • Fake and broken values are removed. Spam-trap and no-reply addresses, invalid numbers and placeholder numbers (like 555 numbers from films) never reach the response.
  • Numbers are dialable. A local number gets its country code from the website. A number that is not valid for that country, or whose country is unknown, is left out.

Request

shellnodejsjavapythonphprubyjscsharpgocswiftjquery
SHELL
curl -X GET "https://api.whoisfreaks.com/v1.0/contact-details?apiKey=API_KEY&domainName=cloudflare.com"

Response

Loading response...

Fields Description

Fields
Details
Data Type
Example
domain_name
The hostname that was looked up: lowercased, with a leading www. removed and an internationalized name in its xn-- form.
string
cloudflare.com
page
The page returned, starting at 1.
integer
1
total_pages
Number of pages for the contacts you asked for (all types, or only the type you passed), at up to 100 contacts per page.
integer
1
total_emails
Number of emails the site has. Left out when type is phone or fax.
integer
37
total_phones
Number of phone numbers the site has. Left out when type is email or fax.
integer
4
total_faxes
Number of fax numbers the site has. Left out when type is email or phone.
integer
0
contacts
The site's contacts on this page. Without type, all three types are mixed in a fixed order that is the same on every request, so paging never repeats or skips a contact. With type, they are ranked best first: the site's own emails, then values found on contact, about, legal, privacy, terms or support pages, then the most recently seen.
array
type
What the value is.
string
email
value
The email address in lowercase, or the phone or fax number in E.164 form: a +, the country code and the number, with no spaces.
string
source_page
A page of the site the value was found on. Open it to see the value in context.
string (URL)
https://www.cloudflare.com/fr-fr/enterpriseterms/
first_seen
Date of the first crawl the value was seen in.
string (YYYY-MM-DD)
2022-01-16
last_seen
Date of the latest crawl the value was seen in. An old date means the site may no longer show it.
string (YYYY-MM-DD)
2026-06-18

400 Error Messages

Every 400 response has error "Invalid Param Exception" and one of these messages. It is not charged.

When
message
domainName is missing
Please provide domainName param. [For Technical Support: [email protected]]
domainName is not a valid domain name
Please provide domainName param with correct value, e.g. example.com or shop.example.com. [For Technical Support: [email protected]]
type is not email, phone or fax
Please provide type param with correct value: email, phone or fax. Leave it out for all contacts. [For Technical Support: [email protected]]
page is not a whole number starting at 1
Please provide page param with correct value. It must be a whole number starting at 1. [For Technical Support: [email protected]]
page is past the last page
The page param is beyond the last page of results. Total pages: 1. [For Technical Support: [email protected]]

Pagination

Each page holds up to 100 contacts. To read a site with more:

  1. Read total_pages from the first response.
  2. Send the same request with page=2, page=3 and so on, up to total_pages. Keep the same type on every page.

The order of the contacts is the same on every request, so pages never repeat or skip a contact. A page past the last one returns 400 with the number of pages in the message.