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

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_timeoutint10in minutes - How long you want your IP address cached

Template (info)

default template
{{ .IP }}

Properties

NameTypeDescription
.IPstringYour external IP address