API Poiblí IPPubblico

API IP poiblí saor in aisce gan fíordheimhniú. Ceithre endpoint ag tabhairt ar ais IPv4, IPv6, ISP, ASN, geolocation agus crios ama — i JSON nó téacs.

✓ Saor in aisce go deo ✓ Gan eochair API ✓ Gan teorainn ráta JSON & Plain text CORS enabled

URL bunaidh endpoints

endpoints
# 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/

Endpoints reference

GET https://ippubblico.org/?api=1 Freagra JSON iomlán

Seolann sé ar ais réad JSON iomlán le gach sonraí ar fáil faoi sheoladh IP an glaoire.

curl
curl https://ippubblico.org/?api=1
Response — application/json
{
  "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"
}
RéimseCineálCur síos
statusstring"ok" nó "partial" má theip ar an geolocation
ipstringIP aimsithe (féadann sé a bheith IPv4 nó IPv6)
ipv4string | nullSeoladh IPv4 má tá sé ar fáil
ipv6string | nullSeoladh IPv6 má tá sé ar fáil
ispstring | nullAinm an soláthraí seirbhíse idirlín
asnstring | nullUimhir Córas Uathrialach (m.sh. "AS3269")
timezonestring | nullCrios ama IANA (m.sh. "Europe/Rome")
datetimestringDáta/am ISO 8601 i gcrios ama an glaoire
geo.citystring | nullAinm cathrach tuairimeach
geo.regionstring | nullRéigiún / contae
geo.countrystring | nullAinm tíre
geo.lat / geo.lonfloat | nullComhordanáidí tuairimeacha
cachedbooleantrue má tá an toradh ó thaisce 1u
GET https://ippubblico.org/?text=1 Gnáth-théacs — IPv4 + IPv6

Seolann sé ar ais IPv4 agus IPv6 ar dhá líne ar leith. Seolann sé ar ais NONE mura bhfuil prótacal ar fáil.

curl
curl https://ippubblico.org/?text=1
Response — text/plain
IPv4: 93.45.12.88
IPv6: NONE
GET https://ipv4.ippubblico.org/ IPv4 amháin

Seolann sé ar ais seoladh IPv4 amháin mar ghnáth-théacs, nó NONE mura bhfuil sé ar fáil.

curl
curl https://ipv4.ippubblico.org/
Response — text/plain
93.45.12.88
GET https://ipv6.ippubblico.org/ IPv6 amháin

Seolann sé ar ais seoladh IPv6 amháin mar ghnáth-théacs, nó NONE mura bhfuil sé ar fáil.

curl
curl https://ipv6.ippubblico.org/
Response — text/plain
2001:db8::1

Samplaí cód samples

bash / curl
# Faigh JSON iomlán
curl https://ippubblico.org/?api=1

# IPv4 amháin
MY_IP=$(curl -s https://ipv4.ippubblico.org/)
echo "My IPv4: $MY_IP"

# IPv6 amháin
MY_IPV6=$(curl -s https://ipv6.ippubblico.org/)
echo "My IPv6: $MY_IPV6"
JavaScript (fetch)
// 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);
Python
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}')
PHP
// 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/'));
Go
resp, _ := http.Get("https://ipv4.ippubblico.org/")
body, _ := io.ReadAll(resp.Body)
fmt.Println("IPv4:", strings.TrimSpace(string(body)))
PowerShell
$ip = (Invoke-WebRequest 'https://ipv4.ippubblico.org/').Content.Trim()
Write-Host "IPv4: $ip"
Ruby
require 'open-uri'
ipv4 = URI.open('https://ipv4.ippubblico.org/').read.strip
puts "IPv4: #{ipv4}"
C# / .NET
var client = new HttpClient();
var ipv4 = (await client.GetStringAsync("https://ipv4.ippubblico.org/")).Trim();
Console.WriteLine($"IPv4: {ipv4}");

Nótaí info

  • Gan fíordheimhniú — ní theastaíonn eochair API ná token
  • CORS cumasaithe — inúsáidte ó JavaScript brabhsálaí ar aon fhearann
  • Taisce 1u — sonraí geolocation i dtaisce ar feadh 1 uair an chloig in aghaidh IP
  • Fo-fhearann IPv4 — ipv4.ippubblico.org cuireann sé IPv4 i bhfeidhm trí thaifead DNS A
  • Fo-fhearann IPv6 — ipv6.ippubblico.org cuireann sé IPv6 i bhfeidhm trí thaifead DNS AAAA
  • Cruinneas geolocation — leibhéal tuairimeach cathrach/réigiúin (~50km). Neamhoiriúnach le haghaidh críocha dlíthiúla.
  • Coinneáil sonraí — IP agus meiteashonraí stóráilte uasmhéid 90 lá. Gan roinnt le tríú páirtithe.

Teangacha ar fáil 43

Tá an láithreán gréasáin iomlán ar fáil i 43 teanga. Tá an API féin neamhspleách ar theanga.

🇮🇹 IT Italiano
🇬🇧 EN English
🇩🇪 DE Deutsch
🇫🇷 FR Français
🇪🇸 ES Español
🇵🇹 PT Português
🇳🇱 NL Nederlands
🇵🇱 PL Polski
🇷🇴 RO Română
🇨🇿 CS Čeština
🇸🇪 SV Svenska
🇩🇰 DA Dansk
🇫🇮 FI Suomi
🇭🇺 HU Magyar
🇸🇰 SK Slovenčina
🇧🇬 BG Български
🇭🇷 HR Hrvatski
🇸🇮 SL Slovenščina
🇪🇪 ET Eesti
🇱🇻 LV Latviešu
🇱🇹 LT Lietuvių
🇬🇷 EL Ελληνικά
🇲🇹 MT Malti
🇮🇪 GA Gaeilge
🇷🇺 RU Русский
🇺🇦 UK Українська
🇯🇵 JA 日本語
🇨🇳 ZH 中文
🇮🇳 HI हिन्दी
🇸🇦 AR العربية
🇰🇷 KO 한국어
🇹🇷 TR Türkçe
🇮🇩 ID Bahasa Indonesia
🇻🇳 VI Tiếng Việt
🇹🇭 TH ภาษาไทย
🇲🇾 MS Bahasa Melayu
🇳🇴 NB Norsk Bokmål
🇵🇰 UR اردو
🇰🇪 SW Kiswahili
🇮🇷 FA فارسی
🇧🇩 BN বাংলা
🇵🇭 TL Filipino
🇮🇱 HE עברית