The WHOIS REST API is an unofficial tool that offers users the ability to perform WHOIS lookups for domain names. This API fetches raw WHOIS data and parses it into a structured JSON format, simplifying the integration of domain lookup features into your own applications.
- Fetch and parse WHOIS data for any domain. 🌐
- Simple and clear JSON responses. 📄
- Interactive web interface for manual domain lookups. 🖥️
- Unofficial RESTful service built with Flask. 🛠️
Host your own instance of the crt.sh REST API on Vercel with a simple click using the button below.
Before you can run the WHOIS REST API, you need to ensure you have Python and Flask installed on your system. Follow these steps to set up the project on your local machine.
- Python 3.6+ 🐍
- pip 📦
- Flask 🌶️
git clone https://github.com/junioralive/whois
cd whois-rest-api
pip install flask requests beautifulsoup4
Execute the following command to start the Flask server:
python app.py
The server will start running on http://localhost:5000/
. You can navigate to this URL in a web browser to access the application.
Visit http://localhost:5000/
in your browser to perform a WHOIS lookup via the web interface. Just enter the domain name and submit. 🔍
To use the API programmatically, send a GET request to the /api/whois
endpoint with the domain parameter.
curl "http://localhost:5000/api/whois?domain=example.com"
The API will return the raw WHOIS data in JSON format. 📊
Please note: This project is an independent endeavor and is not associated with any official WHOIS databases or services. The information provided is for informational purposes only and should not be used as a sole source for critical decisions. 🛑🔍