Documentation Index
Fetch the complete documentation index at: https://docs.ip2geo.dev/llms.txt
Use this file to discover all available pages before exploring further.
This function allows you to validate an IP address and check if it is valid and supported by our conversion services.
import { IpValidation } from '@ip2geo/sdk'
const ipAddress = '8.8.8.8'
const { ip4, ip6 } = await IpValidation(ipAddress)
TypeScript
Ruby
Python
PHP
Parameters
The IPv4 or IPv6 address to validate.
Response
An object containing validation results:
ip4: boolean - Whether the IP address is a valid IPv4 address.
ip6: boolean - Whether the IP address is a valid IPv6 address.
Parameters
The IPv4 or IPv6 address to validate.
Response
A hash containing validation results:
:ip4: Boolean - Whether the IP address is a valid IPv4 address.
:ip6: Boolean - Whether the IP address is a valid IPv6 address.
Parameters
The IPv4 or IPv6 address to validate.
Response
A dict containing validation results:
‘ip4’: bool - Whether the IP address is a valid IPv4 address.
‘ip6’: bool - Whether the IP address is a valid IPv6 address.
Parameters
The IPv4 or IPv6 address to validate.
Response
An array containing validation results:
‘ip4’: bool - Whether the IP address is a valid IPv4 address.
‘ip6’: bool - Whether the IP address is a valid IPv6 address.