single
Returns the current location.
The '/loc' API endpoint provides the geographical location of a user's IP address in a response with latitude and longitude in comma-separated text format.
get/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.
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.