API Access Key

Uset-Agent API

API Request

HTTP : http or https

APIKEY : Unique account identifier received after get key.

USERAGENT : urlencoded() Useragent string.


https://livetrafficfeed.com/static/v2/user-agent?ua=USERAGENT&key=APIKEY
Example Request GET
https://livetrafficfeed.com/static/v2/user-agent?ua=Mozilla%2F5.0+%28Windows+NT+6.1%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F70.0.3538.77+Safari%2F537.36&key=APIKEY

API Response

user_agent Your user agent.

software_type bot, browser, application.

software_name Browser name, many values returned: Safari, Chrome, Firefox, Opera, etc.

software_version Browser version.

layout_engine_name Browser engine name, many values returned: WebKit, Gecko, Edge, etc.

layout_engine_version Browser engine version.

operating_system_name Operating system name many values returned: MacOS, Windows, Android, etc.

operating_system_version Operating system version.

operating_system_type Operating system type 64 bit or 32 bit.

operating_platform Useragent device.

operating_platform_vendor_name Useragent brand many values returned: Apple, Microsoft, Samsung, Google, etc.

operating_platform_type Useragent type, exact values returned: Auto, App, Bot, Camera, Desktop, Feed Reader, Game Console, Tablet, Mail, Media Player, Mobile, Library, TV, Wearable.

IP to address API

API Request

HTTP : http or https

APIKEY : Unique account identifier received after get key.

IP : IP address string.


https://livetrafficfeed.com/static/v2/user-ip?ip=IP&key=APIKEY
Example Request GET
https://livetrafficfeed.com/static/v2/user-ip?ip=8.8.8.8&key=APIKEY

API Response

country_code Country code.

country_name Country name.

region_name Region name.

city_name City name.

latitude Latitude of IP address.

longitude Longitude of IP address.

Errors Response

error Limit of request or invalid api key.

Sample Code

<?php
$ua = urlencode($_SERVER['HTTP_USER_AGENT']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://livetrafficfeed.com/static/v2/user-agent?ua=$ua&key=APIKEY");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
$http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
print_r($result);
?>

Live Traffic Feed

Website Visitor Counter