WhoisAPI is a software with an API interface through which you can get IP-Address Whois data by making an API request and passing an IP address.
- PHP >= 8.0
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- PHP Composer
git clone https://github.com/DevStorageEU/WhoisAPI.git
cd WhoisAPI/application/
composer install
mv .env.example .env
APP_KEY
: Generate the key with this commandphp artisan generate:key
and copy & paste the key in to .envAPP_URL
: Change it to your url
To query Whois data for an IP address, call the following URL:
https://whoisapi.openapi.devstorage.net/v1/whois?ip=IP-ADDRESS
Replace IP-ADDRESS
with the IP address whose Whois data you want to retrieve. The API returns the Whois data in JSON
format.
Example:
https://whoisapi.openapi.devstorage.net/v1/whois?ip=8.8.8.8
This call returns the Whois data for the IP address 8.8.8.8.
You find API documentation here
WhoisAPI is licensed under the Apache License 2.0. For more information, see the LICENSE file.