IPv4 Address
54.198.246.116
ec2-54-198-246-116.compute-1.amazonaws.com
Browser
CCBot/2.0 (http://commoncrawl.org/faq/)
Provided by
ip.anysrc.net (37.120.182.208)

A simple "What is my IP?" API.
This API provides the current IP address, hostname and useragent of the visitor.

Choose a protocol version

IPv4
https://ip4.anysrc.net
IPv4
https://ip6.anysrc.net
Auto detection
https://ip.anysrc.net

Fair use

This API is free for everyone. Please use in your application cache mechanisms to prevent an overload of the server. If you are using this service, a short mail to the host of this service would be much appreciated.

HTML Banner

This website. Supports permalinks.

ASCII Banner

$ curl "https://ip.anysrc.net/banner"
 +------------------------------------------------------+
 | Your IP: 54.198.246.116                              |
 | IP Version: IPv4                                     |
 | Hostname: ec2-54-198-246-116.compute-1.amazonaws.com |
 | Useragent: CCBot/2.0 (http://commoncrawl.org/faq/)   |
 +------------------------------------------------------+

 Generated at 2017-11-23T23:43:09+00:00 UTC
 Provided by ip.anysrc.net (37.120.182.208)

JSON

$ curl "https://ip.anysrc.net/json"
{
    "clientip": "54.198.246.116",
    "useragent": "CCBot\/2.0 (http:\/\/commoncrawl.org\/faq\/)",
    "ipversion": 4,
    "clienthost": "ec2-54-198-246-116.compute-1.amazonaws.com",
    "time": {
        "timezone": "UTC",
        "unixtimestamp": 1511480589,
        "unixmicrotimestamp": 1511480589.9192,
        "iso8601": "2017-11-23T23:43:09+00:00",
        "rfc2822": "Thu, 23 Nov 2017 23:43:09 +0000"
    },
    "providedby": {
        "serverip": "37.120.182.208",
        "serverhost": "ip.anysrc.net",
        "serverurl": "https:\/\/ip.anysrc.net\/"
    }
}

Plain text

Get a single value. See separated output for all available keys.

$ curl "https://ip.anysrc.net/plain/clientip"
54.198.246.116

PNG picture

$ curl "https://ip.anysrc.net/png"
<img src="https://ip.anysrc.net/png" alt="What is my IP">
PNG output

Separated

$ curl "https://ip.anysrc.net/separated"
clientip|useragent|ipversion|clienthost|time-timezone|time-unixtimestamp|time-unixmicrotimestamp|time-iso8601|time-rfc2822|providedby-serverip|providedby-serverhost|providedby-serverurl
54.198.246.116|CCBot/2.0 (http://commoncrawl.org/faq/)|4|ec2-54-198-246-116.compute-1.amazonaws.com|UTC|1511480589|1511480589.9192|2017-11-23T23:43:09+00:00|Thu, 23 Nov 2017 23:43:09 +0000|37.120.182.208|ip.anysrc.net|https://ip.anysrc.net/

PHP serialize()

$ curl "https://ip.anysrc.net/serialize"
a:6:{s:8:"clientip";s:14:"54.198.246.116";s:9:"useragent";s:39:"CCBot/2.0 (http://commoncrawl.org/faq/)";s:9:"ipversion";i:4;s:10:"clienthost";s:42:"ec2-54-198-246-116.compute-1.amazonaws.com";s:4:"time";a:5:{s:8:"timezone";s:3:"UTC";s:13:"unixtimestamp";i:1511480589;s:18:"unixmicrotimestamp";d:1511480589.919224;s:7:"iso8601";s:25:"2017-11-23T23:43:09+00:00";s:7:"rfc2822";s:31:"Thu, 23 Nov 2017 23:43:09 +0000";}s:10:"providedby";a:3:{s:8:"serverip";s:14:"37.120.182.208";s:10:"serverhost";s:13:"ip.anysrc.net";s:9:"serverurl";s:22:"https://ip.anysrc.net/";}}

XML

$ curl "https://ip.anysrc.net/xml"
<?xml version="1.0" encoding="UTF-8"?>
<whatismyip>
  <clientip>54.198.246.116</clientip>
  <useragent>CCBot/2.0 (http://commoncrawl.org/faq/)</useragent>
  <ipversion>4</ipversion>
  <clienthost>ec2-54-198-246-116.compute-1.amazonaws.com</clienthost>
  <time>
    <timezone>UTC</timezone>
    <unixtimestamp>1511480589</unixtimestamp>
    <unixmicrotimestamp>1511480589.9192</unixmicrotimestamp>
    <iso8601>2017-11-23T23:43:09+00:00</iso8601>
    <rfc2822>Thu, 23 Nov 2017 23:43:09 +0000</rfc2822>
  </time>
  <providedby>
    <serverip>37.120.182.208</serverip>
    <serverhost>ip.anysrc.net</serverhost>
    <serverurl>https://ip.anysrc.net/</serverurl>
  </providedby>
</whatismyip>

Disclaimer

THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW THE AUTHOR WILL BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Powered by