ipapi-co / what-is-my-ip

What is my IP address (ipapi.co)

Home Page:https://ipapi.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find your public (external) IP address over https - https://ipapi.co

Shell

curl 'https://ipapi.co/ip/'

Ruby

require 'net/http'
puts Net::HTTP.get(URI('https://ipapi.co/ip/'))

Python

from requests import get   
print get('https://ipapi.co/ip/').text

PHP

echo file_get_contents('https://ipapi.co/ip/')

Node.js

var https = require('https');

https.get('https://ipapi.co/ip/', function(resp){
    var body = ''
    resp.on('data', function(data){
        body += data;
    });

    resp.on('end', function(){
        console.log(body);
    });
});

jQuery

$.get('https://ipapi.co/ip/', function(data){
  console.log(data)
})