BiznetGIO / whois-api

an API service for whois lookup
MIT License
1 stars 2 forks source link

Whois API

Build Status Code style: black

whois-api is an API service for whois lookup.

Quickstart

Build the docker image:

$ docker build -t whois-api:0.0.1 .

Run the image using docker-compose:

$ docker-compose up

Now you can use the api:

$ curl -X POST http://localhost:5000/api/whois/ \
    -H "Content-Type: text/plain" \
    -H 'X-Whois-key: fakekey123' \
    -d "google.com"