Skip to content
/ my-ip Public

A fastapi based server to get client IP details

Notifications You must be signed in to change notification settings

avilabss/my-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-ip - A fastapi based server to get client IP details


Features

  • Endpoint to get only client ip
  • Endpoint to get small details about client ip
  • Endpoint to get elobrate details about client ip
  • Endpoint to ping (for any connect check)
  • Documentation available at endpoint /docs and /redoc
  • Ready to Dockerize
  • Ready to deploy on Heroku

Run Locally

uvicorn main:app --reload

Note

  • Generate token from IP Info and set to environment variable as IP_INFO_API_TOKEN=my_token
  • /detail and /detail/{ip} endpoint requires a token to work