Skip to main content

Ipify

Whatโ€‹

Ipify is a simple Public IP Address API, it returns your public IP Address in plain text.

Sample Configurationโ€‹

{
"type": "ipify",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "๎‚ถ",
"trailing_diamond": "๎‚ฐ",
"template": "{{ .IP }}",
"properties": {
"cache_timeout": 5,
"http_timeout": 1000
}
}

Propertiesโ€‹

NameTypeDescription
urlstringThe Ipify URL, by default IPv4 is used, use https://api64.ipify.org for IPv6 - defaults to https://api.ipify.org
http_timeoutintHow long may the segment wait for a response of the ipify API? - defaults to 20ms
cache_timeoutintin minutes - How long you want your IP address cached - defaults to 10 min

Template (info)โ€‹

default template
{{ .IP }}

Propertiesโ€‹

NameTypeDescription
.IPstringYour external IP address