I'm trying to get StumbleUpon views for url via $.ajax.
I'm using this api:
http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://example.com/
Full code:
$.ajax({
type: "GET",
url: "http://www.stumbleupon.com/services/1.01/badge.getinfo?url=http://example.com/",
dataType: "jsonp",
success: function(result) {
console.log(result.result.views);
}
});
The problem:
It returns in console "Resource interpreted as Script but transferred with MIME type text/plain" instead the views count + some other things that shouldn't be there
Full error in image: https://i.stack.imgur.com/fRS5j.png
Can I get those views count using only JavaScript?
May be this can be helpful...