single
Get a location for the selected IP.
The '/loc' API endpoint provides the geographic location of an IP address as latitude and longitude separated by a comma in text form.
get/{ip}/loc
Request
- Base URLhttps://ipinfo.io
- Auth
- HTTP basic
- or HTTP bearer
- or API key in query parameter token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ipstring required
A single IPv4 or IPv6 IP address.
Response
Geographic coordinate of the IP address in the format of <latitude>, <longitude>.
Changes
No recorded changes to this operation across all 1 revision of this API.