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

× 203.0.113.42 _ ohmyposh.dev × 203.0.113.42 _ ohmyposh.dev

Options

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

Template (info)

default template
{{ .IP }}

Properties

NameTypeDescription
.IPstringYour external IP address