Anyone can do WHOIS lookups through the whois command line tool or web based interfaces direct from the registrar but there are query limits which make commercial use difficult e.g. bulk checking of expiry dates on all your existing domains is not possible once you have more than x domains, where x is whatever thw WHOIS server query limit is.
I have found Domain Search XML API but are there any other providers of WHOIS APIs?