Saltar al contenido principal

Ipify

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Qué hace

Ipify es una API sencilla de dirección IP pública que devuelve tu dirección IP pública en texto plano.

Configuración de ejemplo

{
"type": "ipify",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .IP }}",
"options": {
"http_timeout": 1000
}
}

Opciones

NameTypeDefaultDescription
urlstringhttps://api.ipify.orgThe Ipify URL, by default IPv4 is used, use https://api64.ipify.org for IPv6
http_timeoutint20in milliseconds - how long may the segment wait for a response of the ipify API
cache_durationstring24hthe duration for which the IP will be cached. The duration is a string in the format 1h2m3s and is parsed using the time.ParseDuration function from the Go standard library. To disable the cache, use none

Plantilla (info)

plantilla predeterminada
 {{ .IP }}

Propiedades

NameTypeDescription
.IPstringYour external IP address