Skip to content

yadneshx17/Ignorant-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ignorant API

This is a FastAPI-based wrapper for the Ignorant OSINT tool. It allows querying phone numbers via an API instead of using the CLI.

Installation

Prerequisites

  • Python 3.9+
  • FastAPI
  • Uvicorn
  • Docker (Optional, for containerized deployment)

Clone the Repository

git clone https://github.com/yourusername/ignorant-api.git
cd ignorant-api

Install Dependencies

pip install -r requirements.txt

API Key Setup

  • 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 to default-api-key.

Running the API

Locally

uvicorn main:app --host 0.0.0.0 --port 8000

Using Docker

Build and Run the Container

docker build -t ignorant-api .
docker run -d -p 8000:8000 --env-file .env ignorant-api

API Usage

Endpoint

GET /ignorant/{country_code}/{phone_number}

Headers

X-API-Key: your-secret-api-key

Example Request

curl -H "X-API-Key: your-secret-api-key" http://localhost:8000/ignorant/+91/0123456789

Example Response

{
  "country_code": "US",
  "phone_number": "1234567890",
  "data": "{...response from ignorant...}"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published