Overview
The IP2Location node allows users to query IP address information using the IP2Location service. It is useful for enriching data with geolocation details, identifying the origin of web traffic, or performing security checks based on IP addresses. For example, a user can input an IP address and retrieve location data such as country, city, latitude, longitude, ISP, and more.
This node supports querying IP information in different formats (JSON or XML), making it flexible for integration with various workflows that require structured or raw data.
Properties
| Name | Meaning |
|---|---|
| IP Address | The IP address to query information for. Example: "1.1.1.1". |
| Format | The response format of the query result. Options: JSON, XML. Default is JSON. |
Output
The node outputs the queried IP information in the selected format under the json output field. When JSON format is selected, the output will be a parsed JSON object containing detailed IP-related data such as geographic location, ISP, domain, etc., depending on the IP2Location API response.
If XML format is selected, the output will contain the raw XML response as a string or parsed accordingly (depending on implementation), representing the same data in XML structure.
No binary data output is indicated.
Dependencies
- Requires an API key credential for the IP2Location service.
- The node depends on network access to the IP2Location API endpoint.
- Proper configuration of the API key credential within n8n is necessary for authentication.
Troubleshooting
- Common issues:
- Invalid or missing API key credential will cause authentication errors.
- Querying invalid or malformed IP addresses may result in errors or empty responses.
- Network connectivity issues can prevent successful API calls.
- Error messages:
- Authentication failures typically indicate problems with the provided API key; verify and update credentials.
- Input validation errors suggest the IP address format is incorrect; ensure valid IPv4 or IPv6 addresses.
- Timeout or connection errors imply network problems; check internet connectivity and firewall settings.