function getResult(callback, json) {
    var token = '';
    console.log('call_id : api_5_call_1');
    var input = json.input;
    var all_required = false;
    if (input.artistLike) {
        all_required = true;
    }
    if (all_required) {
        var call = 'https://api.spotify.com/v1/search?q=' + input.artistLike + '&type=artist';
        require('request')(call, function(error, response, body) {
            if (!error && response.statusCode == 200) {
                var info = JSON.parse(body);
                if (!json.input.spotify) {
                    json.input.spotify = {};
                }
                if (!json.input.spotify.artist) {
                    json.input.spotify.artist = {};
                }
                if (!json.input.spotify.artist.external_urls) {
                    json.input.spotify.artist.external_urls = {};
                }
                json.input.spotify.artist.external_urls.spotify = info.artists.items[0].external_urls.spotify;
                if (!json.input.artist) {
                    json.input.artist = {};
                }
                json.input.artist.genre = info.artists.items[0].genres[0];
                if (!json.input.spotify) {
                    json.input.spotify = {};
                }
                if (!json.input.spotify.artist) {
                    json.input.spotify.artist = {};
                }
                json.input.spotify.artist.href = info.artists.items[0].href;
                if (!json.input.spotify) {
                    json.input.spotify = {};
                }
                if (!json.input.spotify.artist) {
                    json.input.spotify.artist = {};
                }
                json.input.spotify.artist.id = info.artists.items[0].id;
                if (!json.input.artist) {
                    json.input.artist = {};
                }
                json.input.artist.pictureUrl = info.artists.items[0].images[0].url;
                if (!json.input.artist) {
                    json.input.artist = {};
                }
                json.input.artist.name = info.artists.items[0].name;
                json.index = json.index + 1;
                if (json.step[json.index].nb == 'end') {
                   if(json.input[json.query]){
                         callback(json.input[json.query]);
                     }else{
                         callback(json);
                     }
                } else {
                    var action_module = require('./' + json.step[json.index].call_id + '.js');
                    action_module.getResult(function(result) {
                        callback(result);
                    }, json);
                }
            } else {
                callback('the request failed');
            }
        });
    }
}
exports.getResult = getResult;

@@ -333,16 +333,48 @@
 rtist';%0A
+        call = encodeURI(call);%0A
         

Update api_5_call_1.js