Your IP address:
Provider:

General information


Our API is created as a public resource for receiving the most complete information about the IP-address of the user. The data formats are XML or JSON with HTTP connection. Information in the databases updates every day and every webmaster can integrate this service with his own projects.

Our API


For the integration of our service with your projects, we offer you one of the following API:

  • service "Geo-IP API";
  • service "Provider-IP API".
  • service "Hosting API";
  • service "Email API".

Restrictions in use


The inquiries' number limit to each service "Geo-IP API", "Provider-IP API", "Hosting API" or "Email API" amounts to no more than 100 inquiries from one IP address during 24 hours.

Data format


Data provided by our API contains the following fields.

ip — checking IP address;
country_code — 2-characters country identifier;
country — name of country in english;
country_rus — name of country in russian;
region — name of region in english;
region_rus —name of regionin russian;
city — name of city in english;
city_rus — name of city in russian;
latitude — latitude;
longitude — longitude;
zip_code — postcode;
time_zone — time zone.
ip — checking IP address;
name_ripe — provider official name in the Internet Routing Registry (IRR) database;
name_rus — provider name/brand in russian;
site — provider website;
as — provider AS;
ip_range_start — numeral value (iptolong) of the first IP address of the ISP's network;
ip_range_end — numeral value (iptolong) of the last IP address of the ISP's network;
route — network;
mask — netmask.
name_ripe — hosting provider official name in the Internet Routing Registry (IRR) database;
site — hosting provider website;
true — verifiable email address exists;
false — verifiable email address doesn't exist;

Examples of API requests


IPv4:

API call with an empty parameter "ip" returns information about the IP address from which handling comes.

Examples of response


<geo_api>
<ip>8.8.8.8</ip>
<country_code>US</country_code>
<country>United states</country>
<country_rus>США</country_rus>
<region>California</region>
<region_rus>Калифорния</region_rus>
<city>Mountain view</city>
<city_rus>Маунтин-Вью</city_rus>
<latitude>37.405992</latitude>
<longitude>-122.078515</longitude>
<zip_code>94043>/zip_code<
<time_zone>-07:00</time_zone>
</geo_api>
{
"ip":"8.8.8.8",
"country_code":"US",
"country":"United states",
"country_rus":"\u0421\u0428\u0410\r",
"region":"California",
"region_rus":"\u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f",
"city":"Mountain view",
"city_rus":"\u041c\u0430\u0443\u043d\u0442\u0438\u043d-\u0412\u044c\u044e",
"latitude":"37.405992",
"longitude":"-122.078515",
"zip_code":"94043",
"time_zone":"-07:00"
}
<provider_api>
<ip>5.1.5.1</ip>
<name_ripe>PJSC "Datagroup"</name_ripe>
<name_rus>ЧАО "Датагруп"</name_rus>
<site>http://www.domtele.com/</site>
<as>21219</as>
<ip_range_start>83951616</ip_range_start>
<ip_range_end>83959807</ip_range_end>
<route>5.1.0.0</route>
<mask>19</mask>
</provider_api>
{
"ip":"5.1.5.1",
"name_ripe":"PJSC \"Datagroup\"",
"name_rus":"\u0427\u0410\u041e \"\u0414\u0430\u0442\u0430\u0433\u0440\u0443\u043f\"",
"site":"http:\/\/www.domtele.com\/",
"as":"21219",
"ip_range_start":"83951616",
"ip_range_end":"83959807",
"route":"5.1.0.0",
"mask":"19"
}
<hosting_api>
<name_ripe>Google Inc.</name_ripe>
<site>https://www.google.com/</site>
</hosting_api>
<hosting_api>
"name_ripe":"Google Inc."
"site":"https:\/\/www.google.com\/"
</hosting_api>
true / false

Price


100 queries per day are free.

1000 requests per day to our database for 30 days cost 10$. Each following thousand is worth + 1$. For example if you want 5000 requests per day it will cost 14$ for month.

Unlimited number of queries — 100$ per month.

For more information, please contact help@2ip.tools.