Actions7
Get Lookup IP (General)
AI-generatedOverview
This node integrates with the IPinfo Lite API to provide detailed information about IP addresses. It supports multiple operations, including retrieving general info for your own IP or any specified IP, as well as fetching specific data such as IPv4/IPv6 details, organization, city, and country associated with an IP address.
Common scenarios where this node is beneficial include:
- Enriching user data with geolocation or organizational info based on IP.
- Security workflows that require IP reputation or location checks.
- Network diagnostics or monitoring tools needing quick IP lookups.
For example, you can use the "Get Lookup IP (General)" operation to get comprehensive general information about a target IP address like 8.8.8.8, which might return details such as hostname, city, region, and country.
Properties
| Name | Meaning |
|---|---|
| IP Address | The IP address to lookup. For the "Get Lookup IP (General)" operation, specify the IP to query, e.g., 8.8.8.8. |
Output
The output is a JSON object containing the result of the selected operation:
- For general info operations (
getSelfGeneral,getLookupGeneral), the JSON includes various IP-related fields returned by the IPinfo Lite API. - For organization, city, or country lookups, the output JSON contains a single key with the respective value, e.g.,
"organization","city", or"country". - The output also includes the performed operation name under the
operationfield.
Example output structure for "Get Lookup IP (General)":
{
"ipinfo": {
"ip": "8.8.8.8",
"hostname": "dns.google",
"city": "Mountain View",
"region": "California",
"country": "US",
...
},
"operation": "getLookupGeneral"
}
If an error occurs and the node is configured to continue on failure, the output will contain an error field describing the issue.
Dependencies
- Requires an API authentication token credential for the IPinfo service.
- The node makes HTTP GET requests to the IPinfo Lite API endpoints.
- No additional environment variables are needed beyond the API credential configuration in n8n.
Troubleshooting
Common issues:
- Invalid or missing API authentication token will cause authentication errors.
- Providing an invalid IP address format may result in API errors or empty responses.
- Network connectivity problems can prevent successful API calls.
Error messages:
"Unknown operation: <operation>": Indicates an unsupported operation was selected; verify the operation name.- API errors from IPinfo (e.g., rate limiting, unauthorized) will be passed through; check your API token validity and usage limits.
To resolve errors, ensure the API key is correctly set up, the IP address input is valid, and network access to the IPinfo API is available.