Get Geographic $2.00 / 1,000 calls

Country by IP

What this tool does

This tool finds the country associated with an IP address. You provide the IP address, and the platform returns the full country name and the two-letter country code (e.g. ES). The platform checks if the IP is valid and looks it up using an available service.

The result may not be available if the IP address is invalid, private, or if the lookup service is unavailable. In these cases, the name and code fields will be empty.

Common uses

  • Identifying the geographic location of website visitors based on their IP.
  • Validating that an entered IP address corresponds to a real country.

Input data

Parameter Required Example Description
ip Yes 95.23.100.79 The IP address to look up, written as four groups of numbers separated by dots (e.g. 95.23.100.79). This is required. If the format is incorrect or it is a local test address, the tool will return empty results.

Output data

Field Description
code The two-letter country code (e.g. ES). It is empty if the IP address is invalid or the lookup fails.
name The full name of the country (e.g. Spain). It is empty if the IP address is invalid or the lookup fails.