Actions7
Get IPv4
AI-generatedOverview
This node integrates with the IPinfo Lite API to provide detailed information about IP addresses. It supports various operations such as retrieving general info, IPv4 or IPv6 details for either your own IP or a specified IP address, and fetching specific data like organization, city, or country associated with an IP.
Common scenarios include:
- Enriching data with geolocation or organizational info based on IP addresses.
- Validating or analyzing IP addresses in security workflows.
- Automating network diagnostics or monitoring by fetching IP metadata.
For example, you can input an IP address like 8.8.8.8 and retrieve its IPv4 details or get the organization name linked to that IP.
Properties
| Name | Meaning |
|---|---|
| Operation | The type of IP lookup to perform. Options: - Get Self IP (General) - Get Lookup IP (General) - Get Self IPv4 - Get IPv4 - Get Self IPv6 - Get Lookup IPv6 - Base - JSON Info (Lookup) - Base - Organization (Lookup) - Base - City (Lookup) - Base - Country (Lookup) |
| IP Address | The IP address to look up. Used only for operations that require specifying an IP. Default is 8.8.8.8. |
Output
The output is a JSON object containing the result of the selected operation:
- For general or IP-specific lookups, the JSON contains detailed IP information fields as returned by the IPinfo 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 an IPv4 lookup:
{
"ipinfo": {
"ip": "8.8.8.8",
"hostname": "dns.google",
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.4056,-122.0775",
"org": "AS15169 Google LLC",
"postal": "94043",
"timezone": "America/Los_Angeles"
},
"operation": "getIPv4"
}
No binary data is produced by this node.
Dependencies
- Requires an API key credential for the IPinfo service configured in n8n.
- The node makes HTTP GET requests to the IPinfo API endpoints.
- Network access to
api.ipinfo.io,v4.api.ipinfo.io,v6.api.ipinfo.io, andipinfo.iodomains is necessary.
Troubleshooting
- Invalid API Key or Authentication Errors: Ensure the API key credential is correctly set up and has permissions for the requested endpoints.
- Unknown Operation Error: Occurs if an unsupported operation value is provided. Verify the operation property matches one of the supported options.
- IP Address Format Issues: If the IP address is malformed or invalid, the API may return errors. Validate IP inputs before running the node.
- Network Connectivity Problems: Check that the n8n instance can reach the IPinfo API servers.
- Continue On Fail Behavior: If enabled, errors during individual item processing will be captured in the output JSON under an
errorkey instead of stopping execution.