Changed format of api url and json response.