API IP ציבורי חינמי ללא אימות. ארבעה endpoints מחזירים IPv4, IPv6, ISP, ASN, גיאולוקציה ואזור זמן — ב-JSON או טקסט.
# Full data (JSON) https://ippubblico.org/?api=1 # IPv4 + IPv6 (plain text, 2 lines) https://ippubblico.org/?text=1 # IPv4 only https://ipv4.ippubblico.org/ # IPv6 only https://ipv6.ippubblico.org/
מחזיר אובייקט JSON מלא עם כל הנתונים הזמינים על כתובת ה-IP של המתקשר.
curl https://ippubblico.org/?api=1
{
"status": "ok",
"ip": "93.45.12.88",
"ipv4": "93.45.12.88",
"ipv6": null,
"isp": "Telecom Italia S.p.A.",
"asn": "AS3269",
"timezone": "Europe/Rome",
"datetime": "2026-05-05T12:00:00+02:00",
"geo": {
"city": "Rome",
"region": "Lazio",
"country": "Italy",
"lat": 41.9028,
"lon": 12.4964
},
"headers": { /* HTTP request headers */ },
"cached": false,
"lang": "en"
}
| שדה | סוג | תיאור |
|---|---|---|
| status | string | "ok" או "partial" אם הגיאולוקציה נכשלה |
| ip | string | IP שזוהה (יכול להיות IPv4 או IPv6) |
| ipv4 | string | null | כתובת IPv4 אם זמינה |
| ipv6 | string | null | כתובת IPv6 אם זמינה |
| isp | string | null | שם ספק שירות האינטרנט |
| asn | string | null | מספר מערכת אוטונומית (לדוגמה "AS3269") |
| timezone | string | null | אזור זמן IANA (לדוגמה "Europe/Rome") |
| datetime | string | תאריך/שעה ISO 8601 באזור הזמן של המתקשר |
| geo.city | string | null | שם עיר משוער |
| geo.region | string | null | אזור / מחוז |
| geo.country | string | null | שם המדינה |
| geo.lat / geo.lon | float | null | קואורדינטות משוערות |
| cached | boolean | true אם התוצאה מהמטמון של שעה |
מחזיר IPv4 ו-IPv6 בשתי שורות נפרדות. מחזיר NONE אם פרוטוקול אינו זמין.
curl https://ippubblico.org/?text=1
IPv4: 93.45.12.88 IPv6: NONE
מחזיר רק את כתובת ה-IPv4 כטקסט רגיל, או NONE אם לא זמין.
curl https://ipv4.ippubblico.org/
93.45.12.88
מחזיר רק את כתובת ה-IPv6 כטקסט רגיל, או NONE אם לא זמין.
curl https://ipv6.ippubblico.org/
2001:db8::1
# קבל JSON מלא curl https://ippubblico.org/?api=1 # IPv4 בלבד MY_IP=$(curl -s https://ipv4.ippubblico.org/) echo "My IPv4: $MY_IP" # IPv6 בלבד MY_IPV6=$(curl -s https://ipv6.ippubblico.org/) echo "My IPv6: $MY_IPV6"
// Full JSON const res = await fetch('https://ippubblico.org/?api=1'); const data = await res.json(); console.log(data.ipv4, data.ipv6, data.geo.country); // IPv4 only const ipv4 = await fetch('https://ipv4.ippubblico.org/').then(r => r.text()); console.log('IPv4:', ipv4);
import requests # Full JSON data = requests.get('https://ippubblico.org/?api=1').json() print(data['ipv4'], data['geo']['country']) # IPv4 only ipv4 = requests.get('https://ipv4.ippubblico.org/').text.strip() print(f'IPv4: {ipv4}')
// Full JSON $data = json_decode(file_get_contents('https://ippubblico.org/?api=1'), true); echo $data['ipv4']; // IPv4 only $ipv4 = trim(file_get_contents('https://ipv4.ippubblico.org/'));
resp, _ := http.Get("https://ipv4.ippubblico.org/") body, _ := io.ReadAll(resp.Body) fmt.Println("IPv4:", strings.TrimSpace(string(body)))
$ip = (Invoke-WebRequest 'https://ipv4.ippubblico.org/').Content.Trim() Write-Host "IPv4: $ip"
require 'open-uri' ipv4 = URI.open('https://ipv4.ippubblico.org/').read.strip puts "IPv4: #{ipv4}"
var client = new HttpClient(); var ipv4 = (await client.GetStringAsync("https://ipv4.ippubblico.org/")).Trim(); Console.WriteLine($"IPv4: {ipv4}");
ipv4.ippubblico.org כופה חיבור IPv4 דרך רשומת DNS Aipv6.ippubblico.org כופה חיבור IPv6 דרך רשומת DNS AAAAהאתר המלא זמין ב-43 שפות. ה-API עצמו אינו תלוי בשפה.