Validate IP Address
validate_ipValidate whether a string is a valid IPv4 or IPv6 address, returning a clear result. Essential for input validation prior to IP geolocation.
Instructions
Check if a string is a valid IPv4 or IPv6 address. Returns a human-readable message stating whether the input is valid. Useful for input validation before making a geo lookup. Example: ip="8.8.8.8" → valid, ip="not-an-ip" → invalid. Runs locally — no API call, no quota usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | the IPv4 or IPv6 address to look up |