Batch requests
You can query for multiple IP addresses in a single request. This is useful for checking the geolocation of multiple IP addresses at once.
Example
Section titled “Example”curl -X POST 'https://api.ip-sonar.com/v1/batch' \--data '{ "data": [ "216.8.112.108", "2605:a601:a909:700:45e7:4cff:fe73:82b1" ]}'
And response:
{ "data": [ { ... details about the first IP address ... } ]}
Batch request limits
Section titled “Batch request limits”The maximum number of IP addresses you can query in a single batch request is 100. If you need to check more than 100 IP addresses, you will need to split them into multiple requests.