Skip to content

ipapi-co/what-is-my-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

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)
})

Releases

No releases published

Packages

No packages published