Geo

IP Lookup

Returns geolocation and timezone data for a given IPv4 or IPv6 address. Pass auto:ip to auto-detect the caller's IP.

get/ip.json

Query parameters

keystring required
Example:YOUR_API_KEY

Your WeatherAPI.com API key.

qstring required
Example:auto:ip

IPv4, IPv6 address, or auto:ip for caller's IP.

Response

IP geolocation data

ipstring
type'ipv4' | 'ipv6'
continent_codestring
continent_namestring
country_codestring
country_namestring
is_euboolean
geoname_idstring
citystring
regionstring
latnumber
lonnumber
tz_idstring
localtime_epochinteger
localtimestring

Changes

No recorded changes to this endpoint across all 1 revision of this API.