Overview

This documentation is intended for developers who want to write applications that can query IP-API.
We serve our data in multiple formats via a simple URL-based interface over HTTP, which enables you to use our data directly from a user's browser or from your server.


Geolocation API

Response formats

JSON

XML

CSV

Newline

PHP


Batch API

Query multiple IP addresses in one HTTP request.

Batch JSON


DNS API

Retrieve the Client Subnet (edns-client-subnet) and DNS Server.

DNS JSON


Other pages

Data correction