Skip to content

A package to get information from an IP using a collection of IP info apis.

Notifications You must be signed in to change notification settings

sokripon/cool-ip-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cool-ip-api

Package version

A package to get information from multiple IP APIs about the clients IP or another requested IP.

Installation

Requires python 3.10 and above.

pip install cool-ip-api

Usage

# Example with IPApiCom API
from cool_ip_api.provider.ip_api_com import IPAPICom

ip_api_com = IPAPICom()
ip_api_com.resolve() # Returns a pydantic model with the data from the API

Cli command

cool-ip-api
cool-ip-api 1.1.1.1

Supported APIs

Provider Free plan available? Rate limit Check IP Query
abstractapi.com 20.000/month api-key
ip-api.com 45/minute ip
ipwhois.io 10.000/month ip
ipapi.co 1.000/day ip
ipapi.com 1.000/month api-key
ipify.org None None
ipinfo.io 50.000/month api-key
myip.wtf ✅ (Donate) 1/minute ip

TODO

  • Add more providers
  • Add bulk query support for providers that support it
  • Add premium plan support for providers that support it
  • Add more tests
    • Async tests
    • Rate limit tests
  • Add more documentation

About

A package to get information from an IP using a collection of IP info apis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages