IPinfo Lite icon

IPinfo Lite

IPinfo Lite API with comprehensive IP lookup capabilities

Base - City (Lookup)

AI-generated

Overview

This node integrates with the IPinfo Lite API to provide detailed information about IP addresses. It supports various operations including looking up general info, IPv4 and IPv6 details, and specific data such as organization, city, or country associated with an IP address.

The "Base - City (Lookup)" operation specifically retrieves the city name in plaintext for a given IP address. This is useful in scenarios where you want to enrich data with geographic location information based on IPs, such as customizing content by user location, fraud detection, or analytics.

Example use cases:

  • Enriching customer records with city information from their IP addresses.
  • Geotargeting marketing campaigns based on visitor city.
  • Detecting suspicious activity by comparing expected vs actual city locations.

Properties

Name Meaning
IP Address The IP address to lookup. For this operation, it should be a valid IPv4 or IPv6 address.

Output

The output JSON contains a single field named city which holds the city name as a plaintext string corresponding to the provided IP address.

Example output JSON:

{
  "city": "Mountain View",
  "operation": "baseCityLookup"
}

If an error occurs during the lookup, the output will contain an error field with the error message instead of city.

Dependencies

  • Requires an API key credential for the IPinfo service to authenticate requests.
  • The node makes HTTP GET requests to the IPinfo API endpoints.
  • No additional environment variables are required beyond the API key credential configuration.

Troubleshooting

  • Invalid IP address: If the IP address format is incorrect, the API may return an error. Ensure the IP address input is valid.
  • Authentication errors: Missing or invalid API key will cause authentication failures. Verify that the API key credential is correctly configured.
  • Rate limiting: The IPinfo API may limit requests depending on your plan. Exceeding limits can result in errors; consider upgrading your plan or adding delays.
  • Network issues: Connectivity problems can cause request failures. Check network access and proxy settings if applicable.
  • Unknown operation error: This node only supports predefined operations. Using an unsupported operation value will throw an error.

Links and References

Discussion