API Documentation DH-Boss


location tracker using ip address API - DHBOSS API

IP Geolocation API Fast, accurate, reliable. Free for non-commercial use, no API key required. Easy to integrate, available in JSON, An IP Lookup is defined as finding the geographical location (or related information like currency, timezone etc.) of an IP address. IP geolocation is the mapping of an IP address to the geographic location of the internet from the connected device. By geographically mapping the IP address, it provides you with location information such as the country, state, city, zip code, latitude/longitude, ISP, area code, and other information, IP Geolocation API and Accurate IP Database provides country, city, zip code, ISP data in REST JSON format from any IPv4 and IPv6 Address - docs.dhboss.com


GET/POST : LOCATION_TRACE_BY_IP

What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC

Input Parameters Detail
Name Type Description Mandatory
your_ip String {Enter Value} Yes
apikeyfill String {Enter Value} Yes

Output Parameters Detail
Name Type Description
code integer 200
status string success
metal string
city string
response.coordinates.latitude double 16.9525
response.coordinates.longitude double 25.7105
response.ip string 203.157.168.8
response.isp string Networks Pvt
response.host.ip_address string 203.157.168.8
response.status boolean
response.country string India
response.region string State
response.city string Dummy Name
response.location string India, State Name, City Name
response.area_code string 000000
response.country_code string IN






Call API URL
https://api.dhboss.com/apicall/location_trace_by_ip/
API Call Request Parameters
your_ip=value&apikeyfill=value                                                   
API Call Example Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.dhboss.com/apicall/location_trace_by_ip/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => 'your_ip=203.157.168.8&apikeyfill=apikeys',
 
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>
API Hit Example Response
{
  "code": 200,
  "status": "success",
  "metal": "",
  "city": "",
  "response": {
    "coordinates": {
      "latitude": 16.9525,
      "longitude": 25.7105
    },
    "ip": "203.157.168.8",
    "isp": "Networks Pvt",
    "host": {
      "ip_address": "203.157.168.8"
    },
    "status": false,
    "country": "India",
    "region": "State",
    "city": "Dummy Name",
    "location": "India, State Name, City Name",
    "area_code": "000000",
    "country_code": "IN"
  }
}