Hello developers, This side Arshvir from Punjab, India. I just built a privacy-first IP tools and API and it's free. It includes various feature for both developers and general users. When you visit jaiho ip then it shows your current IP address, Location, ISP, OS information, and Browser information.
and for developer's you guys can use this as API also which include all features as listed on website.
Below is code snippet that how to use What's My IP? Jaiho-IP
- For Python Developer:
import requests
response = requests.get('https://jaiho-ip.vercel.app/api/json')
data = response.json()
print(f"IP Address: {data['ip']}")
print(f"Location: {data['location']['city']}, {data['location']['country']}")
print(f"ISP: {data['isp']['name']}")
print(f"OS: {data['client']['os']}")
- For JavaScript:
fetch('https://jaiho-ip.vercel.app/api/json')
.then(response => response.json())
.then(data => {
console.log('My IP:', data.ip);
console.log('Location:', data.location.city + ', ' + data.location.country);
console.log('ISP:', data.isp.name);
console.log('Browser:', data.client.browser);
})
.catch(error => console.error('Error:', error));
- cURL:
curl -s https://jaiho-ip.vercel.app/api/json
Top comments (0)