I'm coding from time to time and make scripts for fun and to help others. How can I get JSON from other site? As we know, there are cross-domain restrictions.. This is what I'm trying to get: http://steamcommunity.com/market/priceoverview/?appid=730¤cy=3&market_hash_name=StatTrak%E2%84%A2%20M4A1-S%20|%20Hyper%20Beast%20(Minimal%20Wear). I have tried this:
$.ajax({
url: 'https://jsonp.afeld.me/?url=http://steamcommunity.com/market/priceoverview/?appid=730¤cy=3&market_hash_name=StatTrak%E2%84%A2%20M4A1-S%20|%20Hyper%20Beast%20(Minimal%20Wear)',
type: 'GET',
dataType: 'jsonp',
success: function(data) {
console.log(data);
}
});
I would really appreciate your help. Thanks! :)