WHOIS is a good service to find out who is behind the domain. It usually reveals the name and emails address of the website owner.
Of course, there is a WHOIS API. One of the most popular ones is from whoisxmlapi. However, pricing starts from $15 for 1,000 queries.
If you want free service, then you might want to check out Adam's open source Whois API.