IPWhoisInfo.com - IP information, network details, WHOIS, and more

IPWhoisInfo.com API (Programmer's Interface)

IPWhoisInfo's Application Programming Interface (API) is a lookup web service for performing IP address geolocation lookups, User-Agent lookups, and full WHOIS database lookups. It is suitable for the needs of programmers, webmasters, and companies that require geographical information on IP addresses and device platforms details.

Our database gets updated on a weekly basis and sits on a fast scalable database server capable of performing up to 10,000 requests per second, 864 million requests a day, or 25 billion per month. The services available through the API are IP address geolocation lookups, User-Agent lookups, and WHOIS database search. The supported output formats are JSON, XML, CSV, HTML and plain text.

How does it work?

A unique API key required for accessing the service is created when you sign up. The API is a web service accessible through HTTP/HTTPS and can be accessed from any platform - PHP, Python, Perl, Javascript, .NET and even directly connecting to the API and sending HTTP requests.

An example for an IP geolocation request made to our API:

[[email protected] ~]# curl https://api.ipwhoisinfo.com/srv/ip/4.2.2.5?token=##YOUR_KEY##
{
    "ip_number": 67240453,
    "last_modified": "2020-03-25 11:58:37",
    "sender_score": 127,
    "in_spamhaus": 0,
    "in_barracuda": 0,
    "in_sorbs": 0,
    "sb_daily_volume": 0,
    "sb_monthly_volume": 0,
    "ptr_record": "e.resolvers.level3.net",
    "country": "US",
    "region": "WI",
    "city": "Washington",
    "longitude": "-77.03637",
    "latitude": "38.89511",
    "timezone": "-05:00"
    "ns": {
        "2.2.4.in-addr.arpa": ["dnsauth3.sys.gtei.net", "dnsauth2.sys.gtei.net", "dnsauth1.sys.gtei.net"]
    }
}
            

An example for a User-Agent lookup request:

[[email protected] ~]# curl "https://api.ipwhoisinfo.com/srv/ua?token=##YOUR_KEY##&q=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko)"
{
    ActiveXControls: "false"
    Alpha: "false"
    AolVersion: "0"
    BackgroundSounds: "false"
    Beta: "false"
    Browser: "Apple Mail"
    Browser_Bits: "32"
    Browser_Maker: "Apple Inc"
    Browser_Modus: ""
    Browser_Type: "Email Client"
    Comment: "Apple Mail for OSX"
    Cookies: "true"
    Crawler: "false"
    CssVersion: "3"
    Device_Brand_Name: "Apple"
    Device_Code_Name: "Macintosh"
    Device_Maker: "Apple Inc"
    Device_Name: "Macintosh"
    Device_Pointing_Method: "mouse"
    Device_Type: "Desktop"
    Frames: "true"
    IFrames: "true"
    JavaApplets: "true"
    JavaScript: "true"
    LiteMode: "false"
    MajorVer: "13"
    MasterParent: "false"
    MinorVer: "0"
    Parent: "Apple Mail for OSX"
    Platform: "macOS"
    Platform_Bits: "32"
    Platform_Description: "macOS"
    Platform_Maker: "Apple Inc"
    Platform_Version: "10.15"
    PropertyName: "Mozilla/5.0 (*Mac OS X 10?15*) applewebkit* (*khtml*like*gecko*)"
    RenderingEngine_Description: "For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3."
    RenderingEngine_Maker: "Apple Inc"
    RenderingEngine_Name: "WebKit"
    RenderingEngine_Version: ""
    Tables: "true"
    VBScript: "false"
    Version: "13.0"
    Win16: "false"
    Win32: "false"
    Win64: "false"
    isAnonymized: "false"
    isFake: "false"
    isMobileDevice: "false"
    isModified: "false"
    isSyndicationReader: "false"
    isTablet: "false"
}
            

An example of a direct call made through telnet:

[[email protected] ~]# telnet api.ipwhoisinfo.com 80
Trying 104.18.35.57...
Connected to api.ipwhoisinfo.com.
Escape character is '^]'.
GET /srv/ip/4.2.2.5?token=##YOUR_KEY## HTTP/1.1
Host: api.ipwhoisinfo.com

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 308
Connection: keep-alive
Server: ipwhoisinfo-apidb/diamond v2.3

{
    "ip_number": 67240453,
    "last_modified": "2020-03-25 11:58:37",
    "sender_score": 127,
    "in_spamhaus": 0,
    "in_barracuda": 0,
    "in_sorbs": 0,
    "sb_daily_volume": 0,
    "sb_monthly_volume": 0,
    "ptr_record": "e.resolvers.level3.net",
    "country": "US",
    "region": "WI",
    "city": "Washington",
    "longitude": "-77.03637",
    "latitude": "38.89511",
    "timezone": "-05:00"
    "ns": {
        "2.2.4.in-addr.arpa": ["dnsauth3.sys.gtei.net", "dnsauth2.sys.gtei.net", "dnsauth1.sys.gtei.net"]
    }
}
            

Our API also supports batch requests for handling multiple lookups in a single call.

After signing up, a user account and an API key will be created for you. You can then login to your account's dashboard, adjust the settings for your account, and get detailed usage statistics. You will also get a link to the API reference documentation manual for a list of all commands, features and options available.

Try our service for free

You can use our service for free for an unlimited time (email address required).
Our free plan allows 1500 IP geolocation lookups and 1000 User-Agent lookups per day.


Sign up for free

Paid Plans:

Basic

$25
/ month
SELECT

Advanced

$49
/ month
SELECT

Enhanced

$79
/ month
SELECT

Pro

$139
/ month
SELECT

Need more?

If you work for, or represent a larger organization that need more than 5M requests per month, please contact us for further assistance.


CONTACT US