How do I look up many IP addresses at once?
Updated 23 November 2026
Use the batch endpoint to check up to 100 IP addresses in one request, for example when screening a list of survey respondents or signups.
Request
Send a POST request to https://api.ipzentra.com/v1/batch with your API key in the X-Api-Key header and a JSON body:
curl -X POST -H "X-Api-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"ips":["49.207.48.1","8.8.8.8"],"country":"IN"}' \
https://api.ipzentra.com/v1/batchThe country field is optional. When you add it, every result also shows country_match, the same as the /v1/check endpoint.
Response
Results come back in the same order you sent them, with the same fields as a single lookup. An invalid IP gets its own bad_ip entry and does not stop the rest of the batch.
How batches count against your quota
- Each valid IP counts as one lookup. Invalid IPs are not charged.
- The whole batch counts as one request against your per-second limit.
- If a batch has more IPs than you have lookups left today, the request is refused with
429and nothing is charged. Send a smaller batch, or wait until your daily quota resets at midnight UTC.
Larger lists
Split lists of more than 100 IPs into several requests. See the API documentation for every response field.