Skip to main content

Endpoint

Authentication

Overview

Get detailed geolocation and network information for any IP address. Bunny returns the country, country code, region, city, postal code, coordinates, timezone, ISP name, organization, and AS number, all in a single fast request.

Use cases

  • Personalise content and language by user location
  • Log request origin for analytics and auditing
  • Enforce region-based access controls
  • Display estimated shipping locations

Details

Supports IPv4 and IPv6. City-level accuracy varies by region and ISP. Coordinates represent the approximate centre of the detected city, not the end user’s precise location.

Query parameters

Response

200 OK

Example

401 Unauthorized

402 Payment Required

422 Unprocessable Entity

Invalid IP format.

429 Too Many Requests

cURL example