Integration Guide
The Jaiho IP API allows developers to programmatically access IP address, geolocation, ISP, and browser information. It is free to use, supports CORS, and requires no API key.
Endpoint
GET
https://jaiho-ip.vercel.app/api/json
Example Response
{
"ip": "203.0.113.195",
"success": true,
"location": {
"city": "Mountain View",
"region": "California",
"country": "United States",
"flag": "https://cdn.ipwhois.io/flags/us.svg"
},
"isp": {
"name": "Google LLC",
"org": "Google Fiber"
},
"client": {
"browser": "Google Chrome",
"os": "Windows",
"user_agent": "Mozilla/5.0..."
}
}
Code Examples
JavaScript (Fetch)
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));
Python (Requests)
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']}")
cURL
curl -s https://jaiho-ip.vercel.app/api/json