This function allows you to convert multiple IP addresses in a single request, making it efficient for batch processing. You can provide an array of IP addresses, and the function will return their corresponding geolocation data.
You should authenticate/initialize Ip2Geo before using this
method.
import { ConvertIPs } from '@ip2geo/sdk'
const ipAddresses = [
'8.8.8.8',
'8.8.4.4',
'1.1.1.1',
'9.9.9.9',
'4.4.4.4',
'3.3.3.3'
]
const { data, success, message } = await ConvertIPs({
ips: ipAddresses
})
This method can convert up to 5000 IP addresses in a single request. If you
need to convert more than 5000 IPs, consider splitting your requests into
smaller batches to avoid exceeding this limit.
Make sure to explore the interfaces to understand the structure of the response and its geolocation data.You can find more details in the Ip Interface and Response Interface.