This is a FastAPI-based wrapper for the Ignorant OSINT tool. It allows querying phone numbers via an API instead of using the CLI.
- Python 3.9+
- FastAPI
- Uvicorn
- Docker (Optional, for containerized deployment)
git clone https://github.com/yourusername/ignorant-api.git
cd ignorant-api
pip install -r requirements.txt
- Create a
.env
file in the project root:API_KEY=your-secret-api-key
- If
.env
is present, it will use this key. Otherwise, it defaults todefault-api-key
.
uvicorn main:app --host 0.0.0.0 --port 8000
docker build -t ignorant-api .
docker run -d -p 8000:8000 --env-file .env ignorant-api
GET /ignorant/{country_code}/{phone_number}
X-API-Key: your-secret-api-key
curl -H "X-API-Key: your-secret-api-key" http://localhost:8000/ignorant/+91/0123456789
{
"country_code": "US",
"phone_number": "1234567890",
"data": "{...response from ignorant...}"
}