More than 1695 benchmarks completed!
Follow us on twitter

API Access

PetaByet GeoIP & JsonIP REST API (now with IPv6 support!)


PetaByet offers a free GeoIP & JsonIP API to developers for their projects.
The output is JSON (JavaScript Object Notation) which can be integrated into anything.
We offer this service for free public use (both commercial/non-commercial) and an optional link back is appreciated.

The database is updated monthly.
Last updated: 30 July 2017

GeoIP API Usage

Get GeoIP data of your IP:

Get information about a specific IP address:{ip-address}

Example GeoIP Output

Below you can find the output of our API server's IP address:

   "country":"United States",

JsonIP API Usage

Get your IP address:

JsonIP Example Output


Error Output

When an error occurs (eg. Bad input), an error message will be presented.

HTTP: 400 (Bad Request)
JSON Response:
{"code":400,"errormessage":"You did not enter a valid IP address"}

Simple IP

You can now get your IP in plain text without any formatting. This is useful for shell scripts and web applications as no Json is involved.

To access, visit


This product includes GeoLite data created by MaxMind, available from