Does 000webhost allow the Flickr API w/ json?


I’m using the Flickr API (and json) to fetch images from Flickr. The code I’m using is this:

keyword = "mountains";
tags: keyword,
tagmode: "any",
format: "json"
function(data) {
var rnd = Math.floor(Math.random() * data.items.length);
var image_src = data.items[rnd]['media']['m'].replace("_m", "_b");
$('body').css('background-image', "url('" + image_src + "')");

For some reason, this doesn’t work on 000webhost, although it works perfectly locally.
Does 000webhost not allow json and/or the Flickr api for some reason?


Solved it myself. In case anyone finds this useful, change the url linking to flickr (line 3 of the code) from http to https