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
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
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.
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
https://livetrafficfeed.com/static/v2/user-ip?ip=8.8.8.8&key=APIKEY
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.
error
Limit of request or invalid api key.
<?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); ?>
<script> var ua = encodeURIComponent(navigator.userAgent).replace(/%20/g,'+'); var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://livetrafficfeed.com/static/v2/user-agent?ua='+ua+'&key=APIKEY', false); xhr.send(); if (xhr.status == 200) { var result = JSON.parse(xhr.responseText); console.log(result); } </script>
import requests url = 'http://livetrafficfeed.com/static/v2/user-agent' ua = request.META['HTTP_USER_AGENT'] r = requests.get(url, params={'ua': ua,'key': APIKEY}) data = r.json()
require 'net/http' require 'json' ua = request.env['HTTP_USER_AGENT'] url = 'http://livetrafficfeed.com/static/v2/user-agent?ua=ua&key=APIKEY' uri = URI(url) response = Net::HTTP.get(uri) JSON.parse(response)
var request = require('request'); var ua = req.headers['user-agent']; var url = 'http://livetrafficfeed.com/static/v2/user-agent?ua='+ua+'&key=APIKEY'; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { var data = JSON.parse(body); } });