Support > Documentation

Cloud parser

The udger Cloud parser v. 3 is designed to be quick to deploy and provide fast, accurate and consistent results.

(since 2016)

It's easy to use

  • send a GET or POST request containing your Access key and selected methot to https://api.udger.com/v3/
  • get a JSON result

API provides the following information

Udger API provides two types of methods.

  • "parse" - information about useragent and/or IP address
  • "account" - information about your subscription

Example use


string ua  = @"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";
string ip  = @"66.249.64.1";
string url = @"https://api.udger.com/v3/parse";
string accessKey = "XXXXXX"; //Your access key

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
byte[] bytes = Encoding.UTF8.GetBytes("accesskey=" + accessKey + "&ua=" + ua + "&ip= " + ip);

request.ContentLength = bytes.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(bytes, 0, bytes.Length);

WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader(stream);

var result = reader.ReadToEnd();


use LWP::UserAgent; 
 
my $ACCESSKEY = "XXXXXX"; # Your access key
my $UA = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";
my $IP = "66.249.64.1";

  
# Crete an UserAgent 
my $ua = LWP::UserAgent->new();
 
# set POST variables
my %form;
$form{'accesskey'}=$ACCESSKEY;
$form{'ua'}=$UA;
$form{'ua'}=$IP;
 
# Create a request
my $response = $ua->post( "http://api.udger.com/v3/parse", \%form ); 
 
 
# get a response back
my $content = $response->as_string(); 
print  $content;


$accesskey      = "XXXXXX"; // Your access key
$url 	        = "https://api.udger.com/v3/parse";
$ua 	        = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";
$ip 	        = "66.249.64.1";

$res = file_get_contents( $url."?accesskey=".$accesskey."&ua=".urlencode($ua)."&ip=".urlencode($ip) );

$js = json_decode($res,true);

print_r($js);



import json
import pprint

try:
    from urllib.parse import urlencode
    from urllib.request import urlopen
except ImportError:
    from urllib import urlencode, urlopen   # Python 2


post_data = {
    'accesskey': 'XXXXXX',
    'ua': 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)',
    'ip': '66.249.64.1',
}

try:
    response_bytes = urlopen(
        'https://api.udger.com/v3/parse',
        urlencode(post_data).encode('UTF-8'),
    ).read()

    data_dict = json.loads(
        response_bytes.decode('UTF-8'),
    )
except Exception as e:
    print("Udger.com request failed:", e)

else:
    pprint.pprint(data_dict)



// This example uses jquery
var api_url = 'https://api.udger.com/v3/parse';
var api_params = {
  accesskey: 'XXXXXXX',
  ua: "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)",
  ip: "66.249.64.1"
};

$.ajax({
  url: api_url + '?' + $.param(api_params),
  dataType: 'jsonp',
  success: function(data) {
    console.log('received data: ' + JSON.stringify(data));
  }
});    


Among our clients
View more...
 salesforce.com, inc.  
 MailChimp  
 Dailymotion SA  
 Akamai Technologies, Inc.  
 Oracle  
 PayPal Holdings, Inc.