Bulk Whois API provides Whois records for a list of Domains/IPs via a single REST API query.
Here you'll find examples of querying the API implemented in multiple languages.
You'll need a WhoisXmlApi account to authenticate.
Please, refer to the Bulk Whois API User Guide for info on input parameters, request/response formats, authentication instructions and more.