I am trying to get the json data from https://twitter.com/i/search/timeline?f=realtime&q=blogger&src=typd
For that i have tried the following cross domain request but i am getting error :/
$(document).ready(function() {
    var contentType = "application/x-www-form-urlencoded; charset=utf-8";
    if (window.XDomainRequest) {
        contentType = "text/plain";
    }
    $.ajax({
        type: 'GET',
        url: 'https://twitter.com/i/search/timeline?f=realtime&q=blogger&src=typd',
        dataType: 'jsonp',
        contentType: contentType,
        success: function(data) {
            alert("Data from Server" + JSON.stringify(data));
        },
        error: function(jqXHR, textStatus, errorThrown) {
            alert("You can not send Cross Domain AJAX requests: " + errorThrown);
        }
    });
});
 
     
     
     
    