Performs bulk IP address lookups.

Performs IP address lookups for multiple IP addresses in a single request. Returns a JSON object with each input IP address as a key and the corresponding lookup result as the value.

Batch requirements:

  • Maximum 1,000 IP addresses per request
  • Requires a paid plan or available credits
  • Each successful lookup consumes 1 API request from your quota

Mixed results: The response may contain both successful lookups and error objects for invalid IP addresses within the same response.

post/batch

Request

  • Base URL: https://iplocate.io/api
  • URL: https://iplocate.io/api/batch
  • Auth: API key in query parameter apikey

Request body

string[] required

Example request

[
  "8.8.8.8",
  "1.1.1.1",
  "2001:4860:4860::8888"
]

Response

Batch lookup response containing results for each requested IP address.

object required

Object containing IP addresses as keys and their corresponding lookup results as values. For invalid IP addresses, the value will be an error object.

Changes

No recorded changes to this operation across all 1 revision of this API.