single
Returns the current country.
Returns a concise response consisting of a two-letter country code. If the country is not available, it will return an empty string.
get/country
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
Name of the country in the 2 letter ISO 3166-1 alpha-2 for the IP address.
Changes
No recorded changes to this operation across all 1 revision of this API.