Returns the country that the IP address is located in.

URL Endpoints

GetCountryByIP Inputs

NameTypeDescription
IPAddressStringIP address to look up, for example, “209.85.173.104”
LicenseKeyStringYour license key to use the service.
Sign up for a free trial key at
https://www.serviceobjects.com/products/demographics-more/ip-address-validation

GetCountryByIP Outputs

NameTypeValuesDescription
CountryStringVariesThe country location of the IP address.
CntryStringVariesThe 3-letter country abbreviation.
CtryStringVariesThe 2-letter country abbreviation.
LongitudeDoubleVariesThe longitude coordinate for the IP address.
LatitudeDoubleVariesThe latitude coordinate for the IP address.
IsPublicProxyStringVariesIndicates whether the IP address is a known public proxy.
ErrorErrorVariesSee “Error Codes“.

References