diff --git a/lib/DDG/Spice/Whois.pm b/lib/DDG/Spice/Whois.pm index 18b183fb83..55706e74c0 100644 --- a/lib/DDG/Spice/Whois.pm +++ b/lib/DDG/Spice/Whois.pm @@ -9,7 +9,7 @@ use Text::Trim; triggers any => "whois", "lookup", "domain", "is domain", "available", "is available", "register", "owner", "owner of", "who owns", "buy", "how to buy"; # API call details for Whois API (http://www.whoisxmlapi.com/) -spice to => 'http://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=$1&outputFormat=JSON&callback={{callback}}&username={{ENV{DDG_SPICE_WHOIS_USERNAME}}}&password={{ENV{DDG_SPICE_WHOIS_PASSWORD}}}'; +spice to => 'https://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=$1&outputFormat=JSON&callback={{callback}}&apiKey={{ENV{DDG_SPICE_WHOIS_APIKEY}}}'; handle remainder_lc => sub {